Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 939 Bytes

README.md

File metadata and controls

55 lines (38 loc) · 939 Bytes

Asteroids Game

A Python implementation of the classic Asteroids arcade game using Pygame.

Description

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

Requirements

  • Python 3.x
  • Pygame

Installation

  1. Clone this repository
git clone https://github.com/JSayWhat/build_asteroids
cd asteroids-game
  1. Create a virtual environment (recommended):
python -m venv venv
source venv/bin/activate
# On Windows use: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt

How to Play

python main.py

Controls

  • a key - move left
  • d key - move right
  • w key - move forward
  • x key - move backwards
  • space bar - shoots