src/battle_effect/battle_effect_quake.c
Quake. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | QUAKE_PILLARS 3 | The pillars stand side by side from QUAKE_PILLARS_LEFT on the canvas, each rising from the ground line QUAKE_GROUND_Y and capped with a strip of the background's ground QUAKE_STRIP_HEIGHT high. |
#define | QUAKE_PILLAR_WIDTH 40 | |
#define | QUAKE_PILLARS_LEFT 8 | |
#define | QUAKE_GROUND_Y 112 | |
#define | QUAKE_STRIP_HEIGHT 16 | |
#define | QUAKE_WALL_PICTURE 7680 | The rock picture in the sheet; the sheet starts with the strip of ground. |
#define | BACKGROUND_PIXEL_OFFSET (x, y) | The byte of pixel (x, y) in the battle background's tiles, laid out 32 to a row in 256 colours. |
Functions
| Name | Description | |
|---|---|---|
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. |
Description
Quake. Part of battle_effect.c.
Macros in detail
QUAKE_PILLARS
#define QUAKE_PILLARS 3
The pillars stand side by side from QUAKE_PILLARS_LEFT on the canvas, each
rising from the ground line QUAKE_GROUND_Y and capped with a strip of the
background's ground QUAKE_STRIP_HEIGHT high.
Referenced by btEffectRunQuake().
Definition at line 6 of file battle_effect_quake.c.
QUAKE_PILLAR_WIDTH
#define QUAKE_PILLAR_WIDTH 40
Referenced by btEffectRunQuake().
Definition at line 7 of file battle_effect_quake.c.
QUAKE_PILLARS_LEFT
#define QUAKE_PILLARS_LEFT 8
Referenced by btEffectRunQuake().
Definition at line 8 of file battle_effect_quake.c.
QUAKE_GROUND_Y
#define QUAKE_GROUND_Y 112
Referenced by btEffectRunQuake().
Definition at line 9 of file battle_effect_quake.c.
QUAKE_STRIP_HEIGHT
#define QUAKE_STRIP_HEIGHT 16
Referenced by btEffectRunQuake().
Definition at line 10 of file battle_effect_quake.c.
QUAKE_WALL_PICTURE
#define QUAKE_WALL_PICTURE 7680
The rock picture in the sheet; the sheet starts with the strip of ground.
Referenced by btEffectRunQuake().
Definition at line 12 of file battle_effect_quake.c.
BACKGROUND_PIXEL_OFFSET
#define BACKGROUND_PIXEL_OFFSET(x, y)
The byte of pixel (x, y) in the battle background's tiles, laid out 32 to a row in 256 colours.
Referenced by btEffectRunQuake().
Definition at line 16 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.
References btCameraShake(), btEffectPosProjectPoint(), btEffectTintBattler(), btObjectGetStub(), btResourceLoadAndDecompress(), QuakeTimings, RockWallHeights, Sint32, sySin(), sySoundPlayStub() and syWordsCopy().
Referenced by BattleEffectHandlers.
Definition at line 23 of file battle_effect_quake.c.