A Python implementation of the classic Asteroids arcade game using Pygame.
This is a recreation of the classic Asteroids arcade game where players control a spaceship and shoot asteroids while avoiding collisions. The game features:
- Player-controlled spaceship
- Shooting mechanics
- Asteroid field generation
- Collision detection
- Simple physics system
- Python 3.x
- Pygame
- Clone this repository
git clone https://github.com/JSayWhat/build_asteroids
cd asteroids-game
- Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate
# On Windows use: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
python main.py
- a key - move left
- d key - move right
- w key - move forward
- x key - move backwards
- space bar - shoots