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

Read reviews of their learning experiences

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

Good practice!

(5/5)
xqsme  profile image

xqsme

Netherlands

it wasnt that hard and it was so much fun

(5/5)
Pedro  profile image

Pedro

Brazil

I think it dropped you straight into the deep. I feel like there could be more explanation to pygame.Velocity, and perhaps a version that can be properly used on windows without having to use WSL.

(3/5)
Civlixity  profile image

Civlixity

Hungary

It is nice entry into writing a functioning program.

(3/5)
Max  profile image

Max

Germany

very interactive module

(4/5)
Baranwal  profile image

Baranwal

India

Super hard

(1/5)
Panos Zermpinos profile image

Panos Zermpinos

Greece

Fun change of pace for me

(5/5)
Curtis Kormos profile image

Curtis Kormos

Canada

good

(5/5)
Rashid Yaseen profile image

Rashid Yaseen

Pakistan, Islmabad, Nust(H-12)

Showing 1-9 of 1105

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.