https://github.com/sikthehedgehog/mdtoo ... er/mdtiler
What this update adds is a new "map" command that scans a group of tiles, looks for redundancies (i.e. identical tiles, maybe with flipping and/or different palette or priority) and then generates both tiles and tilemap data out of it. Note that I didn't test every possible setting combination yet, and I didn't test the makefile (I use Code::Blocks for development =P), so if something is broken tell me.
How it works: first you specify two filenames, one where the tiles will go and one where the tilemap will go
Code: Select all
output "tiles.blob"
output2 "tilemap.blob"
Code: Select all
map 0 0 64 32
- Every 16 colors is a palette row
- The first four rows (0~63) are each palette, with low priority
- The next four rows (64~127) are each palette, with high priority