include/scene/orbit.h
Orbiting actors and the sparks that circle and rise when learning a Psynergy (shared/orbiter_spiral.c, shared/orbit_spark_spawn.c, shared/orbit_update.c).
Included by scene.h.
Structures
| Name | Description | |
|---|---|---|
struct | ORBITER | An actor spiralling round its anchor (scOrbiterSpiral): the circle it keeps in the actor's scene-owned words, and the ticks it has left. |
struct | ORBIT | An actor circling a centre on a growing circle (scOrbitUpdate), its centre, radius and turn kept in the actor's scene-owned words. |
Macros
| Name | Description | |
|---|---|---|
#define | ORBIT_HALF_TURN 32 | Half a turn of an Orbit's phase, 64 to the turn: the sparks that rise round one who learns a Psynergy take every other phase short of it, one each 2 pixels up a column round him, so their circles widen and narrow again up the column. |
#define | TABLET_RISING_SPARKS 16 | The sparks that rise from a Psynergy's tablet as it lifts, flashing. |
#define | LEARN_SPARKS 16 | The LEARN_SPARKS that circle the one who learns a Psynergy start LEARN_SPARK_INTERVAL ticks apart, 122 pixels out, and close 8 pixels a tick (scOrbiterSpiral) to 2 pixels in LEARN_SPIRAL_TICKS; each one's countdown ends with the last's. |
#define | LEARN_SPARK_INTERVAL 8 | |
#define | LEARN_SPIRAL_TICKS 15 |
Description
Orbiting actors and the sparks that circle and rise when learning a Psynergy
(shared/orbiter_spiral.c, shared/orbit_spark_spawn.c, shared/orbit_update.c).
Macros in detail
ORBIT_HALF_TURN
#define ORBIT_HALF_TURN 32
Half a turn of an Orbit's phase, 64 to the turn: the sparks that rise round one who learns a Psynergy take every other phase short of it, one each 2 pixels up a column round him, so their circles widen and narrow again up the column.
Referenced by scAquaRockInsidePiersLearnsParch(), scGaiaRockInsideFelixLearnsSand() and scMagmaRockInsideLearnBlaze().
Definition at line 115 of file orbit.h.
TABLET_RISING_SPARKS
#define TABLET_RISING_SPARKS 16
The sparks that rise from a Psynergy's tablet as it lifts, flashing.
Referenced by scAquaRockInsidePiersLearnsParch(), scGaiaRockInsideFelixLearnsSand() and scMagmaRockInsideLearnBlaze().
Definition at line 118 of file orbit.h.
LEARN_SPARKS
#define LEARN_SPARKS 16
The LEARN_SPARKS that circle the one who learns a Psynergy start
LEARN_SPARK_INTERVAL ticks apart, 122 pixels out, and close 8 pixels a tick
(scOrbiterSpiral) to 2 pixels in LEARN_SPIRAL_TICKS; each one's countdown
ends with the last's.
Referenced by scAquaRockInsidePiersLearnsParch(), scGaiaRockInsideFelixLearnsSand() and scMagmaRockInsideLearnBlaze().
Definition at line 124 of file orbit.h.
LEARN_SPARK_INTERVAL
#define LEARN_SPARK_INTERVAL 8
Referenced by scAquaRockInsidePiersLearnsParch(), scGaiaRockInsideFelixLearnsSand() and scMagmaRockInsideLearnBlaze().
Definition at line 125 of file orbit.h.
LEARN_SPIRAL_TICKS
#define LEARN_SPIRAL_TICKS 15
Referenced by scAquaRockInsidePiersLearnsParch(), scGaiaRockInsideFelixLearnsSand() and scMagmaRockInsideLearnBlaze().
Definition at line 126 of file orbit.h.