Skip to Content
The Alchemy Project

struct DESCENDING_ARC_SPR

A falling arc's sprite (SPR), seen as the image attributes, VRAM cache entry and first layer that Avoid's arcs set on it, under SPR's names; its image bit fields are read here as bytes.

Declared in field_psynergy.h.

Fields

NameDescription
Uint8link [4]
Uint8y
Uint8affine : 2
Uint8objectMode : 2
Uint8mosaic : 1
Uint8fullColor : 10 for 16 colours.
Uint8shape : 21 wide.
Uint8xLow
Uint8xHigh : 1
Uint8affineIndex : 5
Uint8size : 2
union { struct { Uint16tile, priority, palette, half, tileLow, tileHigh, priority, palette, byte, attribute : 10; Uint16 priority : 2; Uint16 palette : 4; } half; struct { Uint8 tileLow; Uint8 tileHigh : 2; Uint8 priority : 2; Uint8 palette : 4; } byte; } attributethe first sprite tile in VRAM
FIXEDscale16.16 fixed point, toFIXED(1) full size.
Uint8slotThe VRAM cache entry holding its tiles.
Uint8retainCacheEntry : 1The borrowed tiles stay loaded.
Uint8useOwnScale : 1
Uint8unusedFlags : 6
Uint16rotation
Uint8width
Uint8height
Sint8offsetX
Sint8offsetY
Uint8lastNo
Uint8dirty
Uint8flags0 drops the shadow.
Uint8count
ANIMATION_SPR_PARTshadow
SPR_ANIMATION *firstEntryentries[0], its first layer.

Description

A falling arc's sprite (SPR), seen as the image attributes, VRAM cache entry and first layer that Avoid's arcs set on it, under SPR's names; its image bit fields are read here as bytes.

struct DESCENDING_ARC_SPR

Referenced by fdAvoidDropRing().

Definition at line 114 of file field_psynergy.h.

Fields in detail

Uint8 link[4]

y

Uint8 y

affine

Uint8 affine : 2

objectMode

Uint8 objectMode : 2

mosaic

Uint8 mosaic : 1

fullColor

Uint8 fullColor : 1

0 for 16 colours.

shape

Uint8 shape : 2

1 wide.

xLow

Uint8 xLow

xHigh

Uint8 xHigh : 1

affineIndex

Uint8 affineIndex : 5

size

Uint8 size : 2

tile, priority, palette, half, tileLow, tileHigh, priority, palette, byte, attribute

union { struct { Uint16 tile : 10; Uint16 priority : 2; Uint16 palette : 4; } half; struct { Uint8 tileLow; Uint8 tileHigh : 2; Uint8 priority : 2; Uint8 palette : 4; } byte; } attribute

the first sprite tile in VRAM

scale

FIXED scale

16.16 fixed point, toFIXED(1) full size.

slot

Uint8 slot

The VRAM cache entry holding its tiles.

retainCacheEntry

Uint8 retainCacheEntry : 1

The borrowed tiles stay loaded.

useOwnScale

Uint8 useOwnScale : 1

unusedFlags

Uint8 unusedFlags : 6

rotation

Uint16 rotation

width

Uint8 width

height

Uint8 height

offsetX

Sint8 offsetX

offsetY

Sint8 offsetY

lastNo

Uint8 lastNo

dirty

Uint8 dirty

flags

Uint8 flags

0 drops the shadow.

count

Uint8 count

shadow

ANIMATION_SPR_PART shadow

firstEntry

SPR_ANIMATION *firstEntry

entries[0], its first layer.