This is the license Pygame
is distributed under. It provides for Pygame to be distributed with open source
and commercial software. Generally, if Pygame is not changed, it can be used
with any type of program.
The beginning
steps on importing and initializing Pygame. The Pygame package is made of
several modules. Some modules are not included on all platforms.
The pygame examples includes a simple program with an interactive fist and a
monkey. This was insprired by the annoying flash banner of the early 2000's.
This tuturial examines every line of code used in the example.
Pygame
includes a higher level sprite module to help organize games. The sprite
module includes several classes that help manage details found in almost all
game types. The Sprite classes are a bit more advanced than the regular Pygame
modules, and need more understanding to be properly used.
Pygame uses the Numeric python module to allow efficient per pixel effects
on images. Using the surface arrays is an advanced feature that allows custom
effects and filters. This also examines some of the simple effects from the
Pygame example, arraydemo.py.