Alchemy

torch.c

Torch and Kite.

games/tbs/src/effect/parts/torch.c on GitHub

Torch and Kite. Part of effect.c, the battle effect object, compiled only through it.

Functions

BattleFx_RunTorch

void BattleFx_RunTorch(struct BattleEffectArgument *effect)

A fiery disc fades in, its rings running outward while every scanline ripples, then fades out.

Abilities: Torch (kind 214).

The disc is a mirrored radial picture whose pixels hold their distance from the middle, so rotating the palette moves the rings. It follows a Mars Djinni's entrance over the user, fades in over the first 9 frames, ripples throughout as BG2's x reference is fed line by line (BattleFx_ArmBg2AffineHBlankDma), and fades out over the last 7.

Used by gBattleFx_EffectHandlers.

Line 19

BattleFx_RunKite

void BattleFx_RunKite(struct BattleEffectArgument *effect)

Shows the extended Jupiter Djinni prelude over the first target, mirrored from the usual side; the Djinni's entrance is the whole effect.

Abilities: Kite (kind 217).

Used by gBattleFx_EffectHandlers.

Line 159

Macros, without a comment: TORCH_FRAMES.

On this page