struct METATILE_TARGET
A map's watched metatiles and the sprite drawn over the current one.
Declared in metatile_target.h.
Fields
| Name | Description | |
|---|---|---|
Sint16 | firstFlag | The first entry's flag; each later entry takes the next. |
Sint16 | flagByte | The first of two flag bytes that keep the leader's metatile, x then z (at flagByte + 8). |
Sint16 | kind | The metatile script marking a watched metatile, kind or kind + 1. |
Sint16 | x | Column of the copied metatile, |
Sint16 | z | whose row is z + 1. |
Sint16 | count | Entries in use. |
Sint16 | current | The entry the leader stands on, or -1. |
Sint16 | shown | Nonzero draws the sprite. |
Sint16 | tile | Resource entry of the sprite's tiles. |
Uint16 | unusedAfterTile | No code names it. |
unsigned long | oam [3] | The sprite as syOAMAddSpriteAtDepth takes it: the queue's link, then OAM attributes 0 and 1 in one word and attribute 2 in the next. |
METATILE_TARGET_ENTRY | entries [128] | Room for 128, as the ROM spaces Mars Lighthouse towers' table. |
Description
A map's watched metatiles and the sprite drawn over the current one.
struct METATILE_TARGET
Referenced by CrackedTiles, scCrackedTileCrack(), scCrackedTileFall(), scCrackedTileFind(), scCrackedTilePlaceLanding(), scCrackedTileStep() and scCrackedTileUpdate().
Definition at line 22 of file metatile_target.h.
Fields in detail
firstFlag
Sint16 firstFlag
The first entry's flag; each later entry takes the next.
flagByte
Sint16 flagByte
The first of two flag bytes that keep the leader's metatile, x then z (at flagByte + 8).
kind
Sint16 kind
The metatile script marking a watched metatile, kind or kind + 1.
x
Sint16 x
Column of the copied metatile,
z
Sint16 z
whose row is z + 1.
count
Sint16 count
Entries in use.
current
Sint16 current
The entry the leader stands on, or -1.
shown
Sint16 shown
Nonzero draws the sprite.
tile
Sint16 tile
Resource entry of the sprite's tiles.
unusedAfterTile
Uint16 unusedAfterTile
No code names it.
oam
unsigned long oam[3]
The sprite as
syOAMAddSpriteAtDepth takes it:
the queue's link, then OAM
attributes 0 and 1 in one word and
attribute 2 in the next.
entries
METATILE_TARGET_ENTRY entries[128]
Room for 128, as the ROM spaces Mars Lighthouse towers' table.