This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# tile_converter.py: a quick, messy script to take PNG spritesheets and convert them to | |
# Uzebox-usable includable files. | |
# | |
# Usage: python3 tile_converter.py PATH | |
# | |
# If PATH is, for example, 'data/foo.png', this will create a file 'data/foo.inc' that may be | |
# #include'd by Uzebox programs. foo.inc includes: | |
# * TILETAB_FOO_LENGTH: a macro with the number of tiles defined |