map width | (2 bytes) horizontal tile count |
map height | (2 bytes) vertical tile count |
wrap mode | (1 byte) Indicates if the horizontal or vertical coordinates should wrap around the origin. |
map data | (N bytes) Tile indices. |
For a 8x8 tilemap, the tile indices are just the offset to a VRAM tile. On the other hand, for a 16x16 tilemap, the tile indices are the offset to a bloc of 4 consecutive VRAM tiles that will make the 16x16 map tile.
The tiles palette array specify the index of the palette to use for a given tile. For 16x16 tilemap, the palette index will be used for all 4 VRAM tile.
Tilemap functions. | |
Macros | |
map_set | Set current map pointers and infos. |
map_copy | Map copy helper macro. |
map_copy_16 | 16x16 tilemap copy helper macro. |
Functions | |
map_set_bat_bounds | Defines the vertical bounds of the BAT map area. |
map_load | Load a portion of a 8x8 tilemap to VRAM. |
map_load_16 | Load a portion of a 16x16 tilemap to VRAM. |