Skip to content

Latest commit

 

History

History
59 lines (46 loc) · 1.35 KB

File metadata and controls

59 lines (46 loc) · 1.35 KB

Asteroids Game

Last Updated: 20 May 2026

A simple, classic Asteroids game built with Python and Pygame.


Features

  • 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).

🌟 Play Now

No setup required! You can play the live versions of the game right now:


Prerequisites

  • Python 3.x
  • pygame library

Setup

  1. Clone or copy the project files to your local machine.
  2. Open your terminal in the project folder.
  3. Create and activate virtual environment:
python -m venv venv
.\venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the game:
python Asteroids.py

Controls

Action Key
Rotate Left/Right Left Arrow / Right Arrow
Thrust Up Arrow
Shoot Spacebar
Pause P
Restart R
Quit Esc