Asteroids is a Boot.dev project! I built a simple video game, based on the classic Asteroids. If you've never played before, you can take a look at this version of the game. The learning goals of this project are:
- Introduction to multi-file Python projects
- Real-world use case for object-oriented programming
- To have a ton of fun building a rewarding project!
For more, see Boot.dev Achievements
- Fork from the
mainbranch - Download and extract .zip from your forked repository
- Navigate to directory of extracted .zip in terminal; Example:
cd ~/user/downloads - Create a virtual environment at the top level of your directory:
python3 -m venv venv- Activate the virtual environment:
source venv/bin/activate- Should look like this:
(venv) username@MacBook-Pro-2 Asteroids % - Install the requirements:
pip install -r requirements.txt- Confirm pygame is installed:
python3 -m pygame - Run program:
python3 main.pyScreen.Recording.2025-06-06.at.10.18.25.PM.mov
- Requires Python 3.10+ installed
- Requires Pygame 2.6.1+ installed
- Requires access to a unix-like shell (e.g. zsh or bash)