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. | |
Ray.
Part of effect.c, the battle effect object, compiled only through it.
Definition in file ray.c.
| #define RAY_SPARK_COUNT 1024 |
| #define RAY_CELLS 0x60e |
| #define RAY_COUNT 4 |
| 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().