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

Read reviews of their learning experiences

really useful to understand how a project can be built. Super nice to see it grow bit by bit

(5/5)
notjjusann  profile image

notjjusann

Belgium

a lot of fun. and a lot of ideas.

(5/5)
Josh Wraa profile image

Josh Wraa

United States

Cool project, I feel like they give you too much 'pre-made' code though and don't explain enough of it.

(3/5)
Abel Mitchell profile image

Abel Mitchell

Maine, USA

A great step forward into a mythical game project. It's really satisfying and I truly enjoyed.

(5/5)
cococococ ocococ profile image

cococococ ocococ

Spain

Was real fun!

(5/5)
Linus Horn profile image

Linus Horn

Germany

I learned a lot, but we skipped a lot of steps. This course could have been three times a long and taught us all PyGame. I don't feel that I really understand the theory behind the sprite objects.

(5/5)
Ben  profile image

Ben

United States

Excellent project to start putting the acquired knowledge together!

(5/5)
Sergio Augusto profile image

Sergio Augusto

Brazil

great

(5/5)
子揚 曾 profile image

子揚 曾

Taiwan

Good stuff!

(5/5)
Stevan Freeborn profile image

Stevan Freeborn

Olathe, Kansas

Showing 1-9 of 1010

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.