Code Archive
Here you can find various pieces of code, projects, products,
etc. that Michael has worked on over the years. If you prefer
to just wander around, browse on over to the
directory. Otherwise, take the links below to
descriptions in a guided search.
Some in-page links which also tell you what kind of code
Michael has put here.
Python
Pygame
- htmldoc
[.py]
[doc]
- generates a summary webpage for a module using clean HTML
with CSS.
- hilight
[.py]
[doc]
- generates a syntax highlighted version of a python script
using clean HTML with CSS.
- markfont
[.py]
[doc]
- wrapper class for rendering fonts with wordwrap and markup
- gamemenu
[.py]
[doc]
- utility class for simple game-pausing menus in a game
- gmtest
[.py]
- example script shows how to use gamemenu as an
import
- model
[.py]
[doc]
- utility classes for 3D models and 2D "blits" with
pyopengl
- ttfont
[.py]
[doc]
- a proof of concept family/style font interface that
requires ttmkfdir for font information (and xset for
directory locations; not windows friendly). Careful if you
have more fonts than memory; this test script displays them
all.
Pygame Test Scripts
These scripts are quick hack jobs. They might make
a good base for starting, or for figuring out some simple stuff.
But they are poorly documented, and probably won't run correctly
on your system without a few (hopefully obvious)
changes.
- scroll
[.py]
- demonstrates speed of scrolling a "tiled" image.
- joy
[.py]
- initializes joysticks and shows all events.
- showjoy
[.py]
- graphically displays joysticks, given axis translation
arrays.
- keytest
[.py]
- show the state of the keyboard graphically, both currently
held keys (at the top) and a scrolling set of presses and
releases along the bottom.