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

Build Asteroids using Python and Pygame

Build a clone of the classic Asteroids game using Pygame and object-oriented programming concepts.

What will you learn?

Build a clone of the classic Asteroids game using Pygame and object-oriented programming concepts. This guided project will help you understand how to use Pygame to create a game loop, handle user input, and manage game state. You'll also learn how to use object-oriented programming to create game objects and manage their interactions.

Chapter List

1
Pygame
Setup and install Pygame.
2
Gameloop
Write a gameloop that renders the game at 60 frames per second.
3
Player
Create a Player class and implement movement.
4
Asteroids
Add asteroids for the player to avoid.

Join 26,080 students in the Build Asteroids using Python and Pygame course

Read reviews of their learning experiences

GIves just the right amount of nudges so you're not looking everything up, really feels like you're a "good" programmer.

(5/5)
Carter Beagle profile image

Carter Beagle

United States

Great proyect. Fun to develop a game and play it. Was my first experience as a game dev.

(4/5)
David Elias Forero Cobos profile image

David Elias Forero Cobos

Colombia

Amazing hands on experince, gives you a taste of what it will be like working on your own project soon.

(5/5)
Mohamed Elbana profile image

Mohamed Elbana

Egypt

An appropriate rite of passage. hehe.

(5/5)
Divine-Beanbag  profile image

Divine-Beanbag

United States

It's a bit dumbed-down because student's skills aren't quite there, but the value is in creating a thing, even if it entails a lot of handholding and AI assistance. Worth it and pretty fun. Open ended too so if you want to enhance the codebase on your own it's an option.

(4/5)
Jeffrey Knight profile image

Jeffrey Knight

Boulder, CO, USA

Amazing course and full working project!

(5/5)
Mohanad Osman profile image

Mohanad Osman

New York, USA

Easy to follow lessons to build a very basic version of Asteroids. It was also fun to get to play a game you created!

(5/5)
Mike Lalonde profile image

Mike Lalonde

Canada

I found myself being stuck a lot and the pygame library wasn't exactly easy to use in my opinion or maybe it was just me.

(2/5)
Samuel Adekoya profile image

Samuel Adekoya

Nigeria

great course to apply eveything that was learned beforehand. challenging sometimes but definitely beatable :) no souls-like but also no mario cart

(5/5)
Akram Naser profile image

Akram Naser

Switzerland

Showing 1-9 of 861

or view more reviews

Mediocrity doesn't cut it anymore

The only way to become a great developer is to write a lot of code

Avoid tutorial hell

by writing a ton of code

Stay motivated with

a game-like curriculum

Build portfolio projects

to prove your skills

Delve deeper

into foundational concepts

Learn flexibly online

without interrupting your life

For 1% the price of college

to minimize your financial risk

Frequently asked Questions

Got questions? We've got answers

Yes! It's free to create an account and start learning. You'll get all the immersive and interactive features for free for a few chapters. After that, if you still haven't paid for a membership, you'll be in read-only (content only) mode.