Welcome to Data Crystal's new home! Data Crystal is now part of the TCRF family (sort of).
The wiki has recently moved; please report any issues in Discord. Pardon the dust.

MOTHER 3/Town map size table: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
(Created page with "{{Infobox table|name=Gift Box Table |game=MOTHER 3 |loc=ROM |start=0x00C2AF8 |end=0x00C2BE7 |numentries=20 (0x14) |entrylength=12 bytes |totallength=240 bytes }} ==Table overv...")
 
Line 14: Line 14:
===Table Structure===
===Table Structure===
*[00]-[02]= Map's X coordinate from the graphic.
*[00]-[02]= Map's X coordinate from the graphic.
*[03]-[04]= Unused bytes. Maybe 03 has to do with maps having multiple floors.
*[03]-[04]= How much walking one step will change the character's position on the map.
*[05]-[07]= Map's Y coordinate from the graphic.
*[05]-[07]= Map's Y coordinate from the graphic.
*[08]-[09]= Map's X scrollable lenght, it's in pixels, if values are 08=02 and 09=01, map will be scrollable 0x0102 pixels over the default lenght of a screen.
*[08]-[09]= Map's X scrollable lenght, it's in pixels, if values are 08=02 and 09=01, map will be scrollable 0x0102 pixels over the default lenght of a screen.
*[0A]-[0B]= Map's Y scrollable height, it's in pixels, if values are 08=0F and 09=02, map will be scrollable 0x020F pixels over the default height of a screen.
*[0A]-[0B]= Map's Y scrollable height, it's in pixels, if values are 08=0F and 09=02, map will be scrollable 0x020F pixels over the default height of a screen.

Revision as of 22:10, 10 April 2016

Gift Box Table
Game MOTHER 3
Start Address 0x00C2AF8
End Address 0x00C2BE7
# of Entries 20 (0x14)
Entry Length 12 bytes
Total Length 240 bytes
Back to the ROM map

Table overview

This table contains 12 bytes entries for every town map in the game.
It has 2 unused bytes.

Table Structure

  • [00]-[02]= Map's X coordinate from the graphic.
  • [03]-[04]= How much walking one step will change the character's position on the map.
  • [05]-[07]= Map's Y coordinate from the graphic.
  • [08]-[09]= Map's X scrollable lenght, it's in pixels, if values are 08=02 and 09=01, map will be scrollable 0x0102 pixels over the default lenght of a screen.
  • [0A]-[0B]= Map's Y scrollable height, it's in pixels, if values are 08=0F and 09=02, map will be scrollable 0x020F pixels over the default height of a screen.