TIC-80 icon indicating copy to clipboard operation
TIC-80 copied to clipboard

`export sprites` and `export tiles` do not preserve flag information

Open ToxicFrog opened this issue 5 months ago • 0 comments

Using export to save the sprite or tile sheets to an external file, and then import to load them back in, does not preserve the sprite flags. Looking at the emitted files it seems like they are just "plain" PNGs without any ancillary chunks.

This should probably be handled the same way as save png handles the embedded cartridge data: write an ancillary chunk (flAg, perhaps?) containing the 256 bytes of flag RAM corresponding to the exported sheet, and when importing, if that chunk is present, load it into flag RAM.

ToxicFrog avatar Jul 04 '25 00:07 ToxicFrog