src/scene/shared/floating_nut.c
Crossbone Isle, Kalay, Kolima Forest (SceneIdKolimaForestGlade), Lunpa, McCoy's palace garden, Mogall Forest and Vale: a Nut floating where it lies, until it is taken.
Included by crossbone_isle.c, kalay.c, kolima_forest_glade.c, lunpa.c, mccoy_palace_grounds.c, mogall_forest.c and vale.c.
Functions
| Name | Description | |
|---|---|---|
static Sint32 | scUpdateFloatingNut (ORBITING_MAP_ACTOR *nut) | The Nut's callback, each tick: it sways up to two pixels either side of its spot and dips up to two pixels below it, at a random pace. |
void | scFloatNut (Sint32 id) | Draws actor id as the Nut's icon and starts it floating, 32 pixels up unless the party returns to where it was. |
Description
Crossbone Isle, Kalay, Kolima Forest (SceneIdKolimaForestGlade), Lunpa,
McCoy's palace garden, Mogall Forest and Vale: a Nut floating where it lies,
until it is taken.
Functions in detail
scUpdateFloatingNut
static Sint32 scUpdateFloatingNut(ORBITING_MAP_ACTOR *nut)
The Nut's callback, each tick: it sways up to two pixels either side of its spot and dips up to two pixels below it, at a random pace.
References Sint32, syCos() and sySin().
Referenced by scFloatNut().
Definition at line 9 of file floating_nut.c.
scFloatNut
void scFloatNut(Sint32 id)
Draws actor id as the Nut's icon and starts it floating, 32 pixels up unless the party returns to where it was.
References fdActorGetById(), fdActorSetSpriteFlags(), glyph, gmFlagGet(), mnIconDrawItem(), scUpdateFloatingNut(), Sint32, syHeapSlotAllocate(), syHeapSlotRelease() and syVRAMCacheLoad().
Referenced by scInit(), scKalayPrepareTunnelEntrance() and scMcCoyPalaceGroundsRestoreStory().
Definition at line 26 of file floating_nut.c.