Alchemy
Loading...
Searching...
No Matches

spire.c File Reference

Spire. More...

Go to the source code of this file.

Macros

#define SPIRE_ROCK_WIDTH   34
 the boulder picture, the first in the sheet
#define SPIRE_ROCK_HEIGHT   62
 the boulder picture's height
#define SPIRE_SHARD_CELLS   (SPIRE_ROCK_WIDTH * SPIRE_ROCK_HEIGHT)
 The shard pictures in the sheet, after the boulder.
#define SPIRE_SHARDS   21
 shards per rock
#define SPIRE_FALL_FRAMES   18
 Frames a boulder falls, from its drop frame (gSpire_DropFrames) until it lands, shakes the screen and strikes the targets.

Functions

void BattleFx_RunSpire (struct BattleEffectArgument *effect)
 Shattering rocks: boulders drop along the row of targets, centred on it, and burst into tumbling shards, hitting every target as each lands.

Detailed Description

Spire.

Part of effect.c, the battle effect object, compiled only through it.

Definition in file spire.c.

Macro Definition Documentation

◆ SPIRE_ROCK_WIDTH

#define SPIRE_ROCK_WIDTH   34

the boulder picture, the first in the sheet

Definition at line 7 of file spire.c.

Referenced by BattleFx_RunSpire().

◆ SPIRE_ROCK_HEIGHT

#define SPIRE_ROCK_HEIGHT   62

the boulder picture's height

Definition at line 8 of file spire.c.

Referenced by BattleFx_RunSpire().

◆ SPIRE_SHARD_CELLS

#define SPIRE_SHARD_CELLS   (SPIRE_ROCK_WIDTH * SPIRE_ROCK_HEIGHT)

The shard pictures in the sheet, after the boulder.

Definition at line 10 of file spire.c.

Referenced by BattleFx_RunSpire().

◆ SPIRE_SHARDS

#define SPIRE_SHARDS   21

shards per rock

Definition at line 11 of file spire.c.

Referenced by BattleFx_RunSpire().

◆ SPIRE_FALL_FRAMES

#define SPIRE_FALL_FRAMES   18

Frames a boulder falls, from its drop frame (gSpire_DropFrames) until it lands, shakes the screen and strikes the targets.

Definition at line 14 of file spire.c.

Referenced by BattleFx_RunSpire().

Function Documentation

◆ BattleFx_RunSpire()

void BattleFx_RunSpire ( struct BattleEffectArgument * effect)

Shattering rocks: boulders drop along the row of targets, centred on it, and burst into tumbling shards, hitting every target as each lands.

Abilities: Spire, Clay Spire, Stone Spire (kind 2).

effect: the targets; its variant picks the number of boulders (gSpire_RockCounts).

Definition at line 23 of file spire.c.

Referenced by BattleFx_RunSpire().