Quake. More...
Go to the source code of this file.
Data Structures | |
| struct | RockWallHeights |
| The heights of Quake's rock pillars. More... | |
Macros | |
| #define | QUAKE_PILLAR_WIDTH 40 |
| a pillar's width in pixels | |
| #define | QUAKE_WALL_CELLS 0x1e00 |
| The rock picture in the sheet; the sheet starts with the 40x16 strip of ground cut from the background. | |
Enumerations | |
| enum | { QUAKE_TIMING_FRAMES , QUAKE_TIMING_RISE_FRAMES , QUAKE_TIMING_SHAKE } |
| The columns of a gQuake_Timings row. More... | |
Functions | |
| void | BattleFx_RunQuake (struct BattleEffectArgument *effect) |
| Rock wall: three rock pillars rise from the left, 4 frames apart, and sink again, throwing the targets standing on them into the air. | |
Quake.
Part of effect.c, the battle effect object, compiled only through it.
Definition in file quake.c.
| #define QUAKE_PILLAR_WIDTH 40 |
a pillar's width in pixels
Definition at line 19 of file quake.c.
Referenced by BattleFx_RunQuake().
| #define QUAKE_WALL_CELLS 0x1e00 |
The rock picture in the sheet; the sheet starts with the 40x16 strip of ground cut from the background.
Definition at line 22 of file quake.c.
Referenced by BattleFx_RunQuake().
| anonymous enum |
| void BattleFx_RunQuake | ( | struct BattleEffectArgument * | effect | ) |
Rock wall: three rock pillars rise from the left, 4 frames apart, and sink again, throwing the targets standing on them into the air.
Abilities: Quake, Earthquake, Quake Sphere (kind 1).
Each pillar is capped with a strip of ground cut from the background.
Writes REG_BG2PA, REG_BLDCNT and, on side 1, REG_BG2X; overwrites the first 0x8000 bytes of Ram_MapCellBuffer with BG tiles; sets the targets' vertical velocity and gravity; arms work->shakeFrames. Ends with the transfer callback removed, the blitter freed and the canvas layer closed.
effect: the targets; variant picks the row of gQuake_Timings.
Definition at line 37 of file quake.c.
Referenced by BattleFx_RunQuake().