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

Build Asteroids using Python and Pygame

Make a real arcade game while practicing OOP, vectors, collision detection, and game loops.

What you'll learn in this Python course

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 32,043 students in the Build Asteroids using Python and Pygame course

Read reviews of their learning experiences

Great course! I didn't think I was capable of doing it but with the guidance of the course is achievable. It's also really rewarding seeing your progress in a real game.

(5/5)
Arturo Rivera profile image

Arturo Rivera

Spain

So much fun really got me thinking about making a game

(5/5)
Zane Maitland profile image

Zane Maitland

South Africa

Fun course!

(5/5)
Jason Tempinski profile image

Jason Tempinski

United States

This guided project was really fun! There is a lot of hand-holding and copying code, but plenty of "figure it out yourself" as well. It felt like working on a project with a senior dev who handled the most difficult parts of the code, which seems good for newbie!

(5/5)
Cameron Lewis profile image

Cameron Lewis

United States

Nice to fully put a lot of the things you learned thus far toghether in a small project

(4/5)
Okbe p.ivs profile image

Okbe p.ivs

Belgium

this one was fun

(5/5)
Dragon Scimitar profile image

Dragon Scimitar

United States

really fun and intuitive. More projects like this one!

(5/5)
Daniel Sicsik profile image

Daniel Sicsik

Mexico

Great project for really solidifying OOP concepts in Python and learning the basics of pygame!

(5/5)
Sean Collins profile image

Sean Collins

Plymouth, NH

Sometimes (acutally quite often) I found the task misleading/unclear.

(2/5)
KRiSP84  profile image

KRiSP84

Berlin

Showing 1-9 of 1225

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.