Skip to Content
The Alchemy Project

include/scene/field_effect_spawn.h

The small effects twenty-four scenes scatter, each moving at its own velocity, growing and spinning (shared/field_effect_spawn.c).

Included by lamakan_desert.c, suhalla_desert.c and venus_lighthouse.c.

Macros

NameDescription
#defineFIELD_EFFECT_RANDOM_SPIN () (syRandomBelow(4096) + (Uint16)-2048)A random spin for a field effect, in 1/65536 turns a tick: up to a thirty-second of a turn either way, as the effect's Uint16 spin wraps it.

Functions

NameDescription
voidscFieldEffectUpdateMotionScaleAndSpin (struct ACTOR *actor)Moves, scales and spins a small effect by one tick.

Description

The small effects twenty-four scenes scatter, each moving at its own velocity, growing and spinning (shared/field_effect_spawn.c).

Macros in detail

FIELD_EFFECT_RANDOM_SPIN

#define FIELD_EFFECT_RANDOM_SPIN() (syRandomBelow(4096) + (Uint16)-2048)

A random spin for a field effect, in 1/65536 turns a tick: up to a thirty-second of a turn either way, as the effect's Uint16 spin wraps it.

Referenced by scHeatGaugeCountStep(), scLamakanDesertKickUpSand(), scLamakanDesertSlipDownSand(), scSuhallaDesertChaseLeader(), scVenusLighthouseDriftLeader(), scVenusLighthousePuffSandAtSlideHead(), scVenusLighthouseSetSandParticleScaleAndSpin(), scVenusLighthouseStepOnEastWallSwitch(), scVenusLighthouseStepOnWallSwitch() and scVenusLighthouseStepOnWestWallSwitch().

Definition at line 16 of file field_effect_spawn.h.