~kikoodx/kble

kble/kbleformat.md -rw-r--r-- 433 bytes
165d605eKikooDX Parameter buffer (#6) a month ago

#.kble file format

Recommanded extension: .kble

Data stored: level size, level content.

Encoding:

  • 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

If the encoding is incorrect, return an error or crash the program.