Skip to Content
The Alchemy Project

src/scene/shared/ice_chips_spawn.c

Included by mars_lighthouse_entrance.c, mars_lighthouse_hall.c, mars_lighthouse_star_room.c and mars_lighthouse_towers.c.

Functions

NameDescription
voidscIceChipsSpawn (Sint32 x, Sint32 y, Sint32 z, Sint32 speed)Two chips of ice fly up from a metatile the rolling fireball breaks and bounce away for 20 ticks, then flicker 20 more and are gone (IceChipsScript): SPRITE_WIND_STONE's picture of glowing orbs, painted SPRITE_COLOR_GRB, so pale cyan and blue.

Functions in detail

scIceChipsSpawn

void scIceChipsSpawn(Sint32 x, Sint32 y, Sint32 z, Sint32 speed)

Two chips of ice fly up from a metatile the rolling fireball breaks and bounce away for 20 ticks, then flicker 20 more and are gone (IceChipsScript): SPRITE_WIND_STONE's picture of glowing orbs, painted SPRITE_COLOR_GRB, so pale cyan and blue. speed tips their throw; the fireball passes its facing.

References fdActorSetSpriteColorMode(), fdActorSetSpriteFlags(), fdActorStartScript(), IceChipsScript, scFieldActorCreate(), Sint32, syCos(), syRandom() and sySin().

Referenced by scActorRollAndCrumble().

Definition at line 5 of file ice_chips_spawn.c.