Project RBH Devlog 0063 (Patreon)
Content
With the holiday and some local events I attended last week, I wasn’t able to make as much progress as I would’ve liked, but I am proud of what I achieved.
A common attack type in shooters is burst-fire, where a single attack launches a short series of bullets. Unlike fully-automatic, burst-fire pauses between the bursts, which can result in some interesting attack patterns. I thought it would make for a good drone.
It wasn’t too complicated, being a somewhat modified version of the missile turret code. And because it wasn’t complicated, I swapped out the player’s shooting code to allow players to have burst-fire as a possible upgrade type. Also it lets delightfully stupid things happen, like this.
I moved on to the next drone which I thought would be easy. I wanted a drone that fired two bullets in a parallel line. All I have to do is put a second ‘create bullet’ line in the code with a slightly different starting coordinate. And yeah, that worked. But it overlooked something.
Because the bullets are coming from the top and bottom of the drone, if you fire vertically, they lose the distance between them. I would need to find a way to rotate the origin point of the bullets based on the player’s aim direction, which I haven’t quite figured out how to do. Especially since my first attempt—literally rotating the drone—did not work even though it really should have. Whatever. I’m sure I’ll figure it out.
Until next Devlog!
-DeusVerve
DevLogs like these are brought to you by Patron(s) like Haelerin!