src/field/script_commands_venus.c
A Venus Djinni joining the party. More…
Included by script_commands.c.
Macros
| Name | Description | |
|---|---|---|
#define | VENUS_DESCENDING_MOTES 24 | The motes that circle down onto the leader, evenly spread round a circle. |
#define | DJINNI_ANIMATION_BOUNCE 3 | A Djinni sheet's animation 3 (venus_djinni.tsv): crouched, standing and stretched up in turn, a bounce. |
Functions
| Name | Description | |
|---|---|---|
void | fdDjinnRunVenusJoinEffect (Sint32 djinniId) | A Venus Djinni joins the party: on a green screen it hops twice, spins and leaps, then shrinks away; the leader turns to the camera and raises both arms as green particles rise and 24 motes circle down onto him, and a burst of sparks ends it. |
void | fdEffectUpdateRandomTargetParticle (FIELD_PARTICLE *effect) | Field effect sprite callback of a Mercury Djinni's droplets: each falls from 100 pixels above (on screen) to a random point 2 to 8 pixels round a spot 15 to 20 pixels over the leader, at 3 to 6 pixels a tick, and where it lands splashes 12 pixels in a random direction, at half size, with SE_CRACK. |
void | fdEffectHalveDistanceToTarget (ACTOR *actor) | Per-tick update of an afterimage: closes half the distance to the actor it watches. |
Description
A Venus Djinni joining the party. Part of script_commands.c.
Macros in detail
VENUS_DESCENDING_MOTES
#define VENUS_DESCENDING_MOTES 24
The motes that circle down onto the leader, evenly spread round a circle.
Referenced by fdDjinnRunVenusJoinEffect().
Definition at line 6 of file script_commands_venus.c.
DJINNI_ANIMATION_BOUNCE
#define DJINNI_ANIMATION_BOUNCE 3
A Djinni sheet's animation 3 (venus_djinni.tsv): crouched, standing and
stretched up in turn, a bounce.
Referenced by fdDjinnRunVenusJoinEffect().
Definition at line 10 of file script_commands_venus.c.
Functions in detail
fdDjinnRunVenusJoinEffect
void fdDjinnRunVenusJoinEffect(Sint32 djinniId)
A Venus Djinni joins the party: on a green screen it hops twice, spins and leaps, then shrinks away; the leader turns to the camera and raises both arms as green particles rise and 24 motes circle down onto him, and a burst of sparks ends it.
References fdActorFaceDirectionById(), fdActorGetById(), fdActorJump(), fdActorSelectAnimationStub(), fdActorSetSpriteColorModeStub(), fdActorSetTargetPosFromMagnitudeAngle(), fdActorSpawn(), fdActorStartScriptStub(), fdCameraWorldToScreen(), fdEffectAdvanceSpinAngle(), fdEffectInitSlots(), fdEffectReleaseSlots(), fdEffectShrinkActorAndDestroyFast(), fdEffectUpdateDescendingOrbitActor(), fdEffectUpdateRadialSpread(), fdMapGridSetScreenShakeStub(), fdParticleInit(), fdParticleSetAnimation(), fdParticleSetCallback(), fdSpriteSetAnimationColorModesStub(), FieldEffectSharedParticleScript, MainRoutineStateWork, mnShopRestoreFieldPaletteStub(), mnShopSaveAndTintFieldPaletteStub(), Sint32, syRandom(), sySoundPlayStub() and sySynch().
Referenced by fdDjinnJoinParty().
Definition at line 16 of file script_commands_venus.c.
fdEffectUpdateRandomTargetParticle
void fdEffectUpdateRandomTargetParticle(FIELD_PARTICLE *effect)
Field effect sprite callback of a Mercury Djinni's droplets: each falls from
100 pixels above (on screen) to a random point 2 to 8 pixels round a spot 15
to 20 pixels over the leader, at 3 to 6 pixels a tick, and where it lands
splashes 12 pixels in a random direction, at half size, with SE_CRACK.
References fdActorGetById(), fdCameraWorldToScreen(), fdParticleFree(), fdParticleHasPendingTarget(), MainRoutineStateWork, Sint32, state, syRandom(), sySoundPlayStub() and syVectorAddPolarOffset().
Referenced by fdDjinnRunMercuryJoinEffect().
Definition at line 154 of file script_commands_venus.c.
fdEffectHalveDistanceToTarget
void fdEffectHalveDistanceToTarget(ACTOR *actor)
Per-tick update of an afterimage: closes half the distance to the actor it watches.
References fdEffectMoveAfterimageHalfway().
Referenced by fdDjinnRunMercuryJoinEffect().
Definition at line 217 of file script_commands_venus.c.