include/scene/falling_rocks.h
Falling rocks and particles: the effects Prox, Magma Rock, Eastern Alhafra and Tundaria Tower each keep a copy of the code for.
#include "fixed_math.h"#include "types.h"#include "static_assert.h"#include "field/effect_sprite.h"#include "field/particle.h"
Included by psynergy_test_2.c, eastern_alhafra.c, magma_rock.c, magma_rock_inside.c, prox.c and tundaria_tower.c.
Structures
| Name | Description | |
|---|---|---|
struct | ROCK | One falling rock: where it is, how it moves and how long it has fallen. |
struct | ROCK_STATE | The falling rocks' state, in the menu state's heap slot: their tiles, the rocks and their sprites, in a ring that next walks round, the first sprite tile their tiles were loaded to and the VRAM cache entry holding them. |
struct | PARTICLE_SPR | A falling particle's sprite: EFFECT_SPR with OAM attribute 2 read whole, as the particles change its tile. |
struct | PARTICLE_STATE | The falling particles' state, in the menu state's heap slot: their tiles, 64 particles and their sprites, the next particle to start and the first sprite tile their tiles were loaded to. |
Macros
| Name | Description | |
|---|---|---|
#define | ROCK_COUNT 64 | The falling rocks in flight at once, the ring a scene's rock state keeps. |
#define | ROCK_SHEET_BYTES 1280 | The falling rock's pictures, decompressed, in bytes. |
Description
Falling rocks and particles: the effects Prox, Magma Rock, Eastern Alhafra and Tundaria Tower each keep a copy of the code for.
Macros in detail
ROCK_COUNT
#define ROCK_COUNT 64
The falling rocks in flight at once, the ring a scene's rock state keeps.
Referenced by dbPsynergyTest2SpawnRocks(), dbPsynergyTest2StartRocks(), dbPsynergyTest2UpdateRocks(), scEasternAlhafraStartFallingRocks(), scMagmaRockDropRocks(), scMagmaRockInsideDropRocks(), scMagmaRockInsideStartFallingRocks(), scMagmaRockStartFallingRocks() and scTundariaTowerStartFallingRocks().
Definition at line 14 of file falling_rocks.h.
ROCK_SHEET_BYTES
#define ROCK_SHEET_BYTES 1280
The falling rock's pictures, decompressed, in bytes.
Referenced by dbPsynergyTest2StartRocks().
Definition at line 16 of file falling_rocks.h.