Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_torch.c

Torch and Kite. More…

Included by battle_effect.c.

Macros

NameDescription
#defineTORCH_TICKS 96
#defineTORCH_FADE_TICKS 8the rings fade in, and later out, over these
#defineTORCH_BRIGHTEST_LEVEL 32The ring level drawn brightest: the levels either side of it dim toward 0 and toward the disc's edge.
#defineTORCH_CHANNEL_MAX 255The rings' 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.
#defineTORCH_BLUE_MAX 250
#defineTORCH_SWAY (32 * 4)How far a line sways either way: 32 canvas pixels, toFIXED(4) to a pixel.

Functions

NameDescription
voidbtEffectRunTorch (BATTLE_EFFECT_PARM *args)After the Djinni's entrance, rings of fiery light fill the screen, running outward from the middle while every line sways, so that they swirl like heat; then they fade.
voidbtEffectRunKite (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 96

Referenced by btEffectRunTorch().

Definition at line 3 of file battle_effect_torch.c.

TORCH_FADE_TICKS

#define TORCH_FADE_TICKS 8

the rings fade in, and later out, over these

Referenced by btEffectRunTorch().

Definition at line 4 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 8 of file battle_effect_torch.c.

TORCH_CHANNEL_MAX

#define TORCH_CHANNEL_MAX 255

The rings' 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 11 of file battle_effect_torch.c.

TORCH_BLUE_MAX

#define TORCH_BLUE_MAX 250

Referenced by btEffectRunTorch().

Definition at line 12 of file battle_effect_torch.c.

TORCH_SWAY

#define TORCH_SWAY (32 * 4)

How far a line sways either way: 32 canvas pixels, toFIXED(4) to a pixel.

Referenced by btEffectRunTorch().

Definition at line 14 of file battle_effect_torch.c.

Functions in detail

btEffectRunTorch

void btEffectRunTorch(BATTLE_EFFECT_PARM *args)

After the Djinni's entrance, rings of fiery light fill the screen, running outward from the middle while every line sways, so that they swirl like heat; then they fade.

Abilities: Torch.

References btEffectArmBg2AffineHBlankDMA(), btEffectBuildCanvasBlitters(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer(), line, Sint32, state, syCloseEvent(), syDMAXCopy(), sySetEvent(), sySin(), sySquartIWRAM() and sySynch().

Referenced by BattleEffectHandlers.

Definition at line 21 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(), Sint32 and state.

Referenced by BattleEffectHandlers.

Definition at line 177 of file battle_effect_torch.c.