Specification
This is how the game should work.
- Rocket (player):
- The rocket should be displayed as an image on the screen.
- It should start at the bottom center of the screen.
- If the rocket collides with a UFO’s bomb, the rocket should explode and reset to its initial position.
- UFOs (enemy):
- UFOs should be displayed as animated sprites on the screen.
- UFOs should move horizontally across the screen, bouncing off the edges.
- Each UFO should drop bombs periodically towards the rocket.
- If a UFO is hit by a bullet, it should explode and respawn at a random position on the screen.
- Bullets:
- The rocket should be able to shoot bullets to destroy UFOs.
- The bullets should be displayed as images on the screen.
- When a bullet collides with a UFO, the UFO should explode. ...