Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Boot.Dev Guided Project II

foxwyn/asteroids

Repository files navigation

Asteroids

Build Asteroids using Python. Guided project from Boot.dev

Prerequisites

  • Python 3.10+
  • VcXsrv if using WSL

Setup

From within the project root:

python3 -m venv venv
source venv/bin/activate

In a requirements.txt file, add:

pygame==2.6.1

Install dependencies with pip:

pip install -r requirements.txt

Running

To launch the game, run from within project root:

python3 main.py

Extending the project (bonus objectives)

  • Add a scoring system
  • Implement multiple lives and respawning
  • Add an explosion effect for the asteroids
  • Add acceleration to the player movement
  • Make the objects wrap around the screen instead of disappearing
  • Add a background image
  • Create different weapon types
  • Make the asteroids lumpy instead of perfectly round
  • Make the ship have a triangular hit box instead of a circular one
  • Add a shield power-up
  • Add a speed power-up
  • Add bombs that can be dropped

About

Boot.Dev Guided Project II

Topics

Resources

Stars

Watchers

Forks

Languages