Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 726 Bytes

README.md

File metadata and controls

17 lines (9 loc) · 726 Bytes

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