src/battle_effect/battle_effect_vortices.c
Froth's bubbles that burst into vortices, and Whirlwind's tornadoes. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | WHIRLWIND_TICKS 80 | ticks of the tornadoes |
#define | FROTH_VORTEX_HALF_WIDTH 16 | Froth's sheet: the vortex's three pictures, each its left half (the right is drawn mirrored), then the bubble. |
#define | FROTH_VORTEX_HALF_HEIGHT 64 | |
#define | FROTH_BUBBLE_PICTURE_WIDTH 12 | |
#define | FROTH_BUBBLE_PICTURE_HEIGHT 24 | |
#define | FROTH_BUBBLE_PICTURE (3 * PICTURE_BYTES(FROTH_VORTEX_HALF)) | |
#define | FROTH_BUBBLE_SLOTS 30 | The bubbles set out in the effect's particles, of which each variant flies its FROTH_BUBBLE_COUNT; the targets' places follow from FROTH_FIRST_TARGET. |
#define | FROTH_FIRST_TARGET 32 | |
#define | FROTH_BUBBLE_DEPTH_NEAR 160 | The depths a bubble's projection is held between. |
#define | FROTH_BUBBLE_DEPTH_FAR 799 | |
#define | FROTH_VORTEX_TICKS 16 | The ticks a vortex turns where a bubble landed. |
#define | WHIRLWIND_GLINTS 16 | The glints that sparkle on the tornadoes, four on each. |
#define | WHIRLWIND_GLINT_LIFE 6 | The ticks a glint lives: three pictures, two ticks each. |
#define | WHIRLWIND_SWEEP_SWAY 16 | The sweep sways this far either way, a sway every 64 ticks, and each tornado turns round it every 32. |
#define | WHIRLWIND_TORNADO_PICTURES GLINT_SET_BYTES | The tornado pictures, after the six glint pictures in the sprite sheet. |
#define | WHIRLWIND_SECTION_BYTES PICTURE_BYTES(TORNADO_STRIP) |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunFroth (BATTLE_EFFECT_PARM *args) | Bubbles fly out of the top of the user, hang, and home in on the targets; each that lands bursts into a swirling vortex, knocking back its target, while the camera swings round. |
void | btEffectRunWhirlwind (BATTLE_EFFECT_PARM *args) | Tornadoes sweep across the targets, sparkling with glints, and the targets reel again and again. |
Description
Froth's bubbles that burst into vortices, and Whirlwind's tornadoes. Part of
battle_effect.c.
Macros in detail
WHIRLWIND_TICKS
#define WHIRLWIND_TICKS 80
ticks of the tornadoes
Referenced by btEffectRunWhirlwind().
Definition at line 4 of file battle_effect_vortices.c.
FROTH_VORTEX_HALF_WIDTH
#define FROTH_VORTEX_HALF_WIDTH 16
Froth's sheet: the vortex's three pictures, each its left half (the right is drawn mirrored), then the bubble.
Referenced by btEffectRunFroth().
Definition at line 8 of file battle_effect_vortices.c.
FROTH_VORTEX_HALF_HEIGHT
#define FROTH_VORTEX_HALF_HEIGHT 64
Referenced by btEffectRunFroth().
Definition at line 9 of file battle_effect_vortices.c.
FROTH_BUBBLE_PICTURE_WIDTH
#define FROTH_BUBBLE_PICTURE_WIDTH 12
Referenced by btEffectRunFroth().
Definition at line 10 of file battle_effect_vortices.c.
FROTH_BUBBLE_PICTURE_HEIGHT
#define FROTH_BUBBLE_PICTURE_HEIGHT 24
Referenced by btEffectRunFroth().
Definition at line 11 of file battle_effect_vortices.c.
FROTH_BUBBLE_PICTURE
#define FROTH_BUBBLE_PICTURE (3 * PICTURE_BYTES(FROTH_VORTEX_HALF))
Referenced by btEffectRunFroth().
Definition at line 12 of file battle_effect_vortices.c.
FROTH_BUBBLE_SLOTS
#define FROTH_BUBBLE_SLOTS 30
The bubbles set out in the effect's particles, of which each variant flies
its FROTH_BUBBLE_COUNT; the targets' places follow from FROTH_FIRST_TARGET.
Referenced by btEffectRunFroth().
Definition at line 15 of file battle_effect_vortices.c.
FROTH_FIRST_TARGET
#define FROTH_FIRST_TARGET 32
Referenced by btEffectRunFroth().
Definition at line 16 of file battle_effect_vortices.c.
FROTH_BUBBLE_DEPTH_NEAR
#define FROTH_BUBBLE_DEPTH_NEAR 160
The depths a bubble's projection is held between.
Referenced by btEffectRunFroth().
Definition at line 18 of file battle_effect_vortices.c.
FROTH_BUBBLE_DEPTH_FAR
#define FROTH_BUBBLE_DEPTH_FAR 799
Referenced by btEffectRunFroth().
Definition at line 19 of file battle_effect_vortices.c.
FROTH_VORTEX_TICKS
#define FROTH_VORTEX_TICKS 16
The ticks a vortex turns where a bubble landed.
Referenced by btEffectRunFroth().
Definition at line 21 of file battle_effect_vortices.c.
WHIRLWIND_GLINTS
#define WHIRLWIND_GLINTS 16
The glints that sparkle on the tornadoes, four on each.
Referenced by btEffectRunWhirlwind().
Definition at line 24 of file battle_effect_vortices.c.
WHIRLWIND_GLINT_LIFE
#define WHIRLWIND_GLINT_LIFE 6
The ticks a glint lives: three pictures, two ticks each.
Referenced by btEffectRunWhirlwind().
Definition at line 26 of file battle_effect_vortices.c.
WHIRLWIND_SWEEP_SWAY
#define WHIRLWIND_SWEEP_SWAY 16
The sweep sways this far either way, a sway every 64 ticks, and each tornado turns round it every 32.
Referenced by btEffectRunWhirlwind().
Definition at line 29 of file battle_effect_vortices.c.
WHIRLWIND_TORNADO_PICTURES
#define WHIRLWIND_TORNADO_PICTURES GLINT_SET_BYTES
The tornado pictures, after the six glint pictures in the sprite sheet.
Referenced by btEffectRunWhirlwind().
Definition at line 32 of file battle_effect_vortices.c.
WHIRLWIND_SECTION_BYTES
#define WHIRLWIND_SECTION_BYTES PICTURE_BYTES(TORNADO_STRIP)
Referenced by btEffectRunWhirlwind().
Definition at line 33 of file battle_effect_vortices.c.
Functions in detail
btEffectRunFroth
void btEffectRunFroth(BATTLE_EFFECT_PARM *args)
Bubbles fly out of the top of the user, hang, and home in on the targets; each that lands bursts into a swirling vortex, knocking back its target, while the camera swings round.
Abilities: Froth, Froth Sphere, Froth Spiral.
References btCameraApplyPhasedDelta(), btCameraShake(), btEffectPosProjectPoint(), btEffectStartCanvasLayer(), btEffectTintBattler(), btMotionApplyKnockbackStub(), btObjectGetStub(), btResourceLoadAndDecompress(), btUnitGetEffectHeightStub(), Sint32, syCloseEvent(), syRandom(), sySetEvent(), sySoundPlayStub() and VorticesCounts.
Referenced by BattleEffectHandlers.
Definition at line 40 of file battle_effect_vortices.c.
btEffectRunWhirlwind
void btEffectRunWhirlwind(BATTLE_EFFECT_PARM *args)
Tornadoes sweep across the targets, sparkling with glints, and the targets reel again and again.
Abilities: Whirlwind, Tornado, Tempest, Gale, Typhoon, Hurricane.
References BattleEffectGlintPictureHeights, BattleEffectGlintPictures, BattleEffectGlintPictureWidths, btCameraShake(), btEffectEndCanvasLayer(), btEffectStartCanvasLayer(), btEffectTransferCanvas(), btResourceLoadAndDecompress(), Sint32, syCloseEvent(), syCos(), syRandom(), sySin(), sySoundPlayStub(), sySynch() and VorticesShapes.
Referenced by BattleEffectHandlers.
Definition at line 213 of file battle_effect_vortices.c.