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.
The wiki has recently moved; please report any issues in Discord. Pardon the dust.
EarthBound Beginnings/Sprite data: Difference between revisions
Jump to navigation
Jump to search
MOTHERrocks (talk | contribs) m (fix formatting) |
MOTHERrocks (talk | contribs) m (fix formatting) |
||
Line 22: | Line 22: | ||
In this example, <code>10 20 10 02</code> is the top-right part of Ninten. | In this example, <code>10 20 10 02</code> is the top-right part of Ninten. | ||
===Tiles=== | ===Tiles=== | ||
Each 4 bytes is | Each 4 bytes is [https://www.nesdev.org/wiki/PPU_OAM|PPU OAM]: | ||
* Byte 0: X location | * Byte 0: X location | ||
* Byte 1: Y location | * Byte 1: Y location |
Revision as of 19:07, 7 September 2023
This is a sub-page of EarthBound Beginnings.
Ally data | |
Game | EarthBound Zero |
Start Address | 2A010 |
End Address | 2C00F |
# of Entries | unknown |
Entry Length | 16 (0x10) |
Total Length | 8192 bytes (0x2000) |
Back to the ROM map |
This controls the sprites in the game.
Format
This example uses the sprite data for Ninten forwards, located at 2ABAC-2ABBB:
10 20 10 02 18 20 10 03 10 28 11 10 18 28 11 11
Sprite are made up of 4 PPU tiles, each of which are four bytes in the sprite data, in order:
- Top-right
- Top-left
- Bottom-right
- Bottom-left
In this example, 10 20 10 02
is the top-right part of Ninten.
Tiles
Each 4 bytes is OAM:
- Byte 0: X location
- Byte 1: Y location
- Byte 2: attributes
- Bits 0-1: palette
- Bits 2-4: unused
- Bit 5: priority (0=in front of background, 1=behind background)
- Bit 6: mirror X
- Bit 7: mirror Y
- Byte 3: PPU tile index
- Selects the tile index of the sprite gfx (58010 to 5E80F)