EarthBound/Map Data/Primary Table

From Data Crystal
Jump to navigation Jump to search

This is the global map tile (henceforth "tile" as in "4x4 group of miniature SNES tiles") construction data, which can actually be interpreted as every room and outdoor area in the game stored as one large 256x320 tile map. Externally the data is stored contiguously, but internally it is split up and padded into 32KiB chunks, like so:

  • 160200-1679FF (007800) = Map tile construction data
  • 167A00-1681FF (000800) = Null padding
  • 168200-16F9FF (007800) = Map tile construction data
  • 16FA00-1701FF (000800) = Null padding
  • 170200-1751FF (005000) = Map tile construction data

Every 256 (0x100) bytes represents one complete row of 256 tiles, with each tile having a value between 0-255 (0x00-0xFF). Furthermore, the map is row-interleaved; every 8th row is a neighbor. The following pseudo diagram illustrates this (where each value represents its named row of 100 bytes):

 Offset           Row
--------   -----------------
0x160200   00 08 10 18 20 28 ...
0x162A00   01 09 11 19 21 29 ...
0x165200   02 0A 12 1A 22 2A ...

See Also