Skip to Content
The Alchemy Project

src/scene/shared/rock_spawn.c

Included by eastern_alhafra.c, prox.c and tundaria_tower.c.

Functions

NameDescription
voidscRockSpawn (Sint32 x, Sint32 y, Sint32 z, Sint32 count)Throws count rocks from a 16.16 point, as Burst breaks stone: each starts 8 to 16 pixels out at a random angle and flies up at 5 pixels a tick and out along that angle at 2 to 4.

Functions in detail

scRockSpawn

void scRockSpawn(Sint32 x, Sint32 y, Sint32 z, Sint32 count)

Throws count rocks from a 16.16 point, as Burst breaks stone: each starts 8 to 16 pixels out at a random angle and flies up at 5 pixels a tick and out along that angle at 2 to 4.

References scFieldVectorAddPolarOffsetFX(), Sint32 and syRandom().

Referenced by scEasternAlhafraBurstMastBlock() and scTundariaTowerBurstBrownWall().

Definition at line 4 of file rock_spawn.c.