A simple but fun clone of the classic Asteroids arcade game, built using Python and Pygame. This project was created as part of the Boot.dev game development course, and includes basic physics, shooting mechanics, and splitting asteroids!
- Player-controlled spaceship that can rotate, thrust, and shoot
- Floating and splitting asteroids
- Collision detection and basic physics
- Modular code structure with OOP design
ASTEROIDS/
├── asteroid.py # Asteroid class logic
├── asteroidfield.py # Manages all asteroids
├── circleshape.py # For drawing and collision of circular objects
├── constants.py # Game constants like speed, colors, screen size
├── main.py # Game entry point
├── player.py # Player spaceship class
├── shot.py # Bullet class
├── requirements.txt # Dependencies (Pygame)
└── README.md # You're reading it!
- Python 3.7+
- Pygame
Install dependencies with:
pip install -r requirements.txt
After installing requirements, run the game using:
python main.py
Use your keyboard to control the ship:
- 🔼 Up Arrow — Thrust
◀️ /▶️ Left/Right Arrows — Rotate- Spacebar — Shoot
This game was built as the final project for Boot.dev's "Build Your Own Asteroids Game" module. It demonstrates the use of Pygame, object-oriented programming, basic game physics, and a modular file structure.
- Created by [Your Name Here]
- Course by Boot.dev
MIT License — feel free to use or build on this code!