Skip to content

Tilemap

Kirby0Louise edited this page Mar 17, 2021 · 3 revisions

The Tilemap is Void2D's ultimate storage place for image data. Any tiles you want to use in a Sprite or BackgroundLayer must be present in the Tilemap.

The Tilemap can be imagined as a large 2D table where each cell holds one 8x8 bitmap tile. Tiles can be addressed in two different ways -

using a 32-bit hexadecimal value (giving a maximum of 4,294,967,296 unique tiles at a time). While technically this can be any number of pages and indexes that fit into 32 bits, the current standard for official Void2D tools is the first 6 nybbles represent the page number and the last 2 nybbles represent the index into that page (this is similar to how programs such as Lunar Magic divide up tiles).

Clone this wiki locally