A .xp file parser for use with libtcod.
Just demonstrates loading a simple .xp file with layers. esc quits, a toggles display of the second layer.
Copy xp_loader.py into your project, import xp_loader, and call load_xp_string. Note: By default, .xp files are gzipped, and you'll need to use the gzip library to decompress them first. The code's fairly readable if you want to look at it, and I tried to comment things that aren't obvious. load_layer_to_console makes it easier to load the data into libtcod consoles (root or otherwise). Have fun!
REXPaint, without which this would have no reason to exist