We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Build an Asteroids Game

We're going to build a simple video game, based on the classic Asteroids. If you've never played before, you can take a look at this (slightly different from our) version of the game.

for Windows Users

If you try to complete this course without WSL 2 installed on Windows, you're gonna have a bad time.

Prerequisites

  • Python 3.10+ installed (see the Bookbot project for help if you don't already have this)
  • The uv project/package manager
  • Access to a Unix-like shell (e.g., zsh or bash)

Learning Goals

The learning goals of this project are as follows:

  1. To introduce you to multi-file Python projects
  2. To get you used to referencing documentation (something you'll do often in the real world)
  3. To show you a real-world use case for object-oriented programming
  4. To have a ton of fun building a rewarding project!

The goal is not to teach game development or the math required for physics simulations. As a result, there are some places where you'll simply copy-paste code that we wrote for you. Don't worry about trying to understand every detail if it's not interesting to you; you will be asked to write the parts that matter most.

Assignment

To get started, make sure you have the Boot.dev CLI installed and working. Make sure you've installed uv (mentioned in Prerequisites) before running the tests.

Run and submit the CLI tests.

The tests just ensure that the CLI is installed and configured correctly.