Skip to Content
The Alchemy Project

include/scene/sparkle.h

The sparkle that rises round an object while it uses Psynergy in a script (Contigo, Mars Lighthouse's aerie, the Psynergy test): each scene keeps its own copy of the functions.

Included by psynergy_test.c, contigo.c and mars_lighthouse_aerie.c.

Structures

NameDescription
structSPARKLE_STATEThe sparkle over an object: its two pairs of sprites, how far each pair has risen (from 0 to RING_CLIMB - 1; RING_NOT_STARTED before it starts) and the pair to start next.
structCOUNTER_BITSThe sparkle's tick counter in ACTOR.sceneByte: bit 0 alternates, the rest picks the colour.

Macros

NameDescription
#defineRING_CLIMB 32How far a ring climbs, in pixels, how many ticks apart the rings start, and the height of one not yet started.
#defineRING_INTERVAL 16
#defineRING_NOT_STARTED 999

Description

The sparkle that rises round an object while it uses Psynergy in a script (Contigo, Mars Lighthouse's aerie, the Psynergy test): each scene keeps its own copy of the functions.

Macros in detail

RING_CLIMB

#define RING_CLIMB 32

How far a ring climbs, in pixels, how many ticks apart the rings start, and the height of one not yet started.

Referenced by dbPsynergyTestUpdateRings(), scContigoRaiseSparkle() and scMarsLighthouseAerieUpdateRisingRings().

Definition at line 27 of file sparkle.h.

RING_INTERVAL

#define RING_INTERVAL 16

Referenced by dbPsynergyTestUpdateRings(), scContigoRaiseSparkle() and scMarsLighthouseAerieUpdateRisingRings().

Definition at line 28 of file sparkle.h.

RING_NOT_STARTED

#define RING_NOT_STARTED 999

Referenced by dbPsynergyTestStartRings(), scContigoStartSparkle() and scMarsLighthouseAerieStartRisingRings().

Definition at line 29 of file sparkle.h.