src/battle_effect/battle_effect_haunt.c
Haunt and the orbiting spirals. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | HAUNT_SCATTERED 512 | The particles Haunt scatters at random about its centre as it starts, up to 64 pixels out along each axis. |
#define | HAUNT_SKULLS 8 | skulls drawn around each target |
#define | HAUNT_SLOTS 64 | particles reserved for each target |
#define | ORBITING_SPIRALS 4 | The spirals: ORBITING_SPIRALS a quarter turn apart, circling ORBITING_SPIRALS_RADIUS pixels out, each target's ORBITING_SPIRALS_INTERVAL ticks after the one before and for ORBITING_SPIRALS_LIFE ticks less one. |
#define | ORBITING_SPIRALS_RADIUS 16 | |
#define | ORBITING_SPIRALS_INTERVAL 16 | |
#define | ORBITING_SPIRALS_LIFE 60 | |
#define | ORBITING_SPIRALS_PARTY_START_X (NARROW_CANVAS_PARTY_X - 8) | The canvas's scroll on the party side until the first tick's wave rows replace it, 8 pixels short of NARROW_CANVAS_PARTY_X. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunHaunt (BATTLE_EFFECT_PARM *args) | The view ripples as skulls close in on each target in turn. |
void | btEffectRunUnusedOrbitingSpirals (BATTLE_EFFECT_PARM *args) | Unused: no row of AbilityBattleEffects in either game names its kind, and the handler table is reached with no other kind (btEffectRunFromTable), so the player never sees it. |
Description
Haunt and the orbiting spirals. Part of battle_effect.c.
Macros in detail
HAUNT_SCATTERED
#define HAUNT_SCATTERED 512
The particles Haunt scatters at random about its centre as it starts, up to 64 pixels out along each axis.
Referenced by btEffectRunHaunt().
Definition at line 5 of file battle_effect_haunt.c.
HAUNT_SKULLS
#define HAUNT_SKULLS 8
skulls drawn around each target
Referenced by btEffectRunHaunt().
Definition at line 6 of file battle_effect_haunt.c.
HAUNT_SLOTS
#define HAUNT_SLOTS 64
particles reserved for each target
Referenced by btEffectRunHaunt().
Definition at line 7 of file battle_effect_haunt.c.
ORBITING_SPIRALS
#define ORBITING_SPIRALS 4
The spirals: ORBITING_SPIRALS a quarter turn apart, circling
ORBITING_SPIRALS_RADIUS pixels out, each target's ORBITING_SPIRALS_INTERVAL
ticks after the one before and for ORBITING_SPIRALS_LIFE ticks less one.
Referenced by btEffectRunUnusedOrbitingSpirals().
Definition at line 134 of file battle_effect_haunt.c.
ORBITING_SPIRALS_RADIUS
#define ORBITING_SPIRALS_RADIUS 16
Referenced by btEffectRunUnusedOrbitingSpirals().
Definition at line 135 of file battle_effect_haunt.c.
ORBITING_SPIRALS_INTERVAL
#define ORBITING_SPIRALS_INTERVAL 16
Referenced by btEffectRunUnusedOrbitingSpirals().
Definition at line 136 of file battle_effect_haunt.c.
ORBITING_SPIRALS_LIFE
#define ORBITING_SPIRALS_LIFE 60
Referenced by btEffectRunUnusedOrbitingSpirals().
Definition at line 137 of file battle_effect_haunt.c.
ORBITING_SPIRALS_PARTY_START_X
#define ORBITING_SPIRALS_PARTY_START_X (NARROW_CANVAS_PARTY_X - 8)
The canvas's scroll on the party side until the first tick's wave rows
replace it, 8 pixels short of NARROW_CANVAS_PARTY_X.
Referenced by btEffectRunUnusedOrbitingSpirals().
Definition at line 140 of file battle_effect_haunt.c.
Functions in detail
btEffectRunHaunt
void btEffectRunHaunt(BATTLE_EFFECT_PARM *args)
The view ripples as skulls close in on each target in turn.
Abilities: Haunt.

References btEffectArmBg2AffineHBlankDMA(), btEffectEndCanvasLayer(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btObjectGetStub(), btProjectionPoint(), Sint32, state, syCloseEvent(), syDecompressTaggedLZ(), syMatrixTranslateVector(), syRandom(), syResourceGetTableEntry(), syRotX(), sySetEvent(), sySin(), sySoundPlayStub(), sySquartIWRAM() and syWordsCopy().
Referenced by BattleEffectHandlers.
Definition at line 12 of file battle_effect_haunt.c.
btEffectRunUnusedOrbitingSpirals
void btEffectRunUnusedOrbitingSpirals(BATTLE_EFFECT_PARM *args)
Unused: no row of AbilityBattleEffects in either game names its kind, and the
handler table is reached with no other kind (btEffectRunFromTable), so the
player never sees it. Staged by hand (Quake's row of AbilityBattleEffects
given its kind, cast by Isaac at Garet, Ivan and Mia), four spirals circle
the point 40 pixels above Garet, then Ivan, then Mia, turning a 128th of a
turn a tick; each target takes its damage pose 32 ticks into its turn.
References btEffectArmBg2AffineHBlankDMA(), btEffectEndCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btObjectGetStub(), btProjectionPoint(), Sint32, state, syCloseEvent(), syCos(), syDecompressTaggedLZ(), syResourceGetTableEntry(), sySetEvent(), sySin() and syWordsCopy().
Referenced by BattleEffectHandlers.
Definition at line 148 of file battle_effect_haunt.c.