Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_ray.c

Ray. More…

Included by battle_effect.c.

Macros

NameDescription
#defineRAY_TICKS 64ticks of the bolts' approach
#defineRAY_SPARK_COUNT PARTICLE_POOL_COUNTsparks in PARTICLES
#defineRAY_PICTURES
#defineRAY_COUNT 4bolts
#defineRAY_BOLT_TURN (TRIG_TURN / 32)The bolts turn a 32nd of a turn a tick, each a quarter turn more than the one before.
#defineRAY_WIDE_CANVAS_SHIFT 16The strongest variant shows the canvas twice as wide, scrolled this many canvas pixels toward the targets' side.
#defineRAY_PARTY_CANVAS_X 128Where the canvas is shown over targets on the party's side: from screen x 128.
#defineRAY_SPARKS_PER_BOLT 1The column of a RaySparks row that says how many sparks each bolt throws a tick; nothing reads the first.

Functions

NameDescription
voidbtEffectRunRay (BATTLE_EFFECT_PARM *args)Four bolts close in, turning towards the centre and scattering sparks from their roots.

Description

Ray. Part of battle_effect.c.

Macros in detail

RAY_TICKS

#define RAY_TICKS 64

ticks of the bolts' approach

Referenced by btEffectRunRay().

Definition at line 3 of file battle_effect_ray.c.

RAY_SPARK_COUNT

#define RAY_SPARK_COUNT PARTICLE_POOL_COUNT

sparks in PARTICLES

Referenced by btEffectRunRay().

Definition at line 5 of file battle_effect_ray.c.

RAY_PICTURES

#define RAY_PICTURES

Referenced by btEffectRunRay().

Definition at line 7 of file battle_effect_ray.c.

RAY_COUNT

#define RAY_COUNT 4

bolts

Referenced by btEffectRunRay().

Definition at line 10 of file battle_effect_ray.c.

RAY_BOLT_TURN

#define RAY_BOLT_TURN (TRIG_TURN / 32)

The bolts turn a 32nd of a turn a tick, each a quarter turn more than the one before.

Referenced by btEffectRunRay().

Definition at line 14 of file battle_effect_ray.c.

RAY_WIDE_CANVAS_SHIFT

#define RAY_WIDE_CANVAS_SHIFT 16

The strongest variant shows the canvas twice as wide, scrolled this many canvas pixels toward the targets' side.

Referenced by btEffectRunRay().

Definition at line 17 of file battle_effect_ray.c.

RAY_PARTY_CANVAS_X

#define RAY_PARTY_CANVAS_X 128

Where the canvas is shown over targets on the party's side: from screen x 128.

Referenced by btEffectRunRay().

Definition at line 20 of file battle_effect_ray.c.

RAY_SPARKS_PER_BOLT

#define RAY_SPARKS_PER_BOLT 1

The column of a RaySparks row that says how many sparks each bolt throws a tick; nothing reads the first.

Referenced by btEffectRunRay().

Definition at line 23 of file battle_effect_ray.c.

Functions in detail

btEffectRunRay

void btEffectRunRay(BATTLE_EFFECT_PARM *args)

Four bolts close in, turning towards the centre and scattering sparks from their roots.

Abilities: Ray, Storm Ray, Destruct Ray.

Ray
Ray
Storm Ray
Storm Ray
Destruct Ray
Destruct Ray

References btCameraShake(), btEffectStartTiledCanvas(), btEffectTintBattler(), btParticleAdvanceWithGravity2D(), btResourceLoadAndDecompress(), RaySparks, Sint32, state, syCos(), syRandom(), sySin(), sySoundPlayStub() and syWordsFill().

Referenced by BattleEffectHandlers.

Definition at line 29 of file battle_effect_ray.c.