Here are a couple games I wrote. The first was so popular that I made a sequel:
Win32 EXEs and source:
Look At This Rock
Look At This Rock 2: A Different Rock
Source (requires Pygame to be installed along with Python):
Source: LookAtThisRock.py and PNG
Source: LookAtThisRock2.py and PNG
Here’s the introductory chapter to my next book on Python and Pygame. It assumes you have some Python and programming experience (if you don’t, give a look to Invent with Python), and offers a quick view of all of the major parts of Pygame.
The chapter by itself is a good introduction to Pygame. If you’ve been meaning to give Pygame a look, then download the chapter. Please email in any questions or suggestions you have: [email protected]
Unfortunately, the links in the book aren’t working yet, but should be in a few days.
Yuanle Qiu has started translating the “Invent Your Own Computer Games with Python” into Chinese. The first
three five chapters are done, with more on the way. Thanks a lot Yuanle!
If you or someone you know can participate in translating “Invent with Python” into other languages (Hindi, Spanish, French, German, etc.) please contact Al for more information. “Invent with Python” is released under a Creative Commons license, so the translated works would be freely available to those who want to learn programming.
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.
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: