Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_stars.c

Astral Blast and Shining Star. More…

Included by battle_effect.c.

Macros

NameDescription
#defineSHINING_STAR_TICKS 128ticks of Shining Star
#defineASTRAL_BLAST_TICKS 60ticks of Astral Blast
#defineASTRAL_BLAST_STARS 3
#defineSHINING_STARS 8
#defineSTAR_CORNERS 10A star outline's corners, its five points and the five between, and the turn from one to the next, a tenth of a turn rounded up.
#defineSTAR_CORNER_ANGLE ((TRIG_TURN + STAR_CORNERS - 1) / STAR_CORNERS)
#defineASTRAL_BLAST_TURN_SPEED 128How fast the camera swings round, slowing from tick 40 to a stop.
#defineASTRAL_BLAST_STAR_INTERVAL 12A new star leaves every 12 ticks, spinning a 64th of a turn a tick.
#defineASTRAL_BLAST_SPIN (TRIG_TURN / 64)
#defineASTRAL_BLAST_DEPTH_MAX 399999A star is drawn only while its farthest corner is no deeper than this.
#defineASTRAL_BLAST_EDGE_MOTES 16The motes stamped along each edge of a star.
#defineSHINING_STAR_EDGE_MOTES 12
#defineSHINING_STAR_SPIN (TRIG_TURN / 32)How far a Shining Star turns each tick, a 32nd of a turn.

Functions

NameDescription
voidbtEffectRunAstralBlast (BATTLE_EFFECT_PARM *args)Three pink stars of light fly from above the user at the first target, growing and spinning, while the camera swings round; each knocks the target back.
voidbtEffectRunShiningStar (BATTLE_EFFECT_PARM *args)Eight spinning star outlines fall from above the user and bounce on the ground near the first target, each bounce flashing the targets.

Description

Astral Blast and Shining Star. Part of battle_effect.c.

Macros in detail

SHINING_STAR_TICKS

#define SHINING_STAR_TICKS 128

ticks of Shining Star

Referenced by btEffectRunShiningStar().

Definition at line 3 of file battle_effect_stars.c.

ASTRAL_BLAST_TICKS

#define ASTRAL_BLAST_TICKS 60

ticks of Astral Blast

Referenced by btEffectRunAstralBlast().

Definition at line 4 of file battle_effect_stars.c.

ASTRAL_BLAST_STARS

#define ASTRAL_BLAST_STARS 3

Referenced by btEffectRunAstralBlast().

Definition at line 5 of file battle_effect_stars.c.

SHINING_STARS

#define SHINING_STARS 8

Referenced by btEffectRunShiningStar().

Definition at line 6 of file battle_effect_stars.c.

STAR_CORNERS

#define STAR_CORNERS 10

A star outline's corners, its five points and the five between, and the turn from one to the next, a tenth of a turn rounded up.

Referenced by btEffectRunAstralBlast() and btEffectRunShiningStar().

Definition at line 14 of file battle_effect_stars.c.

STAR_CORNER_ANGLE

#define STAR_CORNER_ANGLE ((TRIG_TURN + STAR_CORNERS - 1) / STAR_CORNERS)

Referenced by btEffectRunAstralBlast() and btEffectRunShiningStar().

Definition at line 15 of file battle_effect_stars.c.

ASTRAL_BLAST_TURN_SPEED

#define ASTRAL_BLAST_TURN_SPEED 128

How fast the camera swings round, slowing from tick 40 to a stop.

Referenced by btEffectRunAstralBlast().

Definition at line 18 of file battle_effect_stars.c.

ASTRAL_BLAST_STAR_INTERVAL

#define ASTRAL_BLAST_STAR_INTERVAL 12

A new star leaves every 12 ticks, spinning a 64th of a turn a tick.

Referenced by btEffectRunAstralBlast().

Definition at line 20 of file battle_effect_stars.c.

ASTRAL_BLAST_SPIN

#define ASTRAL_BLAST_SPIN (TRIG_TURN / 64)

Referenced by btEffectRunAstralBlast().

Definition at line 21 of file battle_effect_stars.c.

ASTRAL_BLAST_DEPTH_MAX

#define ASTRAL_BLAST_DEPTH_MAX 399999

A star is drawn only while its farthest corner is no deeper than this.

Referenced by btEffectRunAstralBlast().

Definition at line 23 of file battle_effect_stars.c.

ASTRAL_BLAST_EDGE_MOTES

#define ASTRAL_BLAST_EDGE_MOTES 16

The motes stamped along each edge of a star.

Referenced by btEffectRunAstralBlast().

Definition at line 25 of file battle_effect_stars.c.

SHINING_STAR_EDGE_MOTES

#define SHINING_STAR_EDGE_MOTES 12

Referenced by btEffectRunShiningStar().

Definition at line 26 of file battle_effect_stars.c.

SHINING_STAR_SPIN

#define SHINING_STAR_SPIN (TRIG_TURN / 32)

How far a Shining Star turns each tick, a 32nd of a turn.

Referenced by btEffectRunShiningStar().

Definition at line 28 of file battle_effect_stars.c.

Functions in detail

btEffectRunAstralBlast

void btEffectRunAstralBlast(BATTLE_EFFECT_PARM *args)

Three pink stars of light fly from above the user at the first target, growing and spinning, while the camera swings round; each knocks the target back.

Abilities: Astral Blast.

Astral Blast
Astral Blast

References btCameraShake(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btObjectGetStub(), btParticleCoordinates(), btProjectionPoint(), fdActorSelectAnimationStub(), fdActorSetAnimationSpeedStub(), fdActorSetMoveTargetStub(), fdActorStartIdleStub(), Sint32, StarPoints, state, syDecompressTaggedLZ(), syMatrixScaleVector(), syMatrixTranslateVector(), syPopMatrix(), syPushMatrix(), syResourceGetTableEntry(), syRotY(), syRotZ(), sySetEvent(), sySoundPlayStub(), syVector3Coordinates() and syWordsCopy().

Referenced by BattleEffectHandlers.

Definition at line 35 of file battle_effect_stars.c.

btEffectRunShiningStar

void btEffectRunShiningStar(BATTLE_EFFECT_PARM *args)

Eight spinning star outlines fall from above the user and bounce on the ground near the first target, each bounce flashing the targets.

Abilities: Shining Star.

References btCameraShake(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btEffectUpdatePhasePalette(), btObjectGetStub(), btProjectionPoint(), Sint32, StarRadii, state, syCos(), syDecompressTaggedLZ(), syRandom(), syResourceGetTableEntry(), sySetEvent(), sySin(), sySoundPlayStub() and syWordsCopy().

Referenced by BattleEffectHandlers.

Definition at line 234 of file battle_effect_stars.c.