We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

Build Asteroids using Python and Pygame

Build a clone of the classic Asteroids game using Pygame and object-oriented programming concepts.

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

Read reviews of their learning experiences

Fun and fairly rigorous

(5/5)
Elijah  profile image

Elijah

United States

A nice first project using Pygame

(4/5)
Martin Perez profile image

Martin Perez

France

Had a blast coding the game across just a few days following the course. First time making something like this, so it was really interesting. The last time I made something similar was a minesweeper using tkinter, of all things, haha.

(5/5)
Wai Kin Chan profile image

Wai Kin Chan

Sydney, Australia

This course help me for re forced the skills that I gained on the OOP course also I have so much fun creating a game for the first time

(5/5)
Brayan Perez profile image

Brayan Perez

Colombia

I still wonder why triangle hitboxes are hard, but I'm also scared to find out

(5/5)
Wellington Creat profile image

Wellington Creat

Netherlands

great stuff

(5/5)
Patrick Davis profile image

Patrick Davis

United States

This was a lot of fun to build and is a great reference project for loop-based game projects

(5/5)
Lee J profile image

Lee J

United States

I still seem to be missing some basic understanding. I can understand any solution, but getting there on my own can be challenging.

(4/5)
Edward Caissie profile image

Edward Caissie

Dundas, Ontario, Canada

good balance of challenge, difficulty and accessibility.

(5/5)
Jagannath A profile image

Jagannath A

Chennai, India

Showing 1-9 of 922

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.