Home Creators Posts Import Register Favorites Logout

Content

Last week I managed to get a lot done, especially during that Wednesday livestream. My full count of upgrades is now at 30, with 10 drones and 20 different bullet upgrades. Not enough for anything resembling a full game but decent for a demo.

I was also able to fix that bug with the Spike enemy. It was simply attacking multiple times at once because the code didn’t check to see if it was already attacking before running the attack code. An easy fix. It’s the same thing pretty much all the things in the game that shoot do—player, drones, enemies—so I should’ve realized that was the issue sooner.

I also added a new HUD element finally, the one that tells you how many times you can dash. The sprite is still placeholder but hey so are the drones. Besides I think I need to touch up the HUD anyway.

Unfortunately, I wasn’t able to figure out how to fix the math on the twin blaster drone. Even with multiple suggestions both on-and-offline, nothing I tried helped me get the behavior that I wanted from it. I was beginning to think that when I posted a demo later today, the drone would simply not work correctly.

Until this very morning, when I awoke with a sudden flash of inspiration.

The player sprite changes to face the direction the player is aiming. This simple code is based around diving the aim direction by the number of degrees you want to check for (since I’m only looking in four directions, that would be 90) and then using modulo to take the remainder to find which of the four directions the player is looking. However. There is nothing stopping me from using the same code but set to eight directions, and then using a switch statement to adjust where the bullets are spawned from.

It's not perfect but it works!

So, at some point later today, I’ll have a new build posted to Patreon, available for patrons of certain tiers. In one week it will be publicly available, as usual. Which means that my goal for this week is to make another YouTube video about it.

Until next Devlog!

-DeusVerve

DevLogs like these are brought to you by Patron(s) like Haelerin!

Files

Comments

No comments found for this post.