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

Read reviews of their learning experiences

Definitely a little harder, will make you think and you'll get snagged but you'll learn a lot

(4/5)
Greg Celine profile image

Greg Celine

Australia

Super fun course. My recomendation is to go further and complete the game completely!

(5/5)
Kaspars Ločmelis profile image

Kaspars Ločmelis

Latvia

It was fun to get to make something for myself, especially a fun little game like this

(5/5)
Jorge Felix profile image

Jorge Felix

United States

very good way to learn new things, enjoyed a lot and learned a lot

(4/5)
Muhammad Burhan Qamar profile image

Muhammad Burhan Qamar

Pakistan

Was hitting a wall feeling like i wasnt going to understand coding but this has just revitalised me.

(5/5)
Mason  profile image

Mason

United Kingdom

fun course

(5/5)
bahvus  profile image

bahvus

Somewhere

A course that teaches you hands-on OOP and basic understanding of game dev!

(5/5)
Ahmed Awji profile image

Ahmed Awji

Lebanon

The course wasn't clear with teaching new concepts at times, and there were many bugs that I needed boots' help with because we weren't taught to deal with them in the past

(3/5)
David Chipping profile image

David Chipping

United States

Putting it all into practice and finishing my first project was awesome.

(5/5)
Sidd Lee profile image

Sidd Lee

United States

Showing 1-9 of 1275

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.