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
| Name | Description | |
|---|---|---|
struct | SPARKLE_STATE | The 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. |
struct | COUNTER_BITS | The sparkle's tick counter in ACTOR.sceneByte: bit 0 alternates, the rest picks the colour. |
Macros
| Name | Description | |
|---|---|---|
#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. |
#define | RING_INTERVAL 16 | |
#define | RING_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.