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

Read reviews of their learning experiences

Great course! Chapters 3 and 4 presented some skill issues for me, but that is the point of this. Spoon-feed just enough to get you thinking and solve similar tasks.

(4/5)
Brady  profile image

Brady

United States

Very fun project

(5/5)
fares sayegh profile image

fares sayegh

Belgium

It was awesome to make something tangible with this course, even more so than the bookbot. I hope I can develop the game a bit further with the suggested features

(5/5)
Pasindu Attale profile image

Pasindu Attale

Sri Lanka

So hard. Without boots i would probably have given up or taken 10x more hours.

(5/5)
Paul Appleyard profile image

Paul Appleyard

United Kingdom

This course was the most interesting and fun. Learned OOP very thoroughly.

(5/5)
Syed Ali profile image

Syed Ali

Pakistan

I liked it. Maybe too much guidance. But great overall.

(4/5)
Vadzim Asipovich profile image

Vadzim Asipovich

Poland

it was awesome!

(5/5)
Danylo Lysenko profile image

Danylo Lysenko

Ukraine

Good course, learning how things interact with each other.

(5/5)
Nicho  profile image

Nicho

United Kingdom

That was rather fun, and unexpectedly quick. Quite a motivating little course.

(5/5)
Jan Martin profile image

Jan Martin

Germany

Showing 1-9 of 1147

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.