Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_orbiting.c

Swirling stars and target bursts, two effects no table names and nothing in the game reaches. More…

Included by battle_effect.c.

Macros

NameDescription
#defineSWIRLING_STARS_TICKS 160
#defineSWIRLING_STARS_COUNT 64stars that swirl
#defineSWIRLING_STARS_PLACED 256stars given a place, the first to swirl
#defineSWIRLING_STAR_LARGEST 9A star is drawn SWIRLING_STAR_LARGEST pixels wide (and twice as tall) at the nearest depth, a pixel narrower for every SWIRLING_STAR_DEPTH_STEP farther, its depth clamped from SWIRLING_STAR_DEPTH_NEAR to SWIRLING_STAR_DEPTH_FAR.
#defineSWIRLING_STAR_DEPTH_NEAR 250
#defineSWIRLING_STAR_DEPTH_FAR 634
#defineSWIRLING_STAR_DEPTH_STEP 64
#defineSWIRLING_STAR_SPIN (i) (((i) + 32) * 8)The angle star i turns each tick about its axis: each later star faster.
#defineTARGET_BURST_PICTURES (6 * PICTURE_BYTES(SMOKE_PUFF))The burst's six pictures in the sprite sheet, after the smoke's six.
#defineTARGET_BURSTS_TICKS 96

Functions

NameDescription
voidbtEffectRunSwirlingStars (BATTLE_EFFECT_PARM *args)Unused: nothing calls it.
voidbtEffectRunTargetBursts (BATTLE_EFFECT_PARM *args)Unused: nothing calls it.

Description

Swirling stars and target bursts, two effects no table names and nothing in the game reaches. Part of battle_effect.c.

Macros in detail

SWIRLING_STARS_TICKS

#define SWIRLING_STARS_TICKS 160

Referenced by btEffectRunSwirlingStars().

Definition at line 4 of file battle_effect_orbiting.c.

SWIRLING_STARS_COUNT

#define SWIRLING_STARS_COUNT 64

stars that swirl

Referenced by btEffectRunSwirlingStars().

Definition at line 5 of file battle_effect_orbiting.c.

SWIRLING_STARS_PLACED

#define SWIRLING_STARS_PLACED 256

stars given a place, the first to swirl

Referenced by btEffectRunSwirlingStars().

Definition at line 7 of file battle_effect_orbiting.c.

SWIRLING_STAR_LARGEST

#define SWIRLING_STAR_LARGEST 9

A star is drawn SWIRLING_STAR_LARGEST pixels wide (and twice as tall) at the nearest depth, a pixel narrower for every SWIRLING_STAR_DEPTH_STEP farther, its depth clamped from SWIRLING_STAR_DEPTH_NEAR to SWIRLING_STAR_DEPTH_FAR.

Referenced by btEffectRunSwirlingStars().

Definition at line 11 of file battle_effect_orbiting.c.

SWIRLING_STAR_DEPTH_NEAR

#define SWIRLING_STAR_DEPTH_NEAR 250

Referenced by btEffectRunSwirlingStars().

Definition at line 12 of file battle_effect_orbiting.c.

SWIRLING_STAR_DEPTH_FAR

#define SWIRLING_STAR_DEPTH_FAR 634

Referenced by btEffectRunSwirlingStars().

Definition at line 13 of file battle_effect_orbiting.c.

SWIRLING_STAR_DEPTH_STEP

#define SWIRLING_STAR_DEPTH_STEP 64

Referenced by btEffectRunSwirlingStars().

Definition at line 14 of file battle_effect_orbiting.c.

SWIRLING_STAR_SPIN

#define SWIRLING_STAR_SPIN(i) (((i) + 32) * 8)

The angle star i turns each tick about its axis: each later star faster.

Referenced by btEffectRunSwirlingStars().

Definition at line 16 of file battle_effect_orbiting.c.

TARGET_BURST_PICTURES

#define TARGET_BURST_PICTURES (6 * PICTURE_BYTES(SMOKE_PUFF))

The burst's six pictures in the sprite sheet, after the smoke's six.

Referenced by btEffectRunTargetBursts().

Definition at line 109 of file battle_effect_orbiting.c.

TARGET_BURSTS_TICKS

#define TARGET_BURSTS_TICKS 96

Referenced by btEffectRunTargetBursts().

Definition at line 111 of file battle_effect_orbiting.c.

Functions in detail

btEffectRunSwirlingStars

void btEffectRunSwirlingStars(BATTLE_EFFECT_PARM *args)

Unused: nothing calls it. Stars spin about a point above the field, each on its own axis, then are drawn back towards it.

References BattleEffectMotePictures, btEffectBuildCanvasBlitters(), btEffectPosProjectPoint(), btEffectStartCanvasLayer(), btParticleAdvanceWithGravity3D(), btResourceLoadAndDecompress(), Sint32, syMatrixTranslateVector(), syPopMatrix(), syPushMatrix(), syRandom(), syRotX(), syRotY() and syRotZ().

Definition at line 20 of file battle_effect_orbiting.c.

btEffectRunTargetBursts

void btEffectRunTargetBursts(BATTLE_EFFECT_PARM *args)

Unused: nothing calls it. On each target in turn a burst flares while puffs of smoke scatter around it.

References btEffectPosProjectPoint(), btEffectStartCanvasLayer(), btObjectGetStub(), btParticleAdvanceWithGravity3D(), btResourceLoadAndDecompress(), Sint32, syCos(), syMatrixTranslateVector(), syRandom(), syResourceGetTableEntry() and sySin().

Definition at line 115 of file battle_effect_orbiting.c.