Skip to Content
The Alchemy Project

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.

Included by psynergy_test_2.c, eastern_alhafra.c, magma_rock.c, magma_rock_inside.c, prox.c and tundaria_tower.c.

Structures

NameDescription
structROCKOne falling rock: where it is, how it moves and how long it has fallen.
structROCK_STATEThe 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.
structPARTICLE_SPRA falling particle's sprite: EFFECT_SPR with OAM attribute 2 read whole, as the particles change its tile.
structPARTICLE_STATEThe 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

NameDescription
#defineROCK_COUNT 64The falling rocks in flight at once, the ring a scene's rock state keeps.
#defineROCK_SHEET_BYTES 1280The 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.