Skip to Content
The Alchemy Project

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

NameDescription
Uint8link [4]The image part's depth-slot link.
Uint8yThe low byte of OAM attribute 0: the screen y.
Uint8affineModeMosaic : 5The rest of attribute 0: affine mode, sprite mode and mosaic, left as they are.
Uint8fullColor : 1256 colours; cleared, so the Nut's icon draws
Uint8shape : 2in 16.
Uint8attr1 [2]OAM attribute 1.
Uint8tileLowOAM attribute 2: the first tile, its priority (set to 1) and its palette (set to 0).
Uint8tileHigh : 2
Uint8priority : 2
Uint8paletteNumber : 4
Uint8attr3 [2]
Uint8shadow [12]The shadow part, the scale and the rest as SPR has
Uint8scale [4]them.
Uint8slotThe VRAM cache entry the Nut's icon is loaded into.
Uint8cacheFlags
Uint8rotation [2]
Uint8width
Uint8height
Uint8offsetX
Uint8offsetY
Uint8lastNo
Uint8dirty
Uint8flags
Uint8countAnimation 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

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.