The Invent with Python Blog

Writings from the author of Automate the Boring Stuff.

Pygame Cheat Sheet

Fri 07 October 2011    Al Sweigart

If you already know a bit of programming and Python, and want to get up to speed on the Pygame 2D game framework, here's a cheat sheet that you can look over. It implements a very short Pygame program covering most of Pygame's basic features.

View the Pygame Cheat Sheet.

Thumbnail of Pygame cheat sheet

You can also download the Pygame program itself, along with the cat.png and bounce.wav files it uses. You will need to install Python and Pygame first to run this program. The program looks like this when you run it:

Pygame cheatsheet


Learn to program for free with my books for beginners:

Sign up for my "Automate the Boring Stuff with Python" online course with this discount link.

Email | Mastodon | Twitter | Twitch | YouTube | GitHub | Blog | Patreon | LinkedIn | Personal Site