Skip to Content
The Alchemy Project

struct PLAYER_SPR

The leader's sprite, or a ripple's (SPR), as the player's movement sets them, a byte at a time, under SPR's names.

Declared in field_internal.h.

Fields

NameDescription
Uint8unused [5]No code names it.
Uint8affine : 2
Uint8objectMode : 2
Uint8mosaic : 1
Uint8fullColor : 1
Uint8shape : 2
Uint8unusedAfterShape [3]No code names it.
Uint8tileHigh : 2Tile number bits 9..8.
Uint8priority : 2
Uint8palette : 4
Uint8unusedAfterPalette [7]No code names it.
Uint8cacheFlags : 2SPR's retainCacheEntry and useOwnScale.
Uint8sunkRows : 6The rows SPRITE_FLAG_SUNK sinks the
Uint16rotationsprite by, or SPRITE_FLAG_SHADED shades.
Uint8unusedAfterRotation [5]No code names it.
Uint8dirty
Uint8flags
Uint8unusedAfterFlags [17]No code names it.
SPR_ANIMATION *secondLayerThe sprite's second animation (entries[1]), drawn only at a priority of 0 to 3: the world map draws the leader's only in forest.

Description

The leader's sprite, or a ripple's (SPR), as the player's movement sets them, a byte at a time, under SPR's names.

struct PLAYER_SPR

Referenced by fdActorFlyOnWorldMap(), fdActorMoveAsSandOnWorldMap(), fdActorMoveOnWorldMap(), fdActorSailOnWorldMap() and fdActorUpdatePlayerControl().

Definition at line 70 of file field_internal.h.

Fields in detail

unused

Uint8 unused[5]

No code names it.

affine

Uint8 affine : 2

objectMode

Uint8 objectMode : 2

mosaic

Uint8 mosaic : 1

fullColor

Uint8 fullColor : 1

shape

Uint8 shape : 2

unusedAfterShape

Uint8 unusedAfterShape[3]

No code names it.

tileHigh

Uint8 tileHigh : 2

Tile number bits 9..8.

priority

Uint8 priority : 2

palette

Uint8 palette : 4

unusedAfterPalette

Uint8 unusedAfterPalette[7]

No code names it.

cacheFlags

Uint8 cacheFlags : 2

SPR's retainCacheEntry and useOwnScale.

sunkRows

Uint8 sunkRows : 6

The rows SPRITE_FLAG_SUNK sinks the

rotation

Uint16 rotation

sprite by, or SPRITE_FLAG_SHADED shades.

unusedAfterRotation

Uint8 unusedAfterRotation[5]

No code names it.

dirty

Uint8 dirty

flags

Uint8 flags

unusedAfterFlags

Uint8 unusedAfterFlags[17]

No code names it.

secondLayer

SPR_ANIMATION *secondLayer

The sprite's second animation (entries[1]), drawn only at a priority of 0 to 3: the world map draws the leader's only in forest.