Last Updated: 20 May 2026
A simple, classic Asteroids game built with Python and Pygame.
- Classic Gameplay: Pilot your ship, avoid asteroids, and shoot to clear the screen.
- Controls: Built-in keyboard support for rotation, thrust, and shooting.
- State Management: Includes pausing, game over detection, and high-score tracking (via score display).
No setup required! You can play the live versions of the game right now:
- π Play on Web: itch.io
- π± Download for Windows (.exe): Download Here
- Python 3.x
pygamelibrary
- Clone or copy the project files to your local machine.
- Open your terminal in the project folder.
- Create and activate virtual environment:
python -m venv venv
.\venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Run the game:
python Asteroids.py
| Action | Key |
|---|---|
| Rotate Left/Right | Left Arrow / Right Arrow |
| Thrust | Up Arrow |
| Shoot | Spacebar |
| Pause | P |
| Restart | R |
| Quit | Esc |