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 you'll learn in this Python course

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

Read reviews of their learning experiences

Really enjoyed being able to SEE and INTERACT with the fruits of my coding labour. The course brings together many of the OOP concepts in a hands-on way that is really rewarding.

(5/5)
Dr. Wynand J. Louw profile image

Dr. Wynand J. Louw

South Africa

Amazing course, I got a lot of hands-on experience. I strongly suggest to take a minute to, at least, look at the code given so you can think about what you're doing

(5/5)
Felipe  profile image

Felipe

Chile

haha asteroids go pew pew

(4/5)
SmittyGamer  profile image

SmittyGamer

United States

I learned a lot about programming and coding, and much of what was done in previous sections really clicked with this course.

(5/5)
Melissa Greathouse profile image

Melissa Greathouse

United States

nice

(5/5)
Le Git profile image

Le Git

Brazil

Easy to follow and complete. It's also fun!

(5/5)
Richard Martin profile image

Richard Martin

Australia

i did it.. my first game.. i want to cry

(5/5)
Flying Chungus profile image

Flying Chungus

Malaysia

So much fun! was able to use the python skills I learned and apply them directly to an awesome project

(5/5)
Omega Rae profile image

Omega Rae

United States

I really had fun building this little app. If you are a beginner you will probably run into some bugs. Fixing those and solving problem you encounter is exactly the practice you need now. For intermediate and expert level programmers, this is a nice way to keep in touch with "real" programming and forgeting all that AI completion for a moment.

(5/5)
vintschi  profile image

vintschi

Austria

Showing 1-9 of 1184

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.