2021-02-23 11:44:11 +01:00
|
|
|
|
# .kble file format
|
|
|
|
|
Recommanded extension: `.kble`
|
|
|
|
|
|
|
|
|
|
Data stored: level size, level content.
|
|
|
|
|
|
|
|
|
|
Encoding:
|
2021-02-24 17:58:38 +01:00
|
|
|
|
* 1st byte indicates format version (`0` currently)
|
|
|
|
|
* 2nd byte indicates how big is a chunk of data (in bytes)
|
|
|
|
|
* 3rd and 4th bytes indicates level width
|
|
|
|
|
* 5th and 6th bytes indicates level height
|
|
|
|
|
* 7th → (7 + data_size × width × height) contains level data
|
2021-02-23 11:44:11 +01:00
|
|
|
|
|
|
|
|
|
If the encoding is incorrect, return an error or crash the program.
|