If you are still using the old URL (datacrystal.romhacking.net), please update your bookmarks! The old URL may stop working soon.
The current URL is datacrystal.tcrf.net.
The current URL is datacrystal.tcrf.net.
Mother 3/Map tilemap table: Difference between revisions
< Mother 3
Jump to navigation
Jump to search
(Created page with "{{Infobox table|name=Map tilemap table |game=MOTHER 3 |loc=ROM |start=0xF9003C |end=0x104D9CB |numentries=3000 (0xBB8) |entrylength=Variable |totallength=776592 bytes (0xBD990...") |
m (→Format) |
||
Line 15: | Line 15: | ||
A tilemap is a collection of 16-bit tile entries. The entries contain the same data as a standard GBA tile entry; however, the data are ordered differently. The format of each tile entry is shown below as a bitfield: | A tilemap is a collection of 16-bit tile entries. The entries contain the same data as a standard GBA tile entry; however, the data are ordered differently. The format of each tile entry is shown below as a bitfield: | ||
* <tt>0x03FF</tt> = Tile number (index into the corresponding [[MOTHER_3:Map_tile_data_table|tile data]] for this map). Each tile physically represents a 16x16 pixel area. | * <tt>0x03FF</tt> = Tile number (index into the corresponding [[MOTHER_3:Map_tile_data_table|tile data]] for this map). Each tile physically represents a 16x16 pixel area. '''A value of 0x300 or higher indicates a null entry.''' | ||
* <tt>0x3C00</tt> = Sub-palette number. Each map has a set of 16 palettes, picked by the [[MOTHER_3:Map_graphics/palette_table|map palette info table]] and loaded from the [[MOTHER_3:Map_palette_table|map palette table]]. This number is an index into the 16 palettes. | * <tt>0x3C00</tt> = Sub-palette number. Each map has a set of 16 palettes, picked by the [[MOTHER_3:Map_graphics/palette_table|map palette info table]] and loaded from the [[MOTHER_3:Map_palette_table|map palette table]]. This number is an index into the 16 palettes. | ||
* <tt>0x4000</tt> = Horizontal flip. If this bit is set, the entire 16x16 tile is flipped horizontally. If any of the 8x8 minitiles within this tile already had their flip flag set, they will be double-flipped (a net flip of nothing). | * <tt>0x4000</tt> = Horizontal flip. If this bit is set, the entire 16x16 tile is flipped horizontally. If any of the 8x8 minitiles within this tile already had their flip flag set, they will be double-flipped (a net flip of nothing). | ||
* <tt>0x8000</tt> = Vertical flip. Same deal as above. | * <tt>0x8000</tt> = Vertical flip. Same deal as above. |
Revision as of 22:28, 6 August 2013
Map tilemap table | |
Game | MOTHER 3 |
Start Address | 0xF9003C |
End Address | 0x104D9CB |
# of Entries | 3000 (0xBB8) |
Entry Length | Variable |
Total Length | 776592 bytes (0xBD990) |
Back to the ROM map |
Overview
This table contains all of the map tilemaps. There is an offset table at the beginning. There are three tilemaps for each map area (one for each map layer). The tilemaps are compressed. Once uncompressed, they should be exactly (width * height * 2) bytes, where the width and height are pulled from the map info table. Note that not all layers for a map may have the same dimensions, so it's important to check the map info for each layer.
Format
A tilemap is a collection of 16-bit tile entries. The entries contain the same data as a standard GBA tile entry; however, the data are ordered differently. The format of each tile entry is shown below as a bitfield:
- 0x03FF = Tile number (index into the corresponding tile data for this map). Each tile physically represents a 16x16 pixel area. A value of 0x300 or higher indicates a null entry.
- 0x3C00 = Sub-palette number. Each map has a set of 16 palettes, picked by the map palette info table and loaded from the map palette table. This number is an index into the 16 palettes.
- 0x4000 = Horizontal flip. If this bit is set, the entire 16x16 tile is flipped horizontally. If any of the 8x8 minitiles within this tile already had their flip flag set, they will be double-flipped (a net flip of nothing).
- 0x8000 = Vertical flip. Same deal as above.