struct ORBITING_MAP_ACTOR_SPR
A floating Nut's sprite: SPR a byte at a time, with the attribute bits scFloatNut sets.
Declared in orbit.h.
Fields
| Name | Description | |
|---|---|---|
Uint8 | link [4] | The image part's depth-slot link. |
Uint8 | y | The low byte of OAM attribute 0: the screen y. |
Uint8 | affineModeMosaic : 5 | The rest of attribute 0: affine mode, sprite mode and mosaic, left as they are. |
Uint8 | fullColor : 1 | 256 colours; cleared, so the Nut's icon draws |
Uint8 | shape : 2 | in 16. |
Uint8 | attr1 [2] | OAM attribute 1. |
Uint8 | tileLow | OAM attribute 2: the first tile, its priority (set to 1) and its palette (set to 0). |
Uint8 | tileHigh : 2 | |
Uint8 | priority : 2 | |
Uint8 | paletteNumber : 4 | |
Uint8 | attr3 [2] | |
Uint8 | shadow [12] | The shadow part, the scale and the rest as SPR has |
Uint8 | scale [4] | them. |
Uint8 | slot | The VRAM cache entry the Nut's icon is loaded into. |
Uint8 | cacheFlags | |
Uint8 | rotation [2] | |
Uint8 | width | |
Uint8 | height | |
Uint8 | offsetX | |
Uint8 | offsetY | |
Uint8 | lastNo | |
Uint8 | dirty | |
Uint8 | flags | |
Uint8 | count | Animation layers in use; zeroed, so nothing is drawn over the icon loaded into slot. |
Description
A floating Nut's sprite: SPR a byte at a time, with the attribute bits
scFloatNut sets.
struct ORBITING_MAP_ACTOR_SPR
Referenced by scFloatNut() and scKalayPrepareTown().
Definition at line 14 of file orbit.h.
Fields in detail
link
Uint8 link[4]
The image part's depth-slot link.
y
Uint8 y
The low byte of OAM attribute 0: the screen y.
affineModeMosaic
Uint8 affineModeMosaic : 5
The rest of attribute 0: affine mode, sprite mode and mosaic, left as they are.
fullColor
Uint8 fullColor : 1
256 colours; cleared, so the Nut's icon draws
shape
Uint8 shape : 2
in 16.
attr1
Uint8 attr1[2]
OAM attribute 1.
tileLow
Uint8 tileLow
OAM attribute 2: the first tile, its priority (set to 1) and its palette (set to 0).
tileHigh
Uint8 tileHigh : 2
priority
Uint8 priority : 2
paletteNumber
Uint8 paletteNumber : 4
attr3
Uint8 attr3[2]
shadow
Uint8 shadow[12]
The shadow part, the scale and the rest as SPR has
scale
Uint8 scale[4]
them.
slot
Uint8 slot
The VRAM cache entry the Nut's icon is loaded into.
cacheFlags
Uint8 cacheFlags
rotation
Uint8 rotation[2]
width
Uint8 width
height
Uint8 height
offsetX
Uint8 offsetX
offsetY
Uint8 offsetY
lastNo
Uint8 lastNo
dirty
Uint8 dirty
flags
Uint8 flags
count
Uint8 count
Animation layers in use; zeroed, so nothing is drawn over the icon loaded into slot.