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

Read reviews of their learning experiences

Awsome course. Helped me get use to using OOP and really made me want to improve and add things to my project after I was done.

(5/5)
Guy Greenberg profile image

Guy Greenberg

Israel

Great project

(5/5)
Nguyen Hieu profile image

Nguyen Hieu

Vietnam

Really fun course! It's super-satisfying to see all the knowledge gained thus far turn into something concrete.

(5/5)
Bishoff  profile image

Bishoff

United States

Keep steady!

(5/5)
Oleksiy Khrenov profile image

Oleksiy Khrenov

Ukraine

Useful to see a multifile project and how they interact with each other. Also good practice with object-oriented programming. Will probably have to call on Boots for usage of pygame and random libraries. You do get experience with object-oriented programing with inheritance.

(4/5)
Walter Manbeck profile image

Walter Manbeck

United States

Thank you for this course. It was alot of fun!

(5/5)
David Gonzalez profile image

David Gonzalez

United States

I enjoyed this course and feel I learned a lot, but I think this would be better if it was a little longer and had explained things in more detail. Maybe turn it into a course on learning/using pygame and go into that more, rather than writing a lot of the code and doing copy/paste.

(3/5)
Jesse P profile image

Jesse P

United States

Good course. Just the right amount of instruction vs. making you figure it our yourself.

(5/5)
Brent Lattin profile image

Brent Lattin

United States

This was a fun game to build

(5/5)
Abdirahman Abdirizak Nur profile image

Abdirahman Abdirizak Nur

Canada

Showing 1-9 of 972

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.