Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_quake.c

Quake. More…

Included by battle_effect.c.

Structures

NameDescription
structROCK_WALL_HEIGHTSThe peak heights of Quake's rock pillars; only the first three are drawn.

Macros

NameDescription
#defineQUAKE_PILLAR_WIDTH 40a pillar's width in pixels
#defineQUAKE_WALL_PICTURE 7680The rock picture in the sprite sheet; the sprite sheet starts with the 40x16 strip of ground cut from the background.
#defineQUAKE_GROUND_X 32The strip of ground that caps each pillar, cut from the battle background at (QUAKE_GROUND_X, QUAKE_GROUND_Y).
#defineQUAKE_GROUND_Y 96
#defineQUAKE_GROUND_HEIGHT 16
#defineQUAKE_PILLAR_X (pillar) ((pillar) * QUAKE_PILLAR_WIDTH + 8)A pillar's left edge on the canvas, and the canvas row it stands on.
#defineQUAKE_PILLAR_FOOT 112

Enumerations

NameDescription
enumanonymous enum { QUAKE_TIMING_TICKS, QUAKE_TIMING_RISE_TICKS, QUAKE_TIMING_SH … }The columns of a QuakeTimings row.

Functions

NameDescription
voidbtEffectRunQuake (BATTLE_EFFECT_PARM *args)Three rock pillars rise from the left, 4 ticks apart, and sink again, throwing the targets standing on them into the air.

Description

Quake. Part of battle_effect.c.

Macros in detail

QUAKE_PILLAR_WIDTH

#define QUAKE_PILLAR_WIDTH 40

a pillar's width in pixels

Referenced by btEffectRunQuake().

Definition at line 18 of file battle_effect_quake.c.

QUAKE_WALL_PICTURE

#define QUAKE_WALL_PICTURE 7680

The rock picture in the sprite sheet; the sprite sheet starts with the 40x16 strip of ground cut from the background.

Referenced by btEffectRunQuake().

Definition at line 21 of file battle_effect_quake.c.

QUAKE_GROUND_X

#define QUAKE_GROUND_X 32

The strip of ground that caps each pillar, cut from the battle background at (QUAKE_GROUND_X, QUAKE_GROUND_Y).

Referenced by btEffectRunQuake().

Definition at line 24 of file battle_effect_quake.c.

QUAKE_GROUND_Y

#define QUAKE_GROUND_Y 96

Referenced by btEffectRunQuake().

Definition at line 25 of file battle_effect_quake.c.

QUAKE_GROUND_HEIGHT

#define QUAKE_GROUND_HEIGHT 16

Referenced by btEffectRunQuake().

Definition at line 26 of file battle_effect_quake.c.

QUAKE_PILLAR_X

#define QUAKE_PILLAR_X(pillar) ((pillar) * QUAKE_PILLAR_WIDTH + 8)

A pillar's left edge on the canvas, and the canvas row it stands on.

Referenced by btEffectRunQuake().

Definition at line 28 of file battle_effect_quake.c.

QUAKE_PILLAR_FOOT

#define QUAKE_PILLAR_FOOT 112

Referenced by btEffectRunQuake().

Definition at line 29 of file battle_effect_quake.c.

Enumerations in detail

anonymous enum

enum { QUAKE_TIMING_TICKS, QUAKE_TIMING_RISE_TICKS, QUAKE_TIMING_SHAKE }

The columns of a QuakeTimings row.

EnumeratorValueDescription
QUAKE_TIMING_TICKSticks in the whole effect
QUAKE_TIMING_RISE_TICKSticks each pillar stands
QUAKE_TIMING_SHAKEhow far the screen shakes

Definition at line 4 of file battle_effect_quake.c.

Functions in detail

btEffectRunQuake

void btEffectRunQuake(BATTLE_EFFECT_PARM *args)

Three rock pillars rise from the left, 4 ticks apart, and sink again, throwing the targets standing on them into the air.

Abilities: Quake, Earthquake, Quake Sphere.

Quake
Quake
Earthquake
Earthquake
Quake Sphere
Quake Sphere

References btCameraShake(), btEffectStartCanvasLayer(), btEffectTintBattler(), btObjectGetStub(), btProjectionPoint(), btResourceLoadAndDecompress(), pixel, QuakeTimings, Sint32, state, sySin(), sySoundPlayStub() and syWordsCopy().

Referenced by BattleEffectHandlers.

Definition at line 35 of file battle_effect_quake.c.