src/scene/shared/orbiter_spiral.c
Included by aqua_rock_inside.c and gaia_rock_inside.c.
Functions
| Name | Description | |
|---|---|---|
static inline void | scOrbiterStep (ORBITER *orbiter, ACTOR *anchor) | Turns an orbiting object by half its speed and puts it out from its anchor, raised 8 pixels, by its radius. |
Bool | scOrbiterSpiral (ORBITER *orbiter) | Steps an orbiting object round its anchor: returns 0 once its countdown runs out; else, unless its radius is down to 2 pixels, it leaves a spark, closes 4 pixels and steps again, leaving another and closing 4 more. |
Functions in detail
scOrbiterStep
static inline void scOrbiterStep(ORBITER *orbiter, ACTOR *anchor)
Turns an orbiting object by half its speed and puts it out from its anchor, raised 8 pixels, by its radius.
References scFieldVectorAddPolarOffsetFX().
Referenced by scOrbiterSpiral().
Definition at line 3 of file orbiter_spiral.c.
scOrbiterSpiral
Bool scOrbiterSpiral(ORBITER *orbiter)
Steps an orbiting object round its anchor: returns 0 once its countdown runs out; else, unless its radius is down to 2 pixels, it leaves a spark, closes 4 pixels and steps again, leaving another and closing 4 more. Returns 1 while it runs.
References scOrbiterStep() and scOrbitSparkSpawn().
Referenced by AquaRockInsideSpiralSparkScript and GaiaRockInsideCirclingSparkScript.
Definition at line 17 of file orbiter_spiral.c.