mirror of https://git.sr.ht/~kikoodx/kble
13 lines
390 B
Markdown
13 lines
390 B
Markdown
|
# .kble file format
|
||
|
Recommanded extension: `.kble`
|
||
|
|
||
|
Data stored: level size, level content.
|
||
|
|
||
|
Encoding:
|
||
|
* first byte indicates how big is a chunk of data (in bytes)
|
||
|
* second and third bytes indicates level width
|
||
|
* fourth and fifth bytes indicates level height
|
||
|
* 7th => (7 + data_size * width * height) contains level data
|
||
|
|
||
|
If the encoding is incorrect, return an error or crash the program.
|