This was really fun but around the 4 min mark I could not shoot. so I had to make a army, a rat army. idk if this is a feature but apparently the rats kill other enemys if there group up. got a 10:17. Nice game, good job!
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.