Skip to content

Edern76/XPLoaderPy3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

Requirements

  • Python 3.x
  • TDL

Links

Screenshot

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.

About

A port of XPLoader to Python 3.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%