Vicky II support 8 tilesets and 4 tilemaps.
Tiles are tiny reusable bitmaps that are 16 pixels wide by 16 pixels high.
Tiles are combined in tilesets. Tilesets usually contain only unique tiles to save memory. Tilesets can contain a maximum of 256 tiles. Each tile has a unique number in the tileset. Tilesets must be stored in video RAM for Vicky II to be able to render them.
Tilemaps combine tiles from the tilesets to create a world map. Tilemaps can be up to 1024 tiles wide by 1024 tiles high. Tilemaps must be stored in video RAM in order for Vicky II to render them.
Each Tilemap has registers composed of a total of 12 bytes for manipulation, starting at $AF:0200 and spanning through to $AF:022F.
The first set of sprite manipulation registers are shown below:
For each successive tilemap, add +12 to the address registers.
The tilemap control register (TLx_CONTROL_REG) is always the first byte of the 12 byte block. The register is configured as follows:
The Tilemap Total Size X and Y must be less than 1024.
The Tilemap Window Position X and Y are defined as follows:
|Direction||Bit 14 ($4000)|
|Scroll||Bits 10-13 ($4xx to $3Cxx)|
|Position||= 0 to $3FF|