Skip to content

A python script to render the map of a TIC-80 .lua cart into a png

License

Notifications You must be signed in to change notification settings

mattijv/tic-80-mapify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TIC-80 Mapify

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.

Install

git clone https://github.com/mattijv/tic-80-mapify
cd tic-80-mapify
pip3 install -r requirements.txt

Usage

python3 mapify.py cart.lua

The script will output a file in the same folder with the name map.png.

Note

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.

About

A python script to render the map of a TIC-80 .lua cart into a png

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages