src/scene/bilibin_cave.c
The Bilibin Cave Entrance and Bilibin Cave are two areas between Bilibin and Imil that share this overlay. More…
#include "ability_ids.h"#include "flags.h"#include "item_ids.h"#include "battle/battle.h"#include "debug/debug.h"#include "field/actor_script.h"#include "field/script.h"#include "field/map_grid.h"#include "scene/pushed_actor.h"#include "graphics/graphics.h"#include "game/system_call.h"#include "shared/actor_find_at_metatile.c"#include "shared/pushed_actor_direction_steps.c"
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_BILIBIN_CAVE_THIRD_PUDDLE_MELTED FLAG_AREA_TEMP(0x02) | In Bilibin Cave's ice room, a movable torch has melted the third puddle's ice pillar. |
#define | FLAG_BILIBIN_CAVE_THIRD_TORCH_BY_PILLAR FLAG_AREA_TEMP(0x03) | In Bilibin Cave's ice room, the third torch stands beside the third puddle's ice pillar. |
#define | FLAG_BILIBIN_CAVE_FOURTH_TORCH_BY_PILLAR FLAG_AREA_TEMP(0x04) | In Bilibin Cave's ice room, the fourth torch stands beside the third puddle's ice pillar. |
#define | FLAG_BILIBIN_CAVE_ENTRANCE_SPROUT_GROWN FLAG_AREA_TEMP(0x05) | At the Bilibin Cave Entrance, Growth has grown the sprout into a vine. |
#define | LOW_MOUTH_OPEN_METATILE 0, 0 | Spare metatiles near the top-left corner of the entrance's and the ice room's maps, whose behaviors are copied where the low mouth, the vine and the puddles change, as (column, row). |
#define | LOW_MOUTH_CLOSED_METATILE 1, 0 | plain ground on the cliff-top path |
#define | VINE_METATILE 31, 0 | a vine to climb |
#define | FIRST_PILLAR_METATILE 0, 0 | a hop square on the ice pillar's top |
#define | THIRD_PUDDLE_NORTH_HOP_METATILE 0, 1 | hop squares beside the puddle |
#define | THIRD_PUDDLE_SOUTH_HOP_METATILE 0, 2 | |
#define | THIRD_PUDDLE_NORTH_GROUND_METATILE | |
#define | THIRD_PUDDLE_SOUTH_GROUND_METATILE 1, 2 | |
#define | TORCH_BY_PILLAR_COLUMN 35 | The metatile beside the third puddle's ice pillar where a torch melts it. |
#define | TORCH_BY_PILLAR_ROW 23 |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { ACTOR_SPROUT } | Actors of the Bilibin Cave Entrance (SceneIdBilibinCaveEntrance). |
enum | anonymous enum { ACTOR_RAPIER_ROOM_WEST_TORCH, ACTOR_RAPIER_ROOM_FIRE, ACTOR_ … } | Actors of SceneIdBilibinCaveRapier, numbered by the rows of BilibinCaveRapierActorPlacements. |
enum | anonymous enum { ACTOR_ICE_ROOM_FIRE, ACTOR_FIRST_TORCH, ACTOR_THIRD_TORCH, A … } | Actors of SceneIdBilibinCaveIce, numbered by the rows of BilibinCaveIceActorPlacements. |
enum | anonymous enum { FIRE_ANIMATION_BURNING } | SPRITE_FIRE's flickering flame. |
enum | BILIBIN_CAVE_METATILE_BEHAVIOR { METATILE_BEHAVIOR_BILIBIN_CAVE_ABOVE_LOW_MOUTH, METATILE_BEH … } | Metatile behaviors the three maps' cues answer besides the exits. |
Functions
| Name | Description | |
|---|---|---|
static void | scBilibinCaveRestoreEntrance (void) | Sets up the Bilibin Cave Entrance, with the vine Growth has grown and its metatile. |
static void | scBilibinCaveRestoreRapierRoom (void) | Sets up Bilibin Cave's SceneIdBilibinCaveRapier. |
static void | scBilibinCaveRestoreIceRoom (void) | Sets up Bilibin Cave's SceneIdBilibinCaveIce. |
static void | scBilibinCaveEmptyActorSetupHook (Sint32 actorId) | Does nothing: the ice room calls it for each of its torches and pieces of ice. |
static Sint32 | scBilibinCaveHideScriptedShadow (ACTOR *actor) | A script command that draws the puddle it runs on without a shadow. |
const SCENE_ENTRANCE * | scGetEntrances (void) | The six rooms share one entrance table. |
const SCENE_EXIT_REGION * | scGetExitRegions (void) | The scene has no exit regions: its regions entry returns none. |
const Uint32 * | scGetExits (void) | Both scenes share one exit table. |
const ACTOR_PLACE * | scGetActorPlacements (void) | Some villagers only turn back after talking once the flood is over or their family has gone home. |
const CUE * | scGetCues (void) | The first water beast's cave changes its cues once the first drain has lowered its water: the beast is gone and its two puddles can be frozen. |
static void | scBilibinCaveCloseLowerCaveMouth (void) | Nothing visible happens when Isaac, on the grassy path along the cliff top from the vine toward the high cave mouth at the Bilibin Cave Entrance, steps onto the stretch drawn just above the low mouth, metatiles (20, 13..14) and (22, 13..14). |
static void | scBilibinCaveOpenLowerCaveMouth (void) | Nothing visible happens when Isaac walks on along the cliff-top path past that stretch at the Bilibin Cave Entrance, metatiles (19, 12..13) and (23, 12..13). |
static void | scBilibinCaveRevealHiddenPath (void) | Reveal in Bilibin Cave, near the Elven Rapier's chest, shows a way through the wall beside it, metatiles (32, 24..26), to the room where a little fire burns between two torches. |
static void | scBilibinCaveHideRevealedPath (void) | As Reveal wears off in Bilibin Cave, the way through the wall beside the Elven Rapier's chest is hidden again. |
static void | scBilibinCaveDouseRapierRoomFire (void) | Douse on the little fire in the doorway of the room of two torches, past the way Reveal shows beside the Elven Rapier's chest, puts it out for good. |
static void | scBilibinCaveDouseIceRoomFire (void) | Douse on the little fire in the cold part of Bilibin Cave (metatile (17, 14)) puts it out, and the puddle beside it freezes by itself into a tall ice pillar, whose top the party hops across. |
static inline void | scBilibinCaveMeltFrostBack (Sint32 actorId) | Frost on a puddle in Bilibin Cave that a fire or torch beside it keeps warm forms ice on it for a moment, which melts straight back into water. |
static void | scBilibinCaveFreezeFirstPuddle (void) | Frost on the puddle beside the little fire in the cold part of Bilibin Cave (metatile (18, 14)), while the fire burns, makes ice that melts straight back. |
static void | scBilibinCaveFreezeSecondPuddle (void) | Frost on the puddle beside the lit torch near the Vial's chest in the cold part of Bilibin Cave makes ice that melts straight back. |
static void | scBilibinCaveFreezeThirdPuddle (void) | Frost on the puddle a pushed torch has melted, at metatile (36, 23) in the cold part of Bilibin Cave, makes ice that melts straight back while the torch stands beside it (FLAG_BILIBIN_CAVE_THIRD_PUDDLE_MELTED). |
static void | scBilibinCaveUpdateThirdPuddleFromTorches (void) | Move on either of the pair of torches west of the ice pillar in the cold part of Bilibin Cave slides it a metatile. |
static void | scBilibinCaveGrowPlant (void) | Growth on the sprout at the foot of the cliff at the Bilibin Cave Entrance (metatile (8, 13)) grows it into a vine up the cliff, which Isaac can climb to the ledge and the high cave mouth. |
static void | scBilibinCaveStartFootprints (void) | Walking onto the snow blown in at the cave mouth toward Imil, in the cold part of Bilibin Cave (metatiles (32..34, 32..35)), Isaac starts leaving footprints. |
static void | scBilibinCaveStopFootprints (void) | Walking off the snow at the cave mouth toward Imil, onto the metatiles round its edge, Isaac stops leaving footprints. |
Sint32 | scInit (void) | Sets up the scene being entered, with its puzzles already solved. |
static inline void | scBilibinCaveHideShadow (Sint32 actorId) | Draws one of the ice room's torches or pieces of ice without a shadow. |
static void | scBilibinCavePushTorch (void) | Walking into one of the pair of torches west of the ice pillar in the cold part of Bilibin Cave pushes it a metatile along the dotted track, if nothing stands in the metatile beyond and the ground there lets it go. |
Variables
| Name | Description | |
|---|---|---|
extern SCENE_ENTRANCE | BilibinCaveEntrancesOther [] | |
extern SCENE_ENTRANCE | BilibinCaveEntranceEntrances [] | |
extern SCENE_ENTRANCE | BilibinCaveRapierEntrances [] | |
extern SCENE_ENTRANCE | BilibinCaveIceEntrances [] | |
extern Uint32 | BilibinCaveExits [] | |
extern ACTOR_PLACE | BilibinCaveActorPlacementsOther [] | |
extern ACTOR_PLACE | BilibinCaveEntranceActorPlacements [] | |
extern ACTOR_PLACE | BilibinCaveRapierActorPlacements [] | |
extern ACTOR_PLACE | BilibinCaveIceActorPlacements [] | |
extern CUE | BilibinCaveCuesOther [] | |
extern CUE | BilibinCaveEntranceCues [] | |
extern CUE | BilibinCaveRapierCues [] | |
extern CUE | BilibinCaveIceCues [] | |
Sint32 | BilibinCaveNoShadowScript [] |
Description
The Bilibin Cave Entrance and Bilibin Cave are two areas between Bilibin and Imil that share this overlay.
The Bilibin Cave Entrance is SceneIdBilibinCaveEntrance. Bilibin Cave is
SceneIdBilibinCaveRapier and, beyond it, SceneIdBilibinCaveIce, whose far end
opens onto the World Map farther north.
No one speaks here. Each scene is a run of Psynergy puzzles. The getters pick
its tables by MainRoutineStateWork.next, and scInit restores what the party
has already solved in the scene being entered.
The Bilibin Cave Entrance is a clearing below a cliff, entered from the World
Map, with a waterfall to the west. The cave has two mouths in the cliff: a
low one at ground level (metatile (21, 14)) and a high one on a ledge to the
north-east (metatile (27, 7)). A sprout grows at the foot of the cliff
(ACTOR_SPROUT, metatile (8, 13)); Growth turns it into a vine Isaac can climb
to the ledge, and in by the high mouth (scBilibinCaveGrowPlant).
FLAG_BILIBIN_CAVE_ENTRANCE_SPROUT_GROWN keeps it grown until the party leaves
the Bilibin Cave Entrance, into the cave or out to the World Map, since both
are other areas.
The cliff-top path passes just above the low mouth, and its metatiles there
switch the mouth's way in off and on again (scBilibinCaveCloseLowerCaveMouth,
scBilibinCaveOpenLowerCaveMouth).
Inside, in SceneIdBilibinCaveRapier, the high mouth leads to the chest of the
Elven Rapier. Coming back later with Reveal, the party finds a way through
the wall beside that chest (scBilibinCaveRevealHiddenPath), and
scBilibinCaveHideRevealedPath closes it again when Reveal wears off. Beyond
is a small room of two torches, the west one cold and the east one lit, with
a little fire burning in the doorway between them (ACTOR_RAPIER_ROOM_FIRE).
Douse puts it out for good (FLAG_BILIBIN_CAVE_SECOND_FIRE_DOUSED), and the
doorway leads to the cave's two last chests, a Psy Crystal and Water of Life.
SceneIdBilibinCaveIce is the cold part of the cave on the way to Imil, full
of ice pillars, with puddles, a fire and burning torches. Frost freezes a
puddle into an ice pillar, but next to a fire or a torch the ice melts
straight back (scBilibinCaveMeltFrostBack).
The first puddle lies beside a little fire (metatile (17, 14)). Douse on the
fire puts it out (FLAG_BILIBIN_CAVE_FIRST_FIRE_DOUSED), and the puddle
freezes by itself into a pillar, whose top the party hops across.
The second puddle lies beside a lit torch near the Vial's chest, which cannot be moved, and Frost on it always melts back.
The third puddle starts as an ice pillar (metatile (36, 23)), east of a pair
of torches that can be pushed or moved with Move (ACTOR_THIRD_TORCH and
ACTOR_FOURTH_TORCH). Set beside it, on metatile (35, 23), either torch melts
it into a puddle, and the metatiles north and south of it become hop squares,
so the party can jump over the puddle and go on. Take the torch away and it
freezes again (scBilibinCaveUpdateThirdPuddleFromTorches).
FLAG_BILIBIN_CAVE_THIRD_TORCH_BY_PILLAR and
FLAG_BILIBIN_CAVE_FOURTH_TORCH_BY_PILLAR remember which torch stands there,
and FLAG_BILIBIN_CAVE_THIRD_PUDDLE_MELTED that the pillar has melted. So
coming back from SceneIdBilibinCaveRapier puts the torches and the pillar
back. Leaving Bilibin Cave resets them.
Nine more pieces of ice only stand there: five pillars from
ACTOR_FIRST_ICE_PILLAR and four lower pieces from ACTOR_FIRST_LOW_ICE.
Snow has blown in at the cave's mouth to the World Map, the way out to Imil,
around BILIBIN_CAVE_ICE_WORLD_MAP. Walking onto it Isaac starts leaving
footprints (scBilibinCaveStartFootprints), and walking off it stops them
(scBilibinCaveStopFootprints).
Its chests hold a Vial, a Psy Crystal and Water of Life.
Macros in detail
FLAG_BILIBIN_CAVE_THIRD_PUDDLE_MELTED
#define FLAG_BILIBIN_CAVE_THIRD_PUDDLE_MELTED FLAG_AREA_TEMP(0x02)
In Bilibin Cave's ice room, a movable torch has melted the third puddle's ice pillar.
Referenced by BilibinCaveIceCues, scBilibinCaveRestoreIceRoom() and scBilibinCaveUpdateThirdPuddleFromTorches().
Definition at line 98 of file bilibin_cave.c.
FLAG_BILIBIN_CAVE_THIRD_TORCH_BY_PILLAR
#define FLAG_BILIBIN_CAVE_THIRD_TORCH_BY_PILLAR FLAG_AREA_TEMP(0x03)
In Bilibin Cave's ice room, the third torch stands beside the third puddle's ice pillar.
Referenced by scBilibinCaveRestoreIceRoom() and scBilibinCaveUpdateThirdPuddleFromTorches().
Definition at line 101 of file bilibin_cave.c.
FLAG_BILIBIN_CAVE_FOURTH_TORCH_BY_PILLAR
#define FLAG_BILIBIN_CAVE_FOURTH_TORCH_BY_PILLAR FLAG_AREA_TEMP(0x04)
In Bilibin Cave's ice room, the fourth torch stands beside the third puddle's ice pillar.
Referenced by scBilibinCaveRestoreIceRoom() and scBilibinCaveUpdateThirdPuddleFromTorches().
Definition at line 104 of file bilibin_cave.c.
FLAG_BILIBIN_CAVE_ENTRANCE_SPROUT_GROWN
#define FLAG_BILIBIN_CAVE_ENTRANCE_SPROUT_GROWN FLAG_AREA_TEMP(0x05)
At the Bilibin Cave Entrance, Growth has grown the sprout into a vine.
Referenced by BilibinCaveEntranceCues, scBilibinCaveGrowPlant() and scBilibinCaveRestoreEntrance().
Definition at line 106 of file bilibin_cave.c.
LOW_MOUTH_OPEN_METATILE
#define LOW_MOUTH_OPEN_METATILE 0, 0
Spare metatiles near the top-left corner of the entrance's and the ice room's maps, whose behaviors are copied where the low mouth, the vine and the puddles change, as (column, row).
the low mouth's way into the cave
Referenced by scBilibinCaveOpenLowerCaveMouth().
Definition at line 218 of file bilibin_cave.c.
LOW_MOUTH_CLOSED_METATILE
#define LOW_MOUTH_CLOSED_METATILE 1, 0
plain ground on the cliff-top path
Referenced by scBilibinCaveCloseLowerCaveMouth().
Definition at line 219 of file bilibin_cave.c.
VINE_METATILE
#define VINE_METATILE 31, 0
a vine to climb
Referenced by scBilibinCaveGrowPlant() and scBilibinCaveRestoreEntrance().
Definition at line 220 of file bilibin_cave.c.
FIRST_PILLAR_METATILE
#define FIRST_PILLAR_METATILE 0, 0
a hop square on the ice pillar's top
Referenced by scBilibinCaveDouseIceRoomFire() and scBilibinCaveRestoreIceRoom().
Definition at line 221 of file bilibin_cave.c.
THIRD_PUDDLE_NORTH_HOP_METATILE
#define THIRD_PUDDLE_NORTH_HOP_METATILE 0, 1
hop squares beside the puddle
Referenced by scBilibinCaveRestoreIceRoom() and scBilibinCaveUpdateThirdPuddleFromTorches().
Definition at line 222 of file bilibin_cave.c.
THIRD_PUDDLE_SOUTH_HOP_METATILE
#define THIRD_PUDDLE_SOUTH_HOP_METATILE 0, 2
Referenced by scBilibinCaveRestoreIceRoom() and scBilibinCaveUpdateThirdPuddleFromTorches().
Definition at line 223 of file bilibin_cave.c.
THIRD_PUDDLE_NORTH_GROUND_METATILE
#define THIRD_PUDDLE_NORTH_GROUND_METATILE
Referenced by scBilibinCaveRestoreIceRoom() and scBilibinCaveUpdateThirdPuddleFromTorches().
Definition at line 224 of file bilibin_cave.c.
THIRD_PUDDLE_SOUTH_GROUND_METATILE
#define THIRD_PUDDLE_SOUTH_GROUND_METATILE 1, 2
Referenced by scBilibinCaveRestoreIceRoom() and scBilibinCaveUpdateThirdPuddleFromTorches().
Definition at line 226 of file bilibin_cave.c.
TORCH_BY_PILLAR_COLUMN
#define TORCH_BY_PILLAR_COLUMN 35
The metatile beside the third puddle's ice pillar where a torch melts it.
Referenced by scBilibinCaveUpdateThirdPuddleFromTorches().
Definition at line 419 of file bilibin_cave.c.
TORCH_BY_PILLAR_ROW
#define TORCH_BY_PILLAR_ROW 23
Referenced by scBilibinCaveUpdateThirdPuddleFromTorches().
Definition at line 420 of file bilibin_cave.c.
Enumerations in detail
anonymous enum
enum { ACTOR_SPROUT }
Actors of the Bilibin Cave Entrance (SceneIdBilibinCaveEntrance).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_SPROUT | ACTOR_FIRST_PLACED | The sprout Growth grows into a vine. |
Definition at line 114 of file bilibin_cave.c.
anonymous enum
enum { ACTOR_RAPIER_ROOM_WEST_TORCH, ACTOR_RAPIER_ROOM_FIRE, ACTOR_RAPIER_ROOM_EAST_TORCH }
Actors of SceneIdBilibinCaveRapier, numbered by the rows of
BilibinCaveRapierActorPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_RAPIER_ROOM_WEST_TORCH | ACTOR_FIRST_PLACED | A torch west of the fire. It is cold (TORCH_ANIMATION_UNLIT) where its twin burns. |
ACTOR_RAPIER_ROOM_FIRE | A little fire in the doorway between the two torches, which Douse puts out. | |
ACTOR_RAPIER_ROOM_EAST_TORCH | A torch east of the fire. |
Definition at line 122 of file bilibin_cave.c.
anonymous enum
enum { ACTOR_ICE_ROOM_FIRE, ACTOR_FIRST_TORCH, ACTOR_THIRD_TORCH, ACTOR_FOURTH_TORCH, … }
Actors of SceneIdBilibinCaveIce, numbered by the rows of
BilibinCaveIceActorPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_ICE_ROOM_FIRE | ACTOR_FIRST_PLACED | A little fire beside the first puddle, which Douse puts out. |
ACTOR_FIRST_TORCH | 9 | Six torches, 9 to 14. The second stands beside ACTOR_SECOND_PUDDLE. |
ACTOR_THIRD_TORCH | 11 | The third torch, moved by Move or pushed. |
ACTOR_FOURTH_TORCH | 12 | The fourth torch, moved by Move or pushed. |
ACTOR_FIRST_PUDDLE | 15 | A puddle beside ACTOR_ICE_ROOM_FIRE. It freezes into a pillar the party hops across once the fire is out. |
ACTOR_SECOND_PUDDLE | 16 | A puddle beside a torch that stays put, so it never stays frozen. |
ACTOR_THIRD_PUDDLE | 17 | A puddle frozen into an ice pillar, melted while a torch stands on metatile (35, 23). |
ACTOR_FIRST_ICE_PILLAR | 18 | Five ice pillars, 18 to 22 (PUDDLE_ANIMATION_PILLAR). Nothing acts on them. |
ACTOR_FIRST_LOW_ICE | 23 | Four pieces of ice, 23 to 26, held at the second step of freezing (PUDDLE_ANIMATION_LOW_ICE). Nothing acts on them. |
Definition at line 135 of file bilibin_cave.c.
anonymous enum
enum { FIRE_ANIMATION_BURNING }
SPRITE_FIRE's flickering flame.
| Enumerator | Value | Description |
|---|---|---|
FIRE_ANIMATION_BURNING | 2 |
Definition at line 167 of file bilibin_cave.c.
BILIBIN_CAVE_METATILE_BEHAVIOR
enum BILIBIN_CAVE_METATILE_BEHAVIOR
Metatile behaviors the three maps' cues answer besides the exits.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_BILIBIN_CAVE_ABOVE_LOW_MOUTH | 10 | At the entrance, the cliff-top path just above the low cave mouth, metatiles (20, 13..14) and (22, 13..14). |
METATILE_BEHAVIOR_BILIBIN_CAVE_BESIDE_LOW_MOUTH | 11 | At the entrance, |
METATILE_BEHAVIOR_BILIBIN_CAVE_ELVEN_RAPIER_CHEST | 100 | the path on either side of that stretch, metatiles (19, 12..13) and (23, 12..13). The Elven Rapier's chest in |
METATILE_BEHAVIOR_BILIBIN_CAVE_VIAL_CHEST | 100 | SceneIdBilibinCaveRapier, metatile (35, 28). The chests of SceneIdBilibinCaveIce, at (32, 16), (53, 36) and (52, 37). |
METATILE_BEHAVIOR_BILIBIN_CAVE_PSY_CRYSTAL_CHEST | 101 | |
METATILE_BEHAVIOR_BILIBIN_CAVE_WATER_OF_LIFE_CHEST | 102 | |
METATILE_BEHAVIOR_BILIBIN_CAVE_TORCH_TRACK | 10 | The dotted track the two movable torches are pushed along, round (31..33, 19..23). |
METATILE_BEHAVIOR_BILIBIN_CAVE_TORCH_TRACK_END | 11 | The track's east end, metatiles (34..36, 23), from which walking west pushes a torch. |
METATILE_BEHAVIOR_BILIBIN_CAVE_SNOW | 20 | The snow blown in at the mouth to the World Map, round (32..34, 32..35). |
METATILE_BEHAVIOR_BILIBIN_CAVE_SNOW_EDGE | 21 | The metatiles round the snow's edge. |
Definition at line 173 of file bilibin_cave.c.
Functions in detail
scBilibinCaveRestoreEntrance
static void scBilibinCaveRestoreEntrance(void)
Sets up the Bilibin Cave Entrance, with the vine Growth has grown and its metatile.
References fdActorSetAnimation(), fdMapGridCopyMetatileAttributes() and gmFlagGet().
Referenced by scInit().
Definition at lines 108 and 541 of file bilibin_cave.c.
scBilibinCaveRestoreRapierRoom
static void scBilibinCaveRestoreRapierRoom(void)
Sets up Bilibin Cave's SceneIdBilibinCaveRapier.
References fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteFlags() and gmFlagGet().
Referenced by scInit().
Definition at lines 109 and 551 of file bilibin_cave.c.
scBilibinCaveRestoreIceRoom
static void scBilibinCaveRestoreIceRoom(void)
Sets up Bilibin Cave's SceneIdBilibinCaveIce.
References fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdMapGridCopyMetatileAttributes(), gmFlagGet(), scBilibinCaveEmptyActorSetupHook(), scBilibinCaveHideShadow() and Sint32.
Referenced by scInit().
Definition at lines 110 and 577 of file bilibin_cave.c.
scBilibinCaveEmptyActorSetupHook
static void scBilibinCaveEmptyActorSetupHook(Sint32 actorId)
Does nothing: the ice room calls it for each of its torches and pieces of ice.
References Sint32.
Referenced by scBilibinCaveRestoreIceRoom().
Definition at lines 111 and 740 of file bilibin_cave.c.
scBilibinCaveHideScriptedShadow
static Sint32 scBilibinCaveHideScriptedShadow(ACTOR *actor)
A script command that draws the puddle it runs on without a shadow.
References fdActorSetSpriteFlags() and Sint32.
Referenced by BilibinCaveNoShadowScript.
Definition at line 229 of file bilibin_cave.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References BilibinCaveEntranceEntrances, BilibinCaveEntrancesOther, BilibinCaveIceEntrances, BilibinCaveRapierEntrances and MainRoutineStateWork.
Definition at line 235 of file bilibin_cave.c.
scGetExitRegions
const SCENE_EXIT_REGION *scGetExitRegions(void)
Definition at line 254 of file bilibin_cave.c.
scGetExits
const Uint32 *scGetExits(void)
References BilibinCaveExits.
Definition at line 259 of file bilibin_cave.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References BilibinCaveActorPlacementsOther, BilibinCaveEntranceActorPlacements, BilibinCaveIceActorPlacements, BilibinCaveRapierActorPlacements and MainRoutineStateWork.
Definition at line 264 of file bilibin_cave.c.
scGetCues
const CUE *scGetCues(void)
References BilibinCaveCuesOther, BilibinCaveEntranceCues, BilibinCaveIceCues, BilibinCaveRapierCues and MainRoutineStateWork.
Definition at line 283 of file bilibin_cave.c.
scBilibinCaveCloseLowerCaveMouth
static void scBilibinCaveCloseLowerCaveMouth(void)
Nothing visible happens when Isaac, on the grassy path along the cliff top from the vine toward the high cave mouth at the Bilibin Cave Entrance, steps onto the stretch drawn just above the low mouth, metatiles (20, 13..14) and (22, 13..14). The game quietly turns off the low mouth's way into the cave, metatile (21, 14), which lies between them in the map, so that walking along the path over it does not take him in.
References fdMapGridCopyMetatileAttributes().
Referenced by BilibinCaveEntranceCues.
Definition at line 308 of file bilibin_cave.c.
scBilibinCaveOpenLowerCaveMouth
static void scBilibinCaveOpenLowerCaveMouth(void)
Nothing visible happens when Isaac walks on along the cliff-top path past that stretch at the Bilibin Cave Entrance, metatiles (19, 12..13) and (23, 12..13). The game turns the low mouth's way into the cave, metatile (21, 14), back on.
References fdMapGridCopyMetatileAttributes().
Referenced by BilibinCaveEntranceCues.
Definition at line 317 of file bilibin_cave.c.
scBilibinCaveRevealHiddenPath
static void scBilibinCaveRevealHiddenPath(void)
Reveal in Bilibin Cave, near the Elven Rapier's chest, shows a way through the wall beside it, metatiles (32, 24..26), to the room where a little fire burns between two torches.
References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo() and Sint32.
Referenced by BilibinCaveRapierCues.
Definition at line 325 of file bilibin_cave.c.
scBilibinCaveHideRevealedPath
static void scBilibinCaveHideRevealedPath(void)
As Reveal wears off in Bilibin Cave, the way through the wall beside the Elven Rapier's chest is hidden again.
References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo() and Sint32.
Referenced by BilibinCaveRapierCues.
Definition at line 339 of file bilibin_cave.c.
scBilibinCaveDouseRapierRoomFire
static void scBilibinCaveDouseRapierRoomFire(void)
Douse on the little fire in the doorway of the room of two torches, past the way Reveal shows beside the Elven Rapier's chest, puts it out for good. A rain cloud gathers over the doorway, the flame goes out, and the doorway on to the cave's last two chests is open.
References fdScriptEnd(), fdScriptStart() and gmFlagSet().
Referenced by BilibinCaveRapierCues.
Definition at line 355 of file bilibin_cave.c.
scBilibinCaveDouseIceRoomFire
static void scBilibinCaveDouseIceRoomFire(void)
Douse on the little fire in the cold part of Bilibin Cave (metatile (17, 14)) puts it out, and the puddle beside it freezes by itself into a tall ice pillar, whose top the party hops across.
References fdActorGet(), fdActorSetAnimationAndWait(), fdActorSetSpritePriority(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptStart(), fdScriptWait() and gmFlagSet().
Referenced by BilibinCaveIceCues.
Definition at line 366 of file bilibin_cave.c.
scBilibinCaveMeltFrostBack
static inline void scBilibinCaveMeltFrostBack(Sint32 actorId)
Frost on a puddle in Bilibin Cave that a fire or torch beside it keeps warm forms ice on it for a moment, which melts straight back into water.
References fdActorSetAnimationAndWait(), fdActorSetSpriteColorById(), fdScriptEnd(), fdScriptStart(), fdScriptWait(), Sint32 and sySoundPlay().
Referenced by scBilibinCaveFreezeFirstPuddle(), scBilibinCaveFreezeSecondPuddle() and scBilibinCaveFreezeThirdPuddle().
Definition at line 384 of file bilibin_cave.c.
scBilibinCaveFreezeFirstPuddle
static void scBilibinCaveFreezeFirstPuddle(void)
Frost on the puddle beside the little fire in the cold part of Bilibin Cave (metatile (18, 14)), while the fire burns, makes ice that melts straight back. Douse on the fire is what freezes it.
References scBilibinCaveMeltFrostBack().
Referenced by BilibinCaveIceCues.
Definition at line 397 of file bilibin_cave.c.
scBilibinCaveFreezeSecondPuddle
static void scBilibinCaveFreezeSecondPuddle(void)
Frost on the puddle beside the lit torch near the Vial's chest in the cold part of Bilibin Cave makes ice that melts straight back. The torch cannot be moved, so this puddle never freezes.
References scBilibinCaveMeltFrostBack().
Referenced by BilibinCaveIceCues.
Definition at line 405 of file bilibin_cave.c.
scBilibinCaveFreezeThirdPuddle
static void scBilibinCaveFreezeThirdPuddle(void)
Frost on the puddle a pushed torch has melted, at metatile (36, 23) in the
cold part of Bilibin Cave, makes ice that melts straight back while the torch
stands beside it (FLAG_BILIBIN_CAVE_THIRD_PUDDLE_MELTED).
References scBilibinCaveMeltFrostBack().
Referenced by BilibinCaveIceCues.
Definition at line 413 of file bilibin_cave.c.
scBilibinCaveUpdateThirdPuddleFromTorches
static void scBilibinCaveUpdateThirdPuddleFromTorches(void)
Move on either of the pair of torches west of the ice pillar in the cold part of Bilibin Cave slides it a metatile. Set beside the pillar, on metatile (35, 23), a torch melts the pillar into a puddle, and the metatiles north and south of it, (36, 22) and (36, 24), become hop squares to jump it by. Taken away again, the puddle freezes back into a pillar, and the hop squares are plain ground once more. The same work follows every push.
References fdActorGet(), fdActorSetAnimationAndWait(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptWait(), gmFlagClear(), gmFlagGet(), gmFlagSet(), Sint32 and sySoundPlay().
Referenced by BilibinCaveIceCues and scBilibinCavePushTorch().
Definition at line 428 of file bilibin_cave.c.
scBilibinCaveGrowPlant
static void scBilibinCaveGrowPlant(void)
Growth on the sprout at the foot of the cliff at the Bilibin Cave Entrance (metatile (8, 13)) grows it into a vine up the cliff, which Isaac can climb to the ledge and the high cave mouth.
References fdMapGridCopyMetatileAttributes() and gmFlagSet().
Referenced by BilibinCaveEntranceCues.
Definition at line 496 of file bilibin_cave.c.
scBilibinCaveStartFootprints
static void scBilibinCaveStartFootprints(void)
Walking onto the snow blown in at the cave mouth toward Imil, in the cold part of Bilibin Cave (metatiles (32..34, 32..35)), Isaac starts leaving footprints.
Referenced by BilibinCaveIceCues.
Definition at line 505 of file bilibin_cave.c.
scBilibinCaveStopFootprints
static void scBilibinCaveStopFootprints(void)
Walking off the snow at the cave mouth toward Imil, onto the metatiles round its edge, Isaac stops leaving footprints.
Referenced by BilibinCaveIceCues.
Definition at line 513 of file bilibin_cave.c.
scInit
Sint32 scInit(void)
Sets up the scene being entered, with its puzzles already solved.
References MainRoutineStateWork, scBilibinCaveRestoreEntrance(), scBilibinCaveRestoreIceRoom(), scBilibinCaveRestoreRapierRoom() and Sint32.
Definition at line 520 of file bilibin_cave.c.
scBilibinCaveHideShadow
static inline void scBilibinCaveHideShadow(Sint32 actorId)
Draws one of the ice room's torches or pieces of ice without a shadow.
References fdActorGet(), fdActorSetSpriteFlags() and Sint32.
Referenced by scBilibinCaveRestoreIceRoom().
Definition at line 570 of file bilibin_cave.c.
scBilibinCavePushTorch
static void scBilibinCavePushTorch(void)
Walking into one of the pair of torches west of the ice pillar in the cold part of Bilibin Cave pushes it a metatile along the dotted track, if nothing stands in the metatile beyond and the ground there lets it go. Then, as after Move, it may melt or refreeze the pillar.
References fdActorGet(), fdActorSelectAnimation(), fdActorStepFrom(), fdActorWaitForMove(), PushedActorDirectionSteps, scActorFindAtMetatile(), scBilibinCaveUpdateThirdPuddleFromTorches(), scFieldActorCheckMovementCollision(), scFieldActorSetMoveTargetFX(), Sint32, sySoundPlay() and sySynch().
Referenced by BilibinCaveIceCues.
Definition at line 674 of file bilibin_cave.c.
Variables in detail
BilibinCaveEntrancesOther
extern SCENE_ENTRANCE BilibinCaveEntrancesOther[]
SCENE_ENTRANCE BilibinCaveEntrancesOther[]
Referenced by scGetEntrances().
Definition at lines 82 and 749 of file bilibin_cave.c.
BilibinCaveEntranceEntrances
extern SCENE_ENTRANCE BilibinCaveEntranceEntrances[]
SCENE_ENTRANCE BilibinCaveEntranceEntrances[]
Referenced by scGetEntrances().
Definition at lines 83 and 762 of file bilibin_cave.c.
BilibinCaveRapierEntrances
extern SCENE_ENTRANCE BilibinCaveRapierEntrances[]
SCENE_ENTRANCE BilibinCaveRapierEntrances[]
Referenced by scGetEntrances().
Definition at lines 84 and 802 of file bilibin_cave.c.
BilibinCaveIceEntrances
extern SCENE_ENTRANCE BilibinCaveIceEntrances[]
SCENE_ENTRANCE BilibinCaveIceEntrances[]
Referenced by scGetEntrances().
Definition at lines 85 and 857 of file bilibin_cave.c.
BilibinCaveExits
extern Uint32 BilibinCaveExits[]
Uint32 BilibinCaveExits[]
Referenced by scGetExits().
Definition at lines 86 and 905 of file bilibin_cave.c.
BilibinCaveActorPlacementsOther
extern ACTOR_PLACE BilibinCaveActorPlacementsOther[]
ACTOR_PLACE BilibinCaveActorPlacementsOther[]
Referenced by scGetActorPlacements().
Definition at lines 87 and 953 of file bilibin_cave.c.
BilibinCaveEntranceActorPlacements
extern ACTOR_PLACE BilibinCaveEntranceActorPlacements[]
ACTOR_PLACE BilibinCaveEntranceActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 88 and 958 of file bilibin_cave.c.
BilibinCaveRapierActorPlacements
extern ACTOR_PLACE BilibinCaveRapierActorPlacements[]
ACTOR_PLACE BilibinCaveRapierActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 89 and 964 of file bilibin_cave.c.
BilibinCaveIceActorPlacements
extern ACTOR_PLACE BilibinCaveIceActorPlacements[]
ACTOR_PLACE BilibinCaveIceActorPlacements[]
References BilibinCaveNoShadowScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 90 and 974 of file bilibin_cave.c.
BilibinCaveCuesOther
extern CUE BilibinCaveCuesOther[]
CUE BilibinCaveCuesOther[]
Referenced by scGetCues().
Definition at lines 91 and 1016 of file bilibin_cave.c.
BilibinCaveEntranceCues
extern CUE BilibinCaveEntranceCues[]
CUE BilibinCaveEntranceCues[]
References scBilibinCaveCloseLowerCaveMouth(), scBilibinCaveGrowPlant() and scBilibinCaveOpenLowerCaveMouth().
Referenced by scGetCues().
Definition at lines 92 and 1020 of file bilibin_cave.c.
BilibinCaveRapierCues
extern CUE BilibinCaveRapierCues[]
CUE BilibinCaveRapierCues[]
References scBilibinCaveDouseRapierRoomFire(), scBilibinCaveHideRevealedPath() and scBilibinCaveRevealHiddenPath().
Referenced by scGetCues().
Definition at lines 93 and 1033 of file bilibin_cave.c.
BilibinCaveIceCues
extern CUE BilibinCaveIceCues[]
CUE BilibinCaveIceCues[]
References scBilibinCaveDouseIceRoomFire(), scBilibinCaveFreezeFirstPuddle(), scBilibinCaveFreezeSecondPuddle(), scBilibinCaveFreezeThirdPuddle(), scBilibinCavePushTorch(), scBilibinCaveStartFootprints(), scBilibinCaveStopFootprints() and scBilibinCaveUpdateThirdPuddleFromTorches().
Referenced by scGetCues().
Definition at lines 94 and 1051 of file bilibin_cave.c.
BilibinCaveNoShadowScript
Sint32 BilibinCaveNoShadowScript[]
References scBilibinCaveHideScriptedShadow() and Sint32.
Referenced by BilibinCaveIceActorPlacements.
Definition at line 744 of file bilibin_cave.c.