The Top 10 Pygame Tutorials

UPDATE: This is an old post, written before I finished my book entirely dedicated to Pygame. You can read a free online copy of “Making Games with Python & Pygame” at http://inventwithpython.com/pygame.

I’ve scoured the web for some decent tutorials for Pygame, one of the best game engines for Python out there. Here’s what I’ve found, ordered by (in my opinion) quality. Perhaps the most comprehensive guide to Pygame would be the Pygame documentation itself, or Beginning Game Development with Python and Pygame: From Novice to Professional by Will McGuan.

1. Eli Bendersky’s website: Writing a game in Python with Pygame

Possibly the best Pygame tutorial on the web. The game example he covers is original and touches on many different concepts. The writing is concise and to the point.

Part I

Part II

Part III

Part IV

2. Invent Your Own Computer Games with Python by Al Sweigart

This is my own tutorial for Pygame. The first three chapters cover the basics of Pygame’s features, and the fourth chapter details the entire source code to a simple “Dodger” game.

Chapter 17 – Graphics and Animation

Chapter 18 – Collision Detection and Input

Chapter 19 – Sound and Images

Chapter 20 – The “Dodger” Game

UPDATE: I also have the rough draft completed copy for my Pygame-specific book available: Making Games with Python & Pygame

3. Lorenzo E. Danielsson’s blog: Keeping it Small and Simple: Pygame Tutorial

A nice and lengthy tutorial covering a Worms game clone. This tutorial has nine parts, and goes into a good amount of detail on graphics and mouse input.

Pygame tutorial #1: getting started

Pygame tutorial #2: drawing lines

Pygame tutorial #3: mouse events

Pygame tutorial #4: more on events

Pygame tutorial #5: pixels

Pygame tutorial #6: from pixel to worm

Pygame tutorial #7: more on lines

Pygame tutorial #8: the worm game

Pygame tutorial #9: first improvements to the game

4. Pygame Physics Simulation

A multi-part tutorial that covers Pygame, basic physics simulation, and several other related topics in an easy-to-read format. Give this tutorial a read as it offers good info on things that none of the other tutorials cover.

5. LearningPython.com

Page 1 of 2 | Next page