src/battle_effect/battle_effect_orbiting.c
Swirling stars, orbiting skulls and target bursts. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | SWIRLING_STARS_TICKS 160 | |
#define | SWIRLING_STARS_COUNT 64 | stars that swirl |
#define | SWIRLING_STARS_PLACED 256 | stars given a place, the first to swirl |
#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. |
#define | SWIRLING_STAR_DEPTH_NEAR 250 | |
#define | SWIRLING_STAR_DEPTH_FAR 634 | |
#define | SWIRLING_STAR_DEPTH_STEP 64 | |
#define | SWIRLING_STAR_SPIN (i) (((i) + 32) * 8) | The angle star i turns each tick about its axis: each later star faster. |
#define | TARGET_BURST_PICTURES (6 * PICTURE_BYTES(SMOKE_PUFF)) | The burst's six pictures in the sprite sheet, after the smoke's six. |
#define | TARGET_BURSTS_TICKS 96 |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunSwirlingStars (BATTLE_EFFECT_PARM *args) | Swirling stars: stars spin about a point above the field, each on its own axis, then are drawn back towards it. |
void | btEffectRunOrbitingSkulls (void) | Orbiting skulls: three skulls circle each target in turn. |
void | btEffectRunTargetBursts (BATTLE_EFFECT_PARM *args) | Target bursts: on each target in turn a burst flares while puffs of smoke scatter around it. |
Description
Swirling stars, orbiting skulls and target bursts. Part of battle_effect.c.
Macros in detail
SWIRLING_STARS_TICKS
#define SWIRLING_STARS_TICKS 160
Referenced by btEffectRunSwirlingStars().
Definition at line 6 of file battle_effect_orbiting.c.
SWIRLING_STARS_COUNT
#define SWIRLING_STARS_COUNT 64
stars that swirl
Referenced by btEffectRunSwirlingStars().
Definition at line 7 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 9 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 13 of file battle_effect_orbiting.c.
SWIRLING_STAR_DEPTH_NEAR
#define SWIRLING_STAR_DEPTH_NEAR 250
Referenced by btEffectRunSwirlingStars().
Definition at line 14 of file battle_effect_orbiting.c.
SWIRLING_STAR_DEPTH_FAR
#define SWIRLING_STAR_DEPTH_FAR 634
Referenced by btEffectRunSwirlingStars().
Definition at line 15 of file battle_effect_orbiting.c.
SWIRLING_STAR_DEPTH_STEP
#define SWIRLING_STAR_DEPTH_STEP 64
Referenced by btEffectRunSwirlingStars().
Definition at line 16 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 18 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 222 of file battle_effect_orbiting.c.
TARGET_BURSTS_TICKS
#define TARGET_BURSTS_TICKS 96
Referenced by btEffectRunTargetBursts().
Definition at line 224 of file battle_effect_orbiting.c.
Functions in detail
btEffectRunSwirlingStars
void btEffectRunSwirlingStars(BATTLE_EFFECT_PARM *args)
Swirling stars: stars spin about a point above the field, each on its own axis, then are drawn back towards it.
References BattleEffectMotePictures, btEffectBuildCanvasBlitters(), btEffectStartCanvasLayer(), btParticleAdvanceWithGravity3D(), btProjectionPoint(), btResourceLoadAndDecompress(), Sint32, state, syMatrixTranslateVector(), syPopMatrix(), syPushMatrix(), syRandom(), syRotX(), syRotY() and syRotZ().
Definition at line 22 of file battle_effect_orbiting.c.
btEffectRunOrbitingSkulls
void btEffectRunOrbitingSkulls(void)
Orbiting skulls: three skulls circle each target in turn.
References btEffectTransferCanvas(), btObjectGetStub(), btProjectionPoint(), btProjectionScaledUnit(), Sint32, state, syCos(), syDecompressTaggedLZ(), syResourceGetTableEntry(), sySetEvent(), sySin() and syWordsCopy().
Definition at line 116 of file battle_effect_orbiting.c.
btEffectRunTargetBursts
void btEffectRunTargetBursts(BATTLE_EFFECT_PARM *args)
Target bursts: on each target in turn a burst flares while puffs of smoke scatter around it.
References btEffectStartCanvasLayer(), btObjectGetStub(), btParticleAdvanceWithGravity3D(), btProjectionPoint(), btResourceLoadAndDecompress(), Sint32, state, syCos(), syMatrixTranslateVector(), syRandom(), syResourceGetTableEntry(), sySin() and syWordsCopy().
Definition at line 228 of file battle_effect_orbiting.c.