Skip to content

JaydenChuaComputer/asteroids-game-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 

Repository files navigation


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

About

Simple Asteroids game in Python using Pygame

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages