This is a Python (3) script that will read the data sections of a TIC-80 .lua cart, extracts the relevant data sections (MAP, TILES and PALETTE) and renders a PNG file of the MAP.
git clone https://github.com/mattijv/tic-80-mapify
cd tic-80-mapify
pip3 install -r requirements.txt
python3 mapify.py cart.lua
The script will output a file in the same folder with the name
map.png
.
Currently this code contains some hard coded assumptions and changes (like setting the 7th color to be the 1st color in the palette) due to the origins of this code. Therefore you might need to make some modifications for your own use.