Skip to content

fadelbantan/asteroids

Repository files navigation

Asteroids Game

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.

Features

  • 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

Screenshots

// Add Screenshot Gameplay Screenshot

Installation

  1. Make sure you have Python 3.x installed
  2. Install Pygame:
pip install pygame
  1. Clone repo:
git clone https://github.com/fadelbantan/asteroids.git
  1. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages