README.md

XPLoaderPy3

The original XPLoader is a .xp file parser for use with libtcod, written by Sean 'RCIX' Hagar. XPLoaderPy3 is a port of XPLoader to TDL/Python3 (with some minor miscellaneous changes) by Erwan 'MalanTai' Castioni and Gawein 'Edern' Le Goff.

Demo

Just demonstrates loading a simple .xp file with layers. Esc quits, a toggles display of the second layer, arrows move the picture.

Use

Copy xpLoaderPy3.py into your project, import xpLoaderPy3, 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.. load_layer_to_console makes it easier to load the data into libtcod/TDL consoles (root or otherwise). Have fun!