For the second part of my entery, I have added the ability for the asteroids to fall at different speeds throughout the game.

For the meteor speed mechanic, I updated asteroid.py to give each asteroid a speed value and move only on certain turns depending on that speed.
I also changed the spawner so each new asteroid gets a random speed between 1 and 3. This means some asteroids fall quickly while others fall more
slowly. This addition is important because it creates more variety in the game, makes movement patterns less predictable, and increases the
challenge in a natural way as the player navigates different kinds of threats.
This commit is contained in:
angelotr
2025-12-09 00:38:15 -05:00
parent 47a9e1abe3
commit d0952e4203

View File

@@ -28,4 +28,5 @@ class Bullet:
game.remove_agent(self) game.remove_agent(self)
# Reward points for hitting an asteroid # Reward points for hitting an asteroid
game.state["score"] += 10 game.state["score"] += 10
return return
#here