StarShip: Collect Stars and Avoid Rocks is a fast-paced 2D arcade game developed with Pygame that focuses on reflexes, movement, and survival.
The player controls a spaceship flying through space. The goal is to collect stars to increase the score while avoiding flying rocks (asteroids) that act as dangerous obstacles.
- 🚀 Spaceship Control The player moves the spaceship using the keyboard, navigating freely across the screen.
- ⭐ Star Collection Stars spawn at random locations. Each collected star increases the score.
- 🪨 Rocks (Asteroids) Rocks move across the screen and must be avoided. A collision with a rock ends the game or costs a life.
- 🔥 Progressive Difficulty (to do!) As the game continues, rocks may appear faster or in greater numbers, increasing the challenge.
Collect Stars and Avoid Asteroids
use the keyboard arrows ➡️⬆️⬇️⬅️
- Classic arcade-style gameplay
- Real-time collision detection
- On-screen score display
- Simple 2D graphics rendered with Pygame
- Easily extendable (lives, power-ups, sound effects)
StarShip: Collect Stars and Avoid Rocks is easy to pick up but increasingly challenging. It’s an excellent Pygame project that demonstrates core game-development concepts such as the game loop, event handling, sprite movement, and collision management, while remaining fun and engaging.


