No description, website, or topics provided.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
Position Keys.txt
README.md
SDL.dll
cp437_10x10.png
libtcod-mingw.dll
libtcodpy.py
main.py
xp_loader.py
xptest.xp

README.md

XPLoader

A .xp file parser for use with libtcod.

Demo

Just demonstrates loading a simple .xp file with layers. esc quits, a toggles display of the second layer.

Use

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!

links

Screenshot

REXPaint, without which this would have no reason to exist