Skip to Content
The Alchemy Project

src/field/field_psynergy_growing_sprite.c

The dust Scoop throws up, each grain growing as it flies. More…

Included by field_psynergy.c.

Functions

NameDescription
voidfdScoopDustUpdateGrain (EFFECT_SPR *sprite, FIELD_PSYNERGY_PARTICLE *particle, Sint32 tiles)Advances one grain of Scoop's dust a tick: its sprite steps through eight pictures of eight tiles from tiles, four ticks each, grows by a tenth of its size a tick to full size, is drawn at the grain's place on screen, and the grain moves on (fdAdvanceWithGravity3D).

Description

The dust Scoop throws up, each grain growing as it flies. Part of field_psynergy.c.

Functions in detail

fdScoopDustUpdateGrain

void fdScoopDustUpdateGrain(EFFECT_SPR *sprite, FIELD_PSYNERGY_PARTICLE *particle, Sint32 tiles)

Advances one grain of Scoop's dust a tick: its sprite steps through eight pictures of eight tiles from tiles, four ticks each, grows by a tenth of its size a tick to full size, is drawn at the grain's place on screen, and the grain moves on (fdAdvanceWithGravity3D). Sand's fdGrowingParticleUpdate is the same but for its own age check and fdAdvanceWithGravity2D, so each Psynergy keeps its own.

References fdAdvanceWithGravity3D(), fdCameraWorldToScreen(), fdEffectSpriteDraw() and Sint32.

Referenced by fdScoopUpdate().

Definition at line 10 of file field_psynergy_growing_sprite.c.