Skip to content

fllin1/asteroids

Repository files navigation

Asteroids Game

A Python implementation of the classic Asteroids arcade game built with Pygame.

About

This project is a clone of the iconic Asteroids game, developed as part of the Boot.dev Python and Pygame course. The game demonstrates object-oriented programming concepts and game development fundamentals.

Features

  • Player-controlled spaceship with movement and rotation
  • Asteroid spawning and collision detection
  • Asteroid splitting mechanics
  • Game loop with FPS management
  • Sprite-based rendering

Requirements

  • Python 3.11+
  • Pygame

Installation

Using uv (recommended)

# Create a virtual environment with uv
uv venv --python 3.12

# Activate the environment
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install dependencies
uv pip install pygame

Using pip

pip install pygame

Usage

python main.py

Controls

  • Arrow keys or WASD: Move and rotate the ship
  • Spacebar: Shoot

Acknowledgments

This project was created following the guided tutorial from Boot.dev.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages