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

Read reviews of their learning experiences

A really fun way to get to grips with classes, creating a modular program, & having different objects interacting with each other.

(5/5)
Orla Kelly profile image

Orla Kelly

United Kingdom

as this was, a course on basically how to make a game. I wish it really went into how to do the physics and all. I can do the calculations on my own but to apply them in code i think is a different thing but otherwise informative. I think in terms of workflow this really helped and what needs to be present when making a simple game

(3/5)
Nayl Haziq profile image

Nayl Haziq

Malaysia

Amazing course!!! It teaches you the basic of game development. The task were challenging and informative.

(5/5)
Simon Pocrnjič profile image

Simon Pocrnjič

Slovenia

I think some of the instruction is not easy to follow I need you to instruct me do a then b then c. I find myself having to search back through previous instructions to figure things out unnecessarily.

(4/5)
Tyler Bird profile image

Tyler Bird

United States

Good course, but content could have been better. I do understand the need of the boiler code, but if it would have been anything meaningful that I would be able to build from scratch rather than reading other code that doesn't make a lot of sense at this stage, that would have been a much better project than this one. I wasn't;t able to connect with the content. Maybe because I am a guy who likes to understand things deeply even in a project before coding

(3/5)
Somnath Sebait profile image

Somnath Sebait

India

Good starter course.

(5/5)
Sergei LastName profile image

Sergei LastName

Tbilisi

Easy to understand lessons with just a few RTFM parts.

(5/5)
Nathan Gibbs profile image

Nathan Gibbs

United States

That was challenging but fun, and I learned a ton

(5/5)
Andrea Keene profile image

Andrea Keene

United States

Great course overall, although some of the instructions could be clearer, and maybe increase the difficulty a bit? Still very fun to learn though!

(4/5)
Max Yang profile image

Max Yang

United States

Showing 1-9 of 1113

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.