These examples should help get you started with pyGame. Here is a
brief rundown of what you get. The source code for these examples
is in the public domain. Feel free to use for your own projects.

uberball.py - This was added for pygame-1.5. It is a more complete
    game, similar to breakout. Derived from the pygame chimp example
    it shows how to do menu screens and a more complete game.

aliens.py - This started off as a port of the SDL demonstration,
    Aliens. Now it has evolved into something sort of resembling
    fun. This demonstrates a lot of different uses of sprites and
    optimized blitting. Also transparancy, colorkeys, fonts, sound,
    music, joystick, and more. (PS, my high score is 117! goodluck)

oldalien.py - This more closely resembles a port of the SDL Aliens
    demo. The code is a lot simpler, so it makes a better starting
    point for people looking at code for the first times. These
    blitting routines are not as optimized as they should/could be,
    but the code is easier to follow, and it plays quick enough.

stars.py - A simple starfield example. You can change the center of
    perspective by leftclicking the mouse on the screen.

fonty.py - Super quick, super simple application demonstrating
    the different ways to render fonts with the font module

vgrade.py - Demonstrates creating a vertical gradient with
    Numeric python. The app will create a new gradient every half
    second and report the time needed to create and display the
    image. If you're not prepared to start working with the
    Numeric arrays, don't worry about the source for this one :]

arraydemo.py - Another example filled with various surfarray
    effects. It requires the surfarray and image modules to
    be installed. This little demo can also make a good starting
    point for any of your own tests with surfarray

sound.py - Extremely basic testing of the mixer module. Load a
	sound and play it. All from the command shell, no graphics.

liquid.py - This example was created in a quick comparison with the
	BlitzBasic gaming language. Nonetheless, it demonstrates a quick
	8-bit setup (with colormap).

glcube.py - Using PyOpenGL and Pygame, this creates a spinning 3D
	multicolored cube.


data/ - directory with the resources for the examples



We're always on the lookout for more examples and/or example
requests. Code like this is probably the best way to start
getting involved with python gaming.


Pete Shinners
shredwheat@mediaone.net


pySDL    : http://pysdl.sourceforge.net
SDL      : http://www.libsdl.org
aliens.c : http://www.libsdl.org/projects/aliens