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

Read reviews of their learning experiences

It is INCREDIBLY HARD. I cant believe I saying this but I need a legit lower difficulty at this rate I cant even go a single challange without using boot.

(4/5)
Fariz Akhdan profile image

Fariz Akhdan

Indonesia

Fun enough that I won't deduct points for giving a bit too much code for free.

(5/5)
Chutz M profile image

Chutz M

United States

Making Asteroids was more fun than playing it!

(5/5)
Gus Gablaw profile image

Gus Gablaw

Canada

I had a lot of fun building this i can't wait to make this my own and implement my own iterations to the game.

(5/5)
Matt Sheffield profile image

Matt Sheffield

United States

I feel this one set me back more than it pushed me forward.

(1/5)
Andrés Sánchez Bahoque profile image

Andrés Sánchez Bahoque

Ecuador

Learned a ton. I made a functional game from basically scratch and now I can't wait to try making more

(5/5)
Matt Gilmore profile image

Matt Gilmore

United States

very interactive course, i really enjoyed

(5/5)
Zujaja K profile image

Zujaja K

Pakistan

It was okay for learning more about OOP and dividing your work into smaller pieces of code. It was fun!

(5/5)
Fernando Cardozo profile image

Fernando Cardozo

Paraguay

easy to follow and will continue whit the extensions to practice even more

(5/5)
Alan Orozco profile image

Alan Orozco

Mexico

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.