A classic arcade-style asteroids game built with Python and Pygame! Navigate your spaceship through a field of dangerous asteroids, blasting them to pieces while avoiding collisions.
- Smooth spaceship movement with realistic physics
- Asteroid collision detection and destruction
- Shooting mechanics with projectiles
- Randomly generated asteroid fields
- Score tracking system
- Game over and restart functionality
- Make sure you have Python 3.x installed
- Install Pygame:
pip install pygame- Clone repo:
git clone https://github.com/fadelbantan/asteroids.git
- cd into the game files:
cd asteroids
Run the game:
python main.py
Controls:
Arrow Keys or WASD: Move your spaceship Spacebar: Shoot projectiles ESC: Quit the game Objective: Destroy all asteroids without getting hit!
Acknowledgments Built as part of the Boot.dev Python course Inspired by the classic Atari Asteroids game
