PGU - PyGame Utilities

Install

pip install pygame-pgu

NOTE PGU is in need of more contributors. Email me (peter.rogers@gmail.com) or jsobueno@gmail.com if you're interested in evolving the codebase.

A collection of handy utilities and libraries created by Phil Hassey, released under the LGPL v2.1 (see LICENSE.txt for more details).

The current PGU code base:

https://github.com/parogers/pgu

Old website location:

http://www.imitationpickles.org/pgu/
philhassey@yahoo.com

Modules:

tileedit  -- edit tga based images
leveledit -- edit tga based levels in tile, isometric, and hexagonal formats
tganew    -- create tga files
levelfancy-- prettyify your levels

gui     -- gui with standard widget, dialogs, html, connections, and themes
html    -- html rendering utilities
layout  -- layout utilities
text    -- text rendering utilities

tilevid -- sprite and tile engine
isovid  -- isometric sprite and tile engine
hexvid  -- hexagonal sprite and tile engine (alpha)
engine  -- state engine
timer   -- a timer for games with set-rate FPS
high    -- high score tracking
ani     -- animation helpers
algo    -- helpful pathfinding algoritms
fonts   -- font wrappers, bitmapped fonts

Vera.ttf is from:

http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/
see that site for more information about the font.

Documentation

To build the PGU documentation, run the build.py script found under docs:

$ cd docs
$ python build.py
$ your-favorite-browser index.html

To understand pgu.gui -- read: http://www.w3.org/TR/REC-html40/ (pgu.gui is based heavily on my HTML background)

To understand the pgu.gui default theme -- read: http://www.w3.org/TR/REC-CSS2/box.html (the theme uses the css 2 box model)

Example scripts can be found in the examples directory.

THANKS