Bullet Aim Trajectories (Patreon)
Content
Hi all! You may have seen my latest video on YouTube covering bullet trajectories. If not, check it out: Aim Like This: Projectile Trajectory in Godot 4
This project came about as an unofficial branch off of a somewhat recent video I did covering bullet collision detection issues. In that video I showcased some gameplay from an early prototype from a metroidvania game jam I had to abandon due to time/life circumstances.
So, this little title (code named "Arrowvania") was fun, and I hope to revisit it soon.
I tried a few new things with this one, namely the bow and arrow mechanics, and some dynamically driven animations on the player character.
What's funny, I had a heck of a time trying to implement the arrow's trajectory in this project. My main problem arose from having some strange conditional rules for the arrow's physics. As a result I had a really hard time drawing an accurate trajectory.
As of the writing of this post the Arrowvania project's trajectory drawing isn't 100% accurate, but it's close enough that it might not be noticeable under most circumstances.
And that brings us to my projectile trajectory video. After implementing a super simple bullet (canon ball) with super simple physics, I was able to draw a super simple trajectory preview.
Super Simple!
So, yeah, not sure what else needs to be said here...
I do wonder what you guys think. This video saw a change in approach. I didn't write the code piece-by-piece like I normally do, and instead opted for just stepping through the code and giving a quick overview.
I'm not sure how this approach will land, and if it's worth continuing for other tutorials/videos. So, if you have an opinion, sound off in the comments!
Pixel Adventurer Perks!
If you are a pixel adventurer and want to see the bullet trajectory code from my video, hop over to the GitHub repo, and grab the latest version of the "Bullet Demo" project. Inside you'll see I reorganized the project (which contains the previous bullet hit detection demos) and added this new trajectory demo.
In other news...
For those of you following along with the Metroidvania Forge series, don't worry! It's still on the way, and I will be sticking to my traditional style and approach for that series.
Enemy Design Showcase!
As I wrap up this little post, let me remind you all of the Enemy Design Showcase I am running for the series. It will be alot more fun if I get alot of submissions! If you are in the dark, here's the announcement video for the competition: Enemy Design Showcase Call for Submissions.
Thank you all for your support! I hope your game dev journey is going great, and I look forward to seeing you in my next video!