src/scene/shared/field_effect_vertical.c
Vale and its home, storm and Babi scenes, Sol Sanctum's eruption, the World Map and Venus Lighthouse's aerie: the golden ring that rises around someone using Psynergy, as the main image's script_commands_arcs.c draws it. More…
Included by cottage_rooms_b.c, psynergy_rings.c, sol_sanctum_eruption.c, vale.c, vale_plaza.c and world_map.c.
Macros
| Name | Description | |
|---|---|---|
#define | RING_RISE_TICKS 32 | How long a ring lives, in ticks, swelling and shrinking over half a sine wave. |
Functions
| Name | Description | |
|---|---|---|
static void | scFieldEffectRiseRingBackHalf (ACTOR *actor) | An update function for the ring's back half: it rises a pixel a tick over the watched actor, 8 pixels south of it at full size and up to 13 while small, and is released after RING_RISE_TICKS. |
static void | scFieldEffectRiseRingFrontHalf (ACTOR *actor) | An update function for the ring's front half, the back half's arc upside down: it rises with the back half, 16 pixels south of the watched actor at full size and as little as 11 while small. |
Description
Vale and its home, storm and Babi scenes, Sol Sanctum's eruption, the World
Map and Venus Lighthouse's aerie: the golden ring that rises around someone
using Psynergy, as the main image's script_commands_arcs.c draws it. The ring
is two arcs of SPRITE_GOLDEN_RINGS, its back half under the caster and its
front half, the same arc upside down, in front.
Macros in detail
RING_RISE_TICKS
#define RING_RISE_TICKS 32
How long a ring lives, in ticks, swelling and shrinking over half a sine wave.
Referenced by scFieldEffectRiseRingBackHalf() and scFieldEffectRiseRingFrontHalf().
Definition at line 9 of file field_effect_vertical.c.
Functions in detail
scFieldEffectRiseRingBackHalf
static void scFieldEffectRiseRingBackHalf(ACTOR *actor)
An update function for the ring's back half: it rises a pixel a tick over the
watched actor, 8 pixels south of it at full size and up to 13 while small,
and is released after RING_RISE_TICKS.
References fdActorRelease(), Sint32 and sySin().
Referenced by scCottageRoomsBSpawnRingPair(), scSolSanctumEruptionRaiseGoldenRings(), scSpawnGoldenRing(), scSpawnPsynergyRings() and scValePlazaSpawnEffectPair().
Definition at line 14 of file field_effect_vertical.c.
scFieldEffectRiseRingFrontHalf
static void scFieldEffectRiseRingFrontHalf(ACTOR *actor)
An update function for the ring's front half, the back half's arc upside down: it rises with the back half, 16 pixels south of the watched actor at full size and as little as 11 while small.
References fdActorRelease(), Sint32 and sySin().
Referenced by scCottageRoomsBSpawnRingPair(), scSolSanctumEruptionRaiseGoldenRings(), scSpawnGoldenRing(), scSpawnPsynergyRings() and scValePlazaSpawnEffectPair().
Definition at line 41 of file field_effect_vertical.c.