Fun little game. Gun stops shooting after a while and enemies start dieing on there own so I assume a bug there but it was cool.
Viewing post in Applied Physics jam comments
Hey, thank you for the comment! I knew about the bugs but I had no time to come up with solutions so it is what it is haha. If you're wondering what's happening:
1. The gun won't allow you to shoot more than two bullets at a time. Unfortunately, if an enemy dies with a bullet attached to it, the bullet despawns and the gun's tracking breaks.
2. Enemies dying on their own is a bit complicated. Basically, I wanted to calculate damage based on how fast the enemy collides with another object (enemy or terrain), but I couldn't figure out a solution because terrain doesn't have an Area2D. So I just made the enemies take damage when they rapidly decelerate, which has the side effect of killing them when they run into each other or the player.