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

Read reviews of their learning experiences

Loved the course! Truly an awesome experience to create a video game which I was not expecting!

(4/5)
Franz Pichardo Rodriguez profile image

Franz Pichardo Rodriguez

Dominican Republic

The previous classes are amazing. However, the issue I have with this course is that its more a tutorial to making the video game, not a tutorial to pygame. In the end, if I want to use pygame I will need to take a dedicated tutorial since this, while teaches you a lot, guides you through it to the point of you jsut doing what they say.

(2/5)
Odin  profile image

Odin

United States

I have my gripes with pygame coming from other game dev engines but this was a great learning experience for python in general.

(5/5)
Balamast  profile image

Balamast

United States

overall pretty good felt lost at points but boots did help push me in the right direction.

(4/5)
Aylett  profile image

Aylett

Australia

I think this could be worth some more xp and expect you to write some more of the code yourself with a little less guidance (i.e. point at docs but don't give such explicit step by steps)

(3/5)
George Wallace profile image

George Wallace

Glasgow, Scotland

Cheers

(5/5)
Alp  profile image

Alp

Turkey

Really satisfying to do! Nice to practice OOP in the editor after doing the OOP course.

(5/5)
Soochoup  profile image

Soochoup

France

This is a great project. It’s not something I’m usually used to, but it’s nice to try something different once in a while.

(5/5)
Bruno Fialho profile image

Bruno Fialho

Brasil

Lovely

(5/5)
Emilio Alcantara profile image

Emilio Alcantara

Dominican Republic

Showing 1-9 of 1041

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.