Alchemy

ray.c

Ray.

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

Ray. Part of effect.c, the battle effect object, compiled only through it.

Functions

BattleFx_RunRay

void BattleFx_RunRay(struct BattleEffectArgument *effect)

Closing bolts: four bolts turn in towards the centre for 16 frames, scattering sparks from their roots; the sparks fly on until frame 64.

Abilities: Ray, Storm Ray, Destruct Ray (kind 17).

The targets flash white 4 frames apart from frame 4. Writes REG_BG2PA and REG_BG2X, sets work->shakeFrames over the first 16 frames, and ends with the transfer callback removed, the blitters freed and the canvas layer closed.

effect: the targets. variant 2 shows the canvas at double width;
        variant 0 draws every bolt with the maximum blend, the others
        alternate it with additive. The variant also sets the sparks
        each bolt throws a frame (gRay_Sparks).

Used by gBattleFx_EffectHandlers.

Line 26

Macros, without a comment: RAY_SPARK_COUNT, RAY_CELLS, RAY_COUNT.

On this page