Jump to content

Tile map file: Difference between revisions

165 bytes added ,  Yesterday at 16:31
no edit summary
No edit summary
No edit summary
 
Line 50: Line 50:
   /* offset 0x00 */ u16 width;  // Width of layer in metatiles
   /* offset 0x00 */ u16 width;  // Width of layer in metatiles
   /* offset 0x02 */ u16 height; // Height of layer in metatiles
   /* offset 0x02 */ u16 height; // Height of layer in metatiles
   /* offset 0x04 */ u32 unknown_0x4;
   /* offset 0x04 */ u16 id;
  /* offset 0x06 */ u16 unknown_0x06;


   // Byte offset from start of **the TilemapHeader struct** to the layer data
   // Byte offset from start of **the TilemapHeader struct** to the layer data
Line 56: Line 57:
};
};
</syntaxhighlight>
</syntaxhighlight>
Layers can be loaded by engine call 0x7a27, either by the layer's index in the layerDefinition array, or by the TilemapLayer.id field.


= Layer data order =
= Layer data order =