Mother 3/Map graphics/palette table

From Data Crystal
< Mother 3
Revision as of 02:42, 24 January 2024 by Xkeeper (talk | contribs) (Xkeeper moved page MOTHER 3:Map graphics/palette table to MOTHER 3/Map graphics/palette table: normalize subpages and titles)
Jump to navigation Jump to search

This is a sub-page of Mother 3/Map graphics.

Map graphics/palette table
Game MOTHER 3
Start Address 0xD34F44
End Address 0xD3B4DF
# of Entries 1000 (0x3E8)
Entry Length 26 bytes (0x1A)
Total Length 26012 bytes (0x659C)
Back to the ROM map

Overview

This table contains indices into the map graphics and palette tables. There's one entry for each map; all three map layers in each map will use the same set of tilesets and palettes. The table has a 12-byte dummy header that can be ignored (but should be left untouched).

Field listing

Table view

       00   01   02   03   04   05   06   07   08   09   0A   0B   0C   0D   0E   0F
    +--------------------------------------------------------------------------------
00  | [                                      A                                     ->
10  | <-                  A                 ] [   B   ]

Tilesets

Each map may have up to 12 tilesets. They don't all have to be used. Each tileset is a signed 16-bit value. Use -1 (0xFFFF) to indicate a null tileset. Each value is an index into the map graphics table.

Palette

The palette is a 16-bit index into the map palette table.