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

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

Read reviews of their learning experiences

So amazing to see the game come to life!

(5/5)
Glyn Layton profile image

Glyn Layton

United Kingdom

Making games is fun!

(5/5)
Nikita  profile image

Nikita

Kazakhstan

Good demo of live code on a fun little project. Being able to build on top of the base result after was fun as well.

(5/5)
Desmond Phillips profile image

Desmond Phillips

United States

It was an amazing experience building this game. My OOP principles understanding improved more and more.

(5/5)
Enes Yıldırım profile image

Enes Yıldırım

Turkey

Its cute honestly I cant wait for the personal project so I didnt want to make many modifications to the game :)

(5/5)
Itay Abraham Cohen profile image

Itay Abraham Cohen

Israel

I would like it if it was longer and if it explained more instead of the copy paste

(3/5)
Israel Becerra profile image

Israel Becerra

Mexico

I had previously worked on an Asteroid project but this time I definitely had way more fun coding it.

(5/5)
Shervin Shabanpour profile image

Shervin Shabanpour

United States

I feel like I learned a few things but also a lot is given so I felt like I was only learning a small part of what is being used. It did help drill in some about classes and inheritance, and that is something I've never been super solid with, but... I dunno, it just FELT like to much was given to me and maybe I'd have liked this to fall a little further on so I could really feel like I was doing it.

(4/5)
Mireille C profile image

Mireille C

United States

Wonderful

(5/5)
Kelvin Kitheka profile image

Kelvin Kitheka

Netherlands

Showing 1-9 of 1023

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.