Skip to content

RinCamelia/XPLoader

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages