src/field/script_commands_ply.c
Ply cast in the field: eight winged figures spiral into one, which flashes, sheds sparks and flies off. More…
Included by script_commands.c.
Macros
| Name | Description | |
|---|---|---|
#define | PLY_FLASH_STEPS 30 | Ply's flashing figure: its steps, of 2 ticks each. |
Functions
| Name | Description | |
|---|---|---|
void | fdEffectSwayParticle (ACTOR *actor) | Per-tick update: sways 4 pixels either side of anchorX, once every 128 ticks. |
void | fdEffectUpdateShrinkingOrbitActor (ACTOR *particle) | Per-tick update: spirals in on a point 10 pixels above the Psynergy's position, at a radius of as many pixels as ticks are left; released when timer reaches 0. |
void | fdEffectRunSparkEmitter (ACTOR *emitter) | Per-tick update: sways 6 pixels either side (a 64-tick cycle) 16 pixels above the Psynergy's position, and every 3 ticks sheds a spark that sways as it slowly falls. |
void | fdPsynergyPlyOnTarget (Sint32 unused) | Ply cast on a target, which stops the caster's update once it is done. |
void | fdPsynergyPly (void) | Eight particles spiral into the centre, where one appears, sheds sparks and flies far away. |
Description
Ply cast in the field: eight winged figures spiral into one, which flashes,
sheds sparks and flies off. Part of script_commands.c.
Macros in detail
PLY_FLASH_STEPS
#define PLY_FLASH_STEPS 30
Ply's flashing figure: its steps, of 2 ticks each.
Referenced by fdPsynergyPly().
Definition at line 99 of file script_commands_ply.c.
Functions in detail
fdEffectSwayParticle
void fdEffectSwayParticle(ACTOR *actor)
Per-tick update: sways 4 pixels either side of anchorX, once every 128 ticks.
References syMulFX() and sySin().
Referenced by fdEffectRunSparkEmitter().
Definition at line 7 of file script_commands_ply.c.
fdEffectUpdateShrinkingOrbitActor
void fdEffectUpdateShrinkingOrbitActor(ACTOR *particle)
Per-tick update: spirals in on a point 10 pixels above the Psynergy's position, at a radius of as many pixels as ticks are left; released when timer reaches 0.
References fdActorStartScriptStub(), FieldEffectSharedParticleScript, Sint32 and syVectorAddPolarOffset().
Referenced by fdPsynergyPly().
Definition at line 19 of file script_commands_ply.c.
fdEffectRunSparkEmitter
void fdEffectRunSparkEmitter(ACTOR *emitter)
Per-tick update: sways 6 pixels either side (a 64-tick cycle) 16 pixels above the Psynergy's position, and every 3 ticks sheds a spark that sways as it slowly falls.
References fdActorSetSpriteColorModeStub(), fdActorSpawn(), fdActorStartScriptStub(), fdEffectSwayParticle(), FieldEffectSharedParticleScript, Sint32, syMulFX(), syRandom(), sySin(), syVectorAddPolarOffset() and TickCount.
Referenced by fdPsynergyPly().
Definition at line 54 of file script_commands_ply.c.
fdPsynergyPlyOnTarget
void fdPsynergyPlyOnTarget(Sint32 unused)
Ply cast on a target, which stops the caster's update once it is done.
References fdPsynergyPly(), fdPsynergyStopCasterUpdate() and Sint32.
Referenced by fdPsynergyDispatch().
Definition at line 102 of file script_commands_ply.c.
fdPsynergyPly
void fdPsynergyPly(void)
Eight particles spiral into the centre, where one appears, sheds sparks and flies far away.
References fdActorReleaseStub(), fdActorSetSpriteColorModeStub(), fdActorSetTargetPosFromMagnitudeAngle(), fdActorSpawn(), fdActorWaitForMoveStub(), fdEffectRunSparkEmitter(), fdEffectUpdateShrinkingOrbitActor(), fdPsynergyFadeFromCastColor(), fdPsynergyFadeToCastColor(), fdSpriteShareVRAMCacheEntry(), Sint32, sySoundPlayStub(), sySynch() and syVRAMCacheFreeEntry().
Referenced by fdPsynergyPlyOnTarget() and fdPsynergyRun().
Definition at line 110 of file script_commands_ply.c.