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.

EarthBound/Map Data/Global Tileset/Palette Table: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
mNo edit summary
(Add info on indexing and also fix the page category.)
Line 17: Line 17:
The first five bits of each entry is the tileset, and the last three is the palette, so you have 32 global tilesets, and 8 palettes.
The first five bits of each entry is the tileset, and the last three is the palette, so you have 32 global tilesets, and 8 palettes.


Note that the "global map" is 32 sectors wide by 80 sectors tall (8192 x 10240 px!).
Entries are arranged by sector rows, so given that the global map is 32 sectors wide, a table index can be generated from a sector x,y coordinate (starting from the top left sector as 0,0), using the formula <code>table_index = x + y * 32</code>.


Note that the global map is 32 sectors wide by 80 sectors tall for a total of 2560 entries.
[[Category:EarthBound:Map_Data|Global Tileset/Palette Table]]
{{stub}}
{{stub}}

Revision as of 16:40, 15 June 2023

This is a sub-page of EarthBound/Map Data/Global Tileset.

Global Tileset/Palette Table
Game EarthBound
Start Address 0x17AA00
End Address 0x17B3FF
# of Entries 2560
Entry Length 1 byte (0x1)
Total Length 2560 bytes (0xA00)
Back to the ROM map

Global tileset data. Each byte represents a tileset/palette entry for a sector of 8x4 tiles, starting at the top-left corner of the map.

TTTT TPPP

The first five bits of each entry is the tileset, and the last three is the palette, so you have 32 global tilesets, and 8 palettes.

Entries are arranged by sector rows, so given that the global map is 32 sectors wide, a table index can be generated from a sector x,y coordinate (starting from the top left sector as 0,0), using the formula table_index = x + y * 32.

Note that the global map is 32 sectors wide by 80 sectors tall for a total of 2560 entries.

So very stubbly.
This page is rather stubbly and could use some expansion.
Are you a bad enough dude to rescue this article?