src/scene/shared/field_effect_advance.c
Babi Lighthouse, Crossbone Isle, Tret's rooms, the Tunnel Ruins and Venus Lighthouse, and the main image's Carry (script_commands_whirlwind.c, with EFFECT_SPAWN_RESIDENT), whose landing ring of particles it moves. More…
Included by script_commands_whirlwind.c, babi_lighthouse.c, crossbone_isle.c, tree_rooms.c, tunnel_ruins.c and venus_lighthouse.c.
Macros
| Name | Description | |
|---|---|---|
#define | EFFECT_ADVANCE_LINKAGE | |
#define | FIELD_EFFECT_DRAG_X 18 | A drifting effect loses a FIELD_EFFECT_DRAG_X-th of its x speed and a FIELD_EFFECT_DRAG_Z-th of its z speed each tick. |
#define | FIELD_EFFECT_DRAG_Z 16 |
Functions
| Name | Description | |
|---|---|---|
EFFECT_ADVANCE_LINKAGE void | scFieldEffectAdvanceMotion (ACTOR *actor) | An effect's update function: move by its velocity, slowing in x and z, and grow and spin at its rates. |
Description
Babi Lighthouse, Crossbone Isle, Tret's rooms, the Tunnel Ruins and Venus
Lighthouse, and the main image's Carry (script_commands_whirlwind.c, with
EFFECT_SPAWN_RESIDENT), whose landing ring of particles it moves. It is
static in each overlay and global in the main image.
Macros in detail
EFFECT_ADVANCE_LINKAGE
#define EFFECT_ADVANCE_LINKAGE
#define EFFECT_ADVANCE_LINKAGE static
Referenced by scFieldEffectAdvanceMotion().
Definition at lines 7 and 9 of file field_effect_advance.c.
FIELD_EFFECT_DRAG_X
#define FIELD_EFFECT_DRAG_X 18
A drifting effect loses a FIELD_EFFECT_DRAG_X-th of its x speed and a
FIELD_EFFECT_DRAG_Z-th of its z speed each tick.
Referenced by scFieldEffectAdvanceMotion().
Definition at line 14 of file field_effect_advance.c.
FIELD_EFFECT_DRAG_Z
#define FIELD_EFFECT_DRAG_Z 16
Referenced by scFieldEffectAdvanceMotion().
Definition at line 15 of file field_effect_advance.c.
Functions in detail
scFieldEffectAdvanceMotion
EFFECT_ADVANCE_LINKAGE void scFieldEffectAdvanceMotion(ACTOR *actor)
An effect's update function: move by its velocity, slowing in x and z, and grow and spin at its rates.
References void().
Referenced by fdEffectSpawnRadialParticleRing(), scBabiLighthouseLandWithParticles(), scCrossboneIsleSpawnPillarMovedBurst(), scFieldEffectSpawnNineRadialEffects(), scTreeRoomsLandFromFall(), scTunnelRuinsHopDownStep() and scVenusLighthouseLandWithRadialDust().
Definition at line 19 of file field_effect_advance.c.