kble/kbleformat.md

13 lines
390 B
Markdown
Raw Normal View History

# .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
* 6th => (6 + data_size * width * height) contains level data
If the encoding is incorrect, return an error or crash the program.