A Python implementation of the classic Asteroids game, with modular components (player, asteroids, shooting, collision, etc.).
- Real-time asteroid field generation
- Player with thrust, rotation, and shooting mechanics
- Collision detection (ship ↔ asteroids, bullets ↔ asteroids)
- Lives, scorekeeping, and game over logic
- Modular code architecture (separate modules for shapes, constants, etc.)
-
This project uses Python 3.x.
-
You will also need
pygame. -
- uv installed
If you don’t haveuv, install it with:
pip install uv
- uv installed
-
Clone the repository:
git clone https://github.com/Dvdandrades/Asteroids.git cd Asteroids -
Install dependencies with uv
uv sync