| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
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.
Just demonstrates loading a simple .xp file with layers. Esc quits, a toggles display of the second layer, arrows move the picture.
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!
REXPaint, without which this would have no reason to exist
XPLoader, the original program for Python 2, from where almost all of the code comes from.
| Back | FazBrowse Home | New Git URL |