Ahh this game rules! It’s super fun and definitely feels like a classic arcade game that someone (me, haha) could spend hours playing. The text display looks great, and I love the variety of enemies (green ones are my least favorite to fight) and the mechanic of having the bullets go towards the cyclone adds a lot of depth to the game!
Some things you could add:
- A powerup that changes your projectile! It could be a spread of three smaller projectiles, or a random chance of shooting a bonus projectile that seeks out the nearest enemy, or a larger projectile with a slower “reload” rate (forced pause between shooting).
- Powerup that’s a temporary shield for the turret or the target
- In later levels, enemies that take multiple hits to destroy
I also took a quick peek at your code, and noticed one small thing. The interval in this
on game update block:
is only calculated once at the start of the game. Each time you restart the game, it will pick a random value, but that value won’t change over the course of the game (so if it picks “1”, an enemy will spawn every 5000ms for the rest of that run). If you want the interval to change each time you spawn an enemy instead, you will need to use a forever loop with a pause, like this:
Hope that helps! I can’t wait to see future updates, I had a great time playing!