Alchemy
Loading...
Searching...
No Matches

ray.c File Reference

Ray. More...

Go to the source code of this file.

Macros

#define RAY_SPARK_COUNT   1024
 sparks in PARTICLES
#define RAY_CELLS   0x60e
 the bolt pictures in the sheet
#define RAY_COUNT   4
 bolts

Functions

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.

Detailed Description

Ray.

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

Definition in file ray.c.

Macro Definition Documentation

◆ RAY_SPARK_COUNT

#define RAY_SPARK_COUNT   1024

sparks in PARTICLES

Definition at line 7 of file ray.c.

Referenced by BattleFx_RunRay().

◆ RAY_CELLS

#define RAY_CELLS   0x60e

the bolt pictures in the sheet

Definition at line 9 of file ray.c.

Referenced by BattleFx_RunRay().

◆ RAY_COUNT

#define RAY_COUNT   4

bolts

Definition at line 10 of file ray.c.

Referenced by BattleFx_RunRay().

Function Documentation

◆ 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).

Definition at line 26 of file ray.c.

Referenced by BattleFx_RunRay().