TileGen is an isometric tiles generator. Its purpose is to ease the creation of the 48 tiles in the bitmasking method, described here:
You give 2 states-tiles and the tool will generate all the possible combinations between them.
input.png:
Atlas result: (I cropped it because 48 would be too big for the readme):
Result in a map (in the gui preview):
Works with any size as long as you respect the 2:1 ratio (it's better if the input tile width is divisible by 3, or else the tool will "fill" some pixels with the content of its neighbors for edge cases)
You will need python 3, and the Pillow imaging library for python and numpy And pyside2
to install those packages:
pip install Pillow numpy PySide2
flags:
- input: input file (default: "input.png")
- output: output file (default: "result.png")
- background: set a background to all result (for isometric tiles requiring height, optional)
- frames: set the number of frames
python ./tile_gen.py --input input.png --output result.png --background background.png --frames 1
You can run the program with an ui:
python ./gui.py
example:
If you want to use frames for animated tiles, you need an input in this format (for 4 frames for instance):
for that result:






