Implement new tile storage format with tentative timelapse support

This commit is contained in:
Danielv123 committed 2025-08-10 00:28:48 +02:00
1 parent 2dcc92c96b
commit a516b6b129
7 files changed
+358 -307

No files matched your search

+2 -2
View File
@@ -39,17 +39,17 @@ The tile format is as follows:
- 2 = pixels
For chunk:
- 2 byte: length, number of data bytes
- 4 byte: math.floor(tick / 60)
- 4 bits: chunk relative X coordinate
- 4 bits: chunk relative Y coordinate
- 2 byte: length, number of data bytes
- n bytes of 32x32 rgb565, with deflate compression
Type 1 chunks are assumed to only occur upon first exploration - further changes usually happen as individual pixels. For that reason, there is no rewind information tied to chunks, and they revert to black when rewinded.
For pixels:
- 2 byte: length, number of pixels
- 4 byte: math.floor(tick / 60)
- 2 byte: length, number of pixels
- Each pixel:
- 1 byte X coordinate
- 1 byte Y coordinate