Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_spire.c

Spire. More…

Included by battle_effect.c.

Macros

NameDescription
#defineSPIRE_ROCK_WIDTH 34The boulder picture's width, the first in the sprite sheet.
#defineSPIRE_ROCK_HEIGHT 62The boulder picture's height.
#defineSPIRE_SHARD_PICTURES (SPIRE_ROCK_WIDTH * SPIRE_ROCK_HEIGHT)The shard pictures in the sprite sheet, after the boulder.
#defineSPIRE_SHARDS 21Shards per rock.
#defineSPIRE_SHARD_SHAPES 5The shard shapes, each drawn in SPIRE_SHARD_TUMBLE_PICTURES as it tumbles.
#defineSPIRE_SHARD_TUMBLE_PICTURES 3
#defineSPIRE_SHARD_TUMBLE_STEP 96How far a shard turns between its pictures; it turns by its spin (its z, from 32 slowing to 1) each tick.
#defineSPIRE_FALL_TICKS 18Ticks a boulder falls before it lands and strikes the targets.

Functions

NameDescription
voidbtEffectRunSpire (BATTLE_EFFECT_PARM *args)Boulders drop along the row of targets, centred on it, and shatter into tumbling shards, hitting every target as each lands.

Description

Spire. Part of battle_effect.c.

Macros in detail

SPIRE_ROCK_WIDTH

#define SPIRE_ROCK_WIDTH 34

The boulder picture's width, the first in the sprite sheet.

Referenced by btEffectRunSpire().

Definition at line 4 of file battle_effect_spire.c.

SPIRE_ROCK_HEIGHT

#define SPIRE_ROCK_HEIGHT 62

The boulder picture's height.

Referenced by btEffectRunSpire().

Definition at line 6 of file battle_effect_spire.c.

SPIRE_SHARD_PICTURES

#define SPIRE_SHARD_PICTURES (SPIRE_ROCK_WIDTH * SPIRE_ROCK_HEIGHT)

The shard pictures in the sprite sheet, after the boulder.

Referenced by btEffectRunSpire().

Definition at line 8 of file battle_effect_spire.c.

SPIRE_SHARDS

#define SPIRE_SHARDS 21

Shards per rock.

Referenced by btEffectRunSpire().

Definition at line 10 of file battle_effect_spire.c.

SPIRE_SHARD_SHAPES

#define SPIRE_SHARD_SHAPES 5

The shard shapes, each drawn in SPIRE_SHARD_TUMBLE_PICTURES as it tumbles.

Referenced by btEffectRunSpire().

Definition at line 12 of file battle_effect_spire.c.

SPIRE_SHARD_TUMBLE_PICTURES

#define SPIRE_SHARD_TUMBLE_PICTURES 3

Referenced by btEffectRunSpire().

Definition at line 13 of file battle_effect_spire.c.

SPIRE_SHARD_TUMBLE_STEP

#define SPIRE_SHARD_TUMBLE_STEP 96

How far a shard turns between its pictures; it turns by its spin (its z, from 32 slowing to 1) each tick.

Referenced by btEffectRunSpire().

Definition at line 16 of file battle_effect_spire.c.

SPIRE_FALL_TICKS

#define SPIRE_FALL_TICKS 18

Ticks a boulder falls before it lands and strikes the targets.

Referenced by btEffectRunSpire().

Definition at line 18 of file battle_effect_spire.c.

Functions in detail

btEffectRunSpire

void btEffectRunSpire(BATTLE_EFFECT_PARM *args)

Boulders drop along the row of targets, centred on it, and shatter into tumbling shards, hitting every target as each lands.

Abilities: Spire, Clay Spire, Stone Spire.

Spire
Spire
Clay Spire
Clay Spire
Stone Spire
Stone Spire

References btCameraShake(), btEffectTintBattler(), btParticleAdvanceWithGravity2D(), btProjectionScaledUnit(), btResourceLoadAndDecompress(), Sint32, SpireDropTicks, SpireRockCounts, SpireRockX, SpireShardHeights, SpireShardOffsets, SpireShardPictures, SpireShardWidths, state, syRandom(), sySoundPlayStub() and width.

Referenced by BattleEffectHandlers.

Definition at line 24 of file battle_effect_spire.c.