Sunday, May 13, 2018

FMod - Persistent saved clipboard

Yesterday I wrote the infrastructure needed for Abiathar to save and load chunks of tiles to/from project files. Today I used that to store the nine saved copied blocks when saving. The chunks of tiles are saved as the Base64 encoding of a simple binary format. Each plane has a byte of value zero or one indicating whether the plane is present in the copied block. If the plane is there, its width and height follow as 32-bit integers, then the tiles in the plane as 16-bit integers.

No comments:

Post a Comment