Vale Cave Mouth
Vale Cave, the optional cave above Vale where Kite, a Jupiter Djinni, hides. Its overlay holds three scenes.
- The clearing outside (Vale,
SceneIdValeCaveMouth), a grassy hillside reached by the two paths that run north past the west side of Kraden's cottage. The lower path comes in at metatiles (5..7, 22) and the raised path east of it at (8, 23..25); both lead back down (scValeCaveLeaveRoom). The cave's mouth is a dark opening in the cliff at metatile (8, 10), beside stacked crates and two logs. The game still calls the clearing Vale, so arriving here clearsFLAG_SHOW_AREA_NAME. - The first room of the cave (
SceneIdValeCaveKite), one map holding three parts that the player meets as separate rooms, joined by passages. Inside the mouth is a pool crossed by hopping from post to post. Reveal shows the post missing from the row, at metatile (15, 15) (scValeCaveRevealHiddenTile). Beyond it, a passage in the north-west leads to a pool with two stacks of crates and a log floating by its north wall. Move or a push sinks the eastern stack into the water, where its top becomes a square to walk across on the way to Kite's part. Two Moves sink the western stack beside the log. Isaac then hops onto the log, which carries him across the pool to the passage on its east side (scValeCaveRideLogEast). - The room of logs (
SceneIdValeCaveLogs). Its southern passage leads round to a pool between two ledges, each with a log standing on it, and a third log lying across the floor south of the water. Isaac rolls the two standing logs into the water, hops down, and pushes the lying log north into the pool, where it floats and lets him across. - Kite's part of the first room, reached from the room of logs and from
the riding log's pool. The Halt Gem's and the Nut's chests are near the
top of a narrow ridge. Walking down the ridge startles Kite, who hops
off its south end onto the round floor below, where three mossy rocks stand
in a row (
scValeCaveKiteRunsOff). Kite then runs round behind the rocks (scValeCaveKiteRunsBehindRocks) and keeps to their far side as Isaac walks round them (scValeCaveKiteKeepsAway). Halt stops it, and talking to it then makes it join the party (scValeCaveTalkToKite,FLAG_KITE).
No story flag is read here and no message is shown. Each room's progress
lives in scene and area flags, and on every arrival scValeCaveApplyEntryState
rebuilds the metatiles of each puzzle already solved and puts Kite back
behind its rocks. The two rooms of the cave proper are one area, so their
area flags (the riding log's end, Kite behind the rocks) last while the party
goes between them.

Events
scValeCaveLeaveRoom
In the clearing outside Vale Cave, Isaac walks into the cave's mouth (metatile) or down either path back to Kraden's cottage.

In the clearing outside Vale Cave, Isaac walks into the cave's mouth (metatile (8, 10)) or down either path back to Kraden's cottage: the lower path at metatiles (5..7, 22) or the raised one east of it at (8, 23..25). Each plays the exit sound first. The metatile's behavior is the exit's number.
Its code is in vale_cave.c.