| Map width |
unsigned int (32 bits) |
| Map height |
unsigned int (32 bits) |
| Map background layer 1 data |
depend on map size, tile short (16 bits) |
| Map background layer 2 data |
depend on map size, tile short (16 bits) |
| Map background layer 3 data |
depend on map size, tile short (16 bits) |
| Map foreground layer data |
depend on map size, tile short (16 bits) |
| Map hitboxes data |
depend on map size, tile unsigned char (8 bits) |
| Entities number |
unsigned int (32 bits) |
| ... |
|
| Entity ID |
unsigned int (32 bits) |
| Entity components number |
unsigned int (32 bits) |
| ... |
|
| Component type |
int (32 bits) |
| ... |
|
| Component attributes |
depend on attribute type |
| int |
int (32 bits) |
| float |
float (32 bits) |
| bool |
bool (8 bits) |
| str |
const char [] (variable length, ends with '\00') |
| ... |
|
| ... |
|