struct ADVANCE_ARROW_SPR
One OAM entry in a sprite list: the arrow that waits for the player to advance a battle message. More…
Declared in battle_state.h.
Fields
| Name | Description | |
|---|---|---|
struct ADVANCE_ARROW_SPR * | next | The depth slot's next entry, set by syOAMAddSpriteAtDepth. |
Uint16 | y : 8 | Pixels; bobs with a sine of the tick count. |
Uint16 | flags : 8 | Attribute 0's high byte: 0xa0, a tall 256-colour sprite. |
Uint16 | x : 9 | Pixels. |
Uint16 | size : 7 | Attribute 1's flip and size bits; 0, which with the tall shape is 8 by 16 pixels. |
Uint16 | tile : 10 | The arrow picture's VRAM tile, reloaded each tick. |
Uint16 | palette : 6 | Attribute 2's priority (bits 1..0) and palette (bits 5..2); 0 here. |
Uint16 | affineParam | OAM's fourth halfword, the affine parameter slot; cleared with the tile word each tick. |
Description
One OAM entry in a sprite list: the arrow that waits for the player to
advance a battle message. The playback pushes it each tick it waits
(syOAMAddSpriteAtDepth), and the three halfwords after the link are OAM
attributes 0 to 2 as bit-fields.
struct ADVANCE_ARROW_SPR
Referenced by btPlaybackRun().
Definition at line 19 of file battle_state.h.
Fields in detail
next
struct ADVANCE_ARROW_SPR *next
The depth slot's next entry, set
by syOAMAddSpriteAtDepth.
y
Uint16 y : 8
Pixels; bobs with a sine of the tick count.
flags
Uint16 flags : 8
Attribute 0's high byte: 0xa0, a tall 256-colour sprite.
x
Uint16 x : 9
Pixels.
size
Uint16 size : 7
Attribute 1's flip and size bits; 0, which with the tall shape is 8 by 16 pixels.
tile
Uint16 tile : 10
The arrow picture's VRAM tile,
reloaded each tick.
palette
Uint16 palette : 6
Attribute 2's priority (bits 1..0) and palette (bits 5..2); 0 here.
affineParam
Uint16 affineParam
OAM's fourth halfword, the affine parameter slot; cleared with the tile word each tick.