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.

Browse Lessons (read-only)

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

Read reviews of their learning experiences

last step was kinda tricky but its a fun project

(5/5)
mmMmMMmemo xd profile image

mmMmMMmemo xd

Mexico

Very hard it's like a checkpoint for knowledge.

(5/5)
Esla K profile image

Esla K

Cyprus

had fun and learned alot, as well as very proud of what ive done here so far. i feel like i could have learned more if it had been slightly more hands off and just clued you in to what needed to happen but i understand why things needed to happen the way they did

(4/5)
Kaleb Carter profile image

Kaleb Carter

United States

The challenging part was defintiely the fact of not knowing the game development/graphic context as well as math like linear alegbra. But the OOP concepts which was the point of the guided project were definitely reinforced in this project very good project!

(5/5)
James Gillis profile image

James Gillis

United States

A lot of fun with more complex processes

(5/5)
Vicente Labbe profile image

Vicente Labbe

Chile

This took me hours to complete, despite being guided but it was extremely helpful to get that muscle memory in. There really is no substitute for seeing all of this come alive in practice!

(4/5)
Ismar Iljazovic profile image

Ismar Iljazovic

Zurich, Switzerland

idk man. games aren't my thing. good course tho

(3/5)
Harry  profile image

Harry

London

Very fun course where you practice object-oriented programming principles by building the classic video game asteroids. A lot of the code is given to you so that the technical aspects of game development aren't necessary but there is still room to learn some pygame if that is a route you want to explore.

(5/5)
Justin Dorsch profile image

Justin Dorsch

United States

This is the most fun coding experience I've ever had! Would definitly build it further and add some cool features to it. Thanks!

(5/5)
Ali Khan Moradi profile image

Ali Khan Moradi

Germany

Showing 1-9 of 1082

Browse Lessons (read-only)

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.