src/battle_effect/battle_effect_torch.c
Torch and Kite. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | TORCH_TICKS 80 | |
#define | TORCH_FADE_TICKS 8 | the disc fades in, and later out, over these |
#define | TORCH_STRIKE_TICK 48 | the target is struck |
#define | TORCH_BRIGHTEST_LEVEL 32 | The ring level drawn brightest: the levels either side of it dim toward 0 and toward the disc's edge. |
#define | TORCH_CHANNEL_MAX 255 | The disc's colours are worked in eight-bit channels, each capped, then cut to the five bits a colour holds; blue's lower cap cuts to the same level. |
#define | TORCH_BLUE_MAX 250 | |
#define | TORCH_SWAY (32 * 4) | How far a line sways either way: 32 canvas pixels, in a sway's quarter pixels. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunTorch (BATTLE_EFFECT_PARM *args) | A fiery disc fades in over the battle, its rings running outward while every line of the display ripples; the target is struck, the disc fades out. |
void | btEffectRunKite (BATTLE_EFFECT_PARM *args) | The long Jupiter Djinni entrance over the first target is the whole effect. |
Description
Torch and Kite. Part of battle_effect.c.
Macros in detail
TORCH_TICKS
#define TORCH_TICKS 80
Referenced by btEffectRunTorch().
Definition at line 3 of file battle_effect_torch.c.
TORCH_FADE_TICKS
#define TORCH_FADE_TICKS 8
the disc fades in, and later out, over these
Referenced by btEffectRunTorch().
Definition at line 4 of file battle_effect_torch.c.
TORCH_STRIKE_TICK
#define TORCH_STRIKE_TICK 48
the target is struck
Referenced by btEffectRunTorch().
Definition at line 5 of file battle_effect_torch.c.
TORCH_BRIGHTEST_LEVEL
#define TORCH_BRIGHTEST_LEVEL 32
The ring level drawn brightest: the levels either side of it dim toward 0 and toward the disc's edge.
Referenced by btEffectRunTorch().
Definition at line 9 of file battle_effect_torch.c.
TORCH_CHANNEL_MAX
#define TORCH_CHANNEL_MAX 255
The disc's colours are worked in eight-bit channels, each capped, then cut to the five bits a colour holds; blue's lower cap cuts to the same level.
Referenced by btEffectRunTorch().
Definition at line 12 of file battle_effect_torch.c.
TORCH_BLUE_MAX
#define TORCH_BLUE_MAX 250
Referenced by btEffectRunTorch().
Definition at line 13 of file battle_effect_torch.c.
TORCH_SWAY
#define TORCH_SWAY (32 * 4)
How far a line sways either way: 32 canvas pixels, in a sway's quarter pixels.
Referenced by btEffectRunTorch().
Definition at line 16 of file battle_effect_torch.c.
Functions in detail
btEffectRunTorch
void btEffectRunTorch(BATTLE_EFFECT_PARM *args)
A fiery disc fades in over the battle, its rings running outward while every line of the display ripples; the target is struck, the disc fades out.
Abilities: Torch.
References btCameraShake(), btEffectArmBg2AffineHBlankDMA(), btEffectBuildCanvasBlitters(), btEffectCountDownBattlerTints(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer(), btMotionApplyKnockbackStub(), Sint32, syCloseEvent(), syDMAXCopy(), sySetEvent(), sySin(), sySquartIWRAM() and sySynch().
Referenced by BattleEffectHandlers.
Definition at line 22 of file battle_effect_torch.c.
btEffectRunKite
void btEffectRunKite(BATTLE_EFFECT_PARM *args)
The long Jupiter Djinni entrance over the first target is the whole effect.
Abilities: Kite.
References btEffectEndCanvasLayer(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer() and Sint32.
Referenced by BattleEffectHandlers.
Definition at line 187 of file battle_effect_torch.c.