Skip to Content
The Alchemy Project

src/scene/aqua_rock_inside.c

Aqua Rock's inner rooms, inside the rock on the island south of the Apojii Islands, which Felix enters from the rock's outer slopes. More…

Structures

NameDescription
structPILLAR_ENTRYA water pillar or spout drawn over its metatile: its place, height and resting height, kind, state (PILLAR_ENTRY_STATE), the actor's position it follows, and its top's and column's sprite attributes.
structPILLAR_STATEThe water pillars and spouts scAquaRockInsideDrawPillars draws, and their VRAM entry.
structSTREAM_HEADThe head of one of the two streams a Water Stone sends: its place and the way it runs, in quarter turns from east.
structSPLASHA splash the streams leave on an open metatile, and its sprite's attributes.
structSTREAM_STATEThe streams and their splashes, which scAquaRockInsideDrawSplashes draws.

Macros

NameDescription
#definePILLAR_ENTRIES 32The most water pillars and spouts a room has.
#defineSPOUT_KINDS 8The kinds of spout, each a run of collision codes from the first a room's spouts take, and of pillar top: AquaRockInsidePillarTiles holds a 16x16 top for each, then the 16x8 pieces of column under them, one for each step of height up to PILLAR_COLUMN_PIECES.
#definePILLAR_COLUMN_PIECES 8
#definePILLAR_TOP_TILES SPRITE_TILES_8BPP(16, 16)
#definePILLAR_COLUMN_TILES SPRITE_TILES_8BPP(16, 8)
#defineWATER_SPRITE_DEPTH 50The depth the water pillars and the streams' splashes take past their screen row, behind an actor and the scene's other sprites (SCENE_SPRITE_DEPTH) at the same spot.
#defineSPLASH_ENTRIES 32The most splashes the streams leave at once.
#definePOOL_LEVELS 16The great pool's pictures as it drains, from full to dry.
#defineEFFECT_SET_MODE fdActorSelectAnimation
#defineEFFECT_SET_SCRIPT fdActorStartScript
#defineEFFECT_SPRITE_PRIORITY
#defineWATER_LEVEL_STEP 32How far the water rises or falls when a Moai fills, in pixels.
#defineBLUE_ROCK_SPOUT (column) ((column) - 42)The spout under the flooded hall's blue rock, by the rock's column: the rock is pushed among the three yellow blocks of columns 49 to 51 on row 46, the south-east room's spouts 7 to 9.
#defineFLAG_AQUA_ROCK_WEST_PILLAR_SET 0x95aAqua Rock's lasting flags.
#defineFLAG_AQUA_ROCK_EAST_PILLAR_SET 0x95b
#defineFLAG_AQUA_ROCK_STEAM_ROOM_PILLAR_DROPPED 0x95cThe stone pillar of Steam's room, pushed off its ledge to the floor below.
#defineFLAG_AQUA_ROCK_AQUARIUS_STONE_SET 0x95dThe Aquarius Stone set in the column of the great pool's room.
#defineFLAG_AQUA_ROCK_LOWER_EXIT_STREAMS_TURNED 0xa64Douse on the Water Stones: the streams they turn, as each room's scAquaRockInsideAdvanceStreams leaves them.
#defineFLAG_AQUA_ROCK_WATERFALL_STREAMS_TURNED 0xa65
#defineFLAG_AQUA_ROCK_AQUARIUS_STONE_WATER_STONE_DOUSED 0xa66
#defineFLAG_AQUA_ROCK_VENTS_WATER_STONE_DOUSED 0xa67
#defineFLAG_AQUA_ROCK_LOWER_EXIT_POOL_PARCHED 0xa6aThe pool of the lower exit's room, dried by Parch.
#defineFLAG_PIERS_LEARNED_PARCH 0x9aeSet once Piers has read the tablet and learned Parch.
#defineFLAG_FLOODED_HALL_EAST_MOAI_FILLED FLAG_SCENE_TEMP(0x30)This visit's flags, room by room.
#defineFLAG_FLOODED_HALL_WEST_MOAI_FILLED FLAG_SCENE_TEMP(0x31)
#defineFLAG_FLOODED_HALL_PUDDLE_FROZEN FLAG_SCENE_TEMP(0x50)Frost on the flooded hall's puddle.
#defineFLAG_STEAM_ROOM_STREAM_DRAINED FLAG_SCENE_TEMP(0x40)Parch on the Moai of Steam's room: its stream has drained away.
#defineFLAG_LOWER_EXIT_MOAI_FILLED FLAG_SCENE_TEMP(0x49)Douse on the lower exit's Moai, and then on its Water Stone.
#defineFLAG_LOWER_EXIT_WATER_STONE_DOUSED FLAG_SCENE_TEMP(0x48)
#defineFLAG_ENTRANCE_MOAI_BLOCKED FLAG_SCENE_TEMP(0x38)Move on the pillar before the entrance's Moai, which stops its water.
#defineFLAG_ENTRANCE_PUDDLE_A_FROZEN FLAG_SCENE_TEMP(0x51)Frost on each of the entrance's three puddles.
#defineFLAG_ENTRANCE_PUDDLE_B_FROZEN FLAG_SCENE_TEMP(0x52)
#defineFLAG_ENTRANCE_PUDDLE_C_FROZEN FLAG_SCENE_TEMP(0x53)
#defineFLAG_WATERFALL_MOAI_FILLED FLAG_SCENE_TEMP(0x4b)Douse on the waterfall room's Moai, and then on its Water Stone.
#defineFLAG_WATERFALL_WATER_STONE_DOUSED FLAG_SCENE_TEMP(0x4a)
#defineFLAG_PARCH_TABLET_POOL_LEFT FLAG_AREA_TEMP(0x49)The Parch tablet's room's water has sunk and left its last pool, until Parch dries it.
#defineCUE_STEAM_ROOM_MOAI 88The metatile of the mouth of the Moai of Steam's room, metatile (48, 15): Parch on it, then raised to drain the stream.
#defineCUE_WEST_VENT_GUST 77The metatiles in front of the west and east vents of the vents room and the entrance, where the gust blows Felix off the ledge (scAquaRockInsideStepIntoVentGust); a stone pillar Moved in front of a vent shields them.
#defineCUE_EAST_VENT_GUST 78
#defineSTREAM_STOP 8In AquaRockInsideStreamTurns, a bend a stream cannot run through: it stops there.
#defineDEFINE_AQUA_ROCK_INSIDE_READ_TABLET (name, sideX)Defines a function for checking the Parch tablet from one side: once Piers has learned Parch the game only says so; before, Felix walks from sideX round to its front, faces it, and reads it.
#defineVENT_BLOW_TICKS (60 * 60 * 60)How long the vents blow: an hour of ticks.
#defineSET_BG1CNT_PRIORITY (priority)Sets BG1CNT's priority bits, through the volatile copy the function keeps.

Enumerations

NameDescription
enumPILLAR_ENTRY_STATE { PILLAR_NONE, PILLAR_SPOUT, PILLAR_ON_ACTOR }A PILLAR_ENTRY's states: none, a spout standing on its metatile, or a pillar on an actor, which follows the actor and is never drawn at the lowest priority.
enumAQUA_ROCK_INSIDE_FLOODED_HALL_WAY { WAY_FLOODED_HALL_NORTHWEST_TO_NORTHEAST, WAY_FLOODED_HALL_NO … }The ways between the rooms each of these maps holds, named by the room a way leaves and the room it leads to, each room by where it lies on its map; a way's exit and the entrance at its foot share its number, so the way back is the entrance the exit leads to.
enumAQUA_ROCK_INSIDE_STEAM_WAY { WAY_STEAM_NORTHWEST_TO_EAST, WAY_STEAM_EAST_TO_NORTHWEST, WA … }
enumAQUA_ROCK_INSIDE_LOWER_EXIT_WAY { WAY_LOWER_EXIT_SOUTHWEST_TO_SOUTHEAST, WAY_LOWER_EXIT_SOUTHE … }
enumAQUA_ROCK_INSIDE_VENTS_WAY { WAY_VENTS_EAST_TO_WEST, WAY_VENTS_WEST_TO_EAST }
enumAQUA_ROCK_INSIDE_ENTRANCE_WAY { WAY_ENTRANCE_SOUTHEAST_TO_SOUTHWEST_A, WAY_ENTRANCE_SOUTHWES … }The entrance: its lower floor in the south-east, the vents' room south-west of it and the upper passages north-east, whose doorways at their north end the party comes out of after leaving the lower floor by its south edge.
enumAQUA_ROCK_INSIDE_CUE_METATILE { CUE_FLOODED_HALL_GAP, CUE_FLOODED_HALL_SOUTH_GAP, CUE_LOWER_ … }The metatiles the rooms' step, examine and Parch cues answer, by their collision code.
enumAQUA_ROCK_INSIDE_COLLISION_CODE { COLLISION_STREAM_BEND, COLLISION_SECOND_SPOUTS, COLLISION_ST … }The collision codes the rooms' water reads (MAP_METATILE.collisionCode).
enumSTREAM_BEND { STREAM_BEND_NORTH_EAST, STREAM_BEND_NORTH_WEST, STREAM_BEND_ … }The bends among the eight codes from COLLISION_STREAM_BEND, by the two sides of the metatile a stream runs between, which a spout's or a water pillar's top shows; the codes before them run straight north and south, then east and west, and the first and last stop a stream.
enumAQUA_ROCK_INSIDE_FLOODED_HALL_ACTOR_ID { ACTOR_FLOODED_HALL_EAST_MOAI, ACTOR_FLOODED_HALL_WEST_MOAI, … }The actors of the inner rooms the set-up places, numbering each room's placement table, named by the Psynergy their cues answer: a Moai (SPRITE_MOAI) that Douse fills, so that the water rises, or a Water Stone (SPRITE_WATER_DROP_LARGE, a tear-shaped rock) that Douse sets spouting, which turns the streams; a stone pillar (SPRITE_STONE_PILLAR) Moved in front of a vent or a Moai or into a gap, and the water pillars topped by yellow blocks (SPRITE_YELLOW_BLOCK) scAquaRockInsideAddPillar raises.
enumAQUA_ROCK_INSIDE_STEAM_ACTOR_ID { ACTOR_STEAM_ROOM_MOAI, ACTOR_STEAM_ROOM_PILLAR, ACTOR_STEAM }Steam's room (AquaRockInsideSteamPlacements).
enumAQUA_ROCK_INSIDE_AQUARIUS_STONE_ACTOR_ID { ACTOR_AQUARIUS_STONE_WATER_STONE, ACTOR_AQUARIUS_STONE_BASE, … }The Aquarius Stone's room (AquaRockInsideAquariusStonePlacements).
enumAQUA_ROCK_INSIDE_LOWER_EXIT_ACTOR_ID { ACTOR_LOWER_EXIT_WATER_STONE, ACTOR_LOWER_EXIT_MOAI, ACTOR_L … }The lower exit (AquaRockInsideLowerExitPlacements).
enumAQUA_ROCK_INSIDE_VENTS_ACTOR_ID { ACTOR_VENTS_PILLAR, ACTOR_VENTS_WATER_STONE }The vents room (AquaRockInsideVentsPlacements).
enumAQUA_ROCK_INSIDE_ENTRANCE_ACTOR_ID { ACTOR_ENTRANCE_MOAI_PILLAR, ACTOR_ENTRANCE_MOAI, ACTOR_ENTRA … }The entrance (AquaRockInsideEntrancePlacements).
enumAQUA_ROCK_INSIDE_TIGHTROPE_ACTOR_ID { ACTOR_TIGHTROPE_WEST_POST, ACTOR_TIGHTROPE_EAST_POST }The tightrope's room (AquaRockInsideTightropePlacements).
enumAQUA_ROCK_INSIDE_WATERFALL_ACTOR_ID { ACTOR_WATERFALL_WATER_STONE, ACTOR_WATERFALL_MOAI, ACTOR_WAT … }The waterfall room (AquaRockInsideWaterfallPlacements).
enumAQUA_ROCK_INSIDE_PARCH_TABLET_ACTOR_ID { ACTOR_PARCH_TABLET_FIRST_WATER_PILLAR, ACTOR_PARCH_TABLET }The Parch tablet's room (AquaRockInsideParchTabletPlacements).
enumanonymous enum { POOL_FLICKERS }The times the last pool's metatiles flicker between two of its pictures, two ticks each, as the water starts to sink.

Functions

NameDescription
voidscActorSpawnWadingSplash (ACTOR *actor)A splash at the actor's feet as it wades, on its sprite's priority.
Sint32scActorEmitMist (ACTOR *actor)Mist about an actor, as the leader walks into Aqua Rock's waterfall: every other tick a dust cloud at 0.8 of its size, white and pale blue by turns, sinks from 26 pixels above it at up to 1.4 pixels a tick, the clouds sweeping from 8 pixels right of it to 7 left every 16 ticks.
voidscAquaRockInsideDrainStream (void)Each tick while a stream drains: its level falls a step and the water's pictures follow it down from the Moai, until the bed is dry.
Sint32scAquaRockInsideBlockMetatileUnder (Sint32 id, Sint32 value)Gives the metatile under actor id the collision code value, so a stream turns there.
voidscAquaRockInsideSetPillarMetatileJumpableInWater (void)Once the Moai of the lower exit's puzzle has filled, the square under the water pillar Felix can Move becomes one he hops across in the water (MAP_METATILE_JUMP and MAP_METATILE_WATER).
voidscAquaRockInsideAddMoaiWater (Sint32 id)Gives a Moai its water, a sprite added to its own: the pool in the top of its head and the water pouring from its mouth.
voidscAquaRockInsideDrawPillars (void)Draws the scene's pillars: a top sprite for each active one and, when it stands above its base, a column sprite as tall as its height.
voidscAquaRockInsideSetPillarsHeight (Sint32 value)Raises every spout to height, and the ground of their metatiles (MAP_SHAPE_MARKED) with them; the pillars on actors stay as they are.
voidscAquaRockInsideDrawSplashes (void)Each tick, draws the splashes the streams have left, each shaken a few random pixels and showing one of its three pictures at random.
voidscAquaRockInsideStartSplashes (void)Clears the streams' splashes, loads their tiles into VRAM and starts their drawing.
Sint32scAquaRockInsideStartStream (Sint32 x, Sint32 y, Sint32 z, Sint32 direction)Starts a stream from metatile (x, z), at height y, running in direction, quarter turns from east; a second call starts the second stream.
Sint32scAquaRockInsideAdvanceStreams (Sint32 first, Sint32 target)Advances Aqua Rock's two water streams one metatile along the map: each stream follows the turn its metatile's kind gives, leaves a splash on every open metatile it crosses, stops on a wall kind and counts the metatiles of the given kind it reaches; then it clears the splashes past the new count and opens the metatiles under those left.
voidscVentBounce (ACTOR *actor)The motion of a thing a vent throws out (shared/actor_vent_bounce.c).
voidscActorStartScripted (ACTOR *actor, Sint32 priority)Readies a vent's puff: it stops, is drawn behind the actors around it, its sprite at OBJ priority, shadowless and tinted SPRITE_COLOR_RED_TINT, and breaks up (the dust cloud's animation 2) without spinning or growing until DustBurstScript releases it, 44 ticks on.
voidscVentPuff (Sint32 *pos, Sint32 base)A puff of mist a vent blows out at pos: it drifts east or west and up at under a pixel a tick each and south at the gust's speed base and under a pixel more, spinning at random (scVentBounce).
Sint32scVentSetBlowing (Sint32 index, Sint32 blowing)Starts or stops the gust of vent index.
Sint32scVentGetCounter (void)The vents' tick counter, which their cycles time their gusts by.
Sint32scVentAdvanceCounter (Sint32 limit)Steps the vents' counter, wrapping at limit.
voidscAquaRockInsideWaitToLand (ACTOR *actor)In every edition but the Japanese: lets the actor fall and waits until it lands with a thump.
voidscLeaderRiseFromWater (void)Unless the party returns to where it was, the leader appears in the waterfall 16 pixels north of the entrance, tinted blue, as the screen opens, then comes south out of it in a trail of mist and takes his own colours and shadow back on the way.
voidscAquaRockInsideStartPillars (void)Clears the water pillars, loads their tiles into VRAM and starts their drawing.
voidscAquaRockInsideAddSpouts (Uint32 first, Sint32 level, Sint32 baseLevel)Adds a water spout on every map metatile of the given layer whose spout kind lies in [first, first + SPOUT_KINDS), at the given heights, and gives those metatiles MAP_SHAPE_MARKED, its entry set to level.
voidscAquaRockInsideShowAquariusStone (void)The Aquarius Stone shown set in the column.
voidscAquaRockInsideAddPillar (Sint32 id, Sint32 kind, Sint32 height)Adds a water pillar on actor id, of kind, risen to height steps.
voidscAquaRockInsideFightSteam (void)Talking to Steam, the Mercury Djinni standing at the head of the stream before the Moai of Steam's room, starts a battle with it.
const SCENE_ENTRANCE *scGetEntrances (void)Where the party can enter: the cave under the spring has its own entrances.
const SCENE_REGION *scGetExitRegions (void)The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room.
const Uint32 *scGetExits (void)The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN.
const ACTOR_PLACE *scGetActorPlacements (void)The scene's actor placements: a room of names for its entrance, else the debug room's.
voidscAquaRockInsideSetPillarInGap (Sint32 unused, Sint32 id)Moving or pushing one of the two stone pillars of the flooded hall into its gap: the west pillar north along the dotted track to the round hole at its end (metatile (9, 12)), the east one two squares east into its gap among the yellow stepping blocks (column 51).
voidscAquaRockInsideJumpForward (void)Walking forward at the edge of a gap in the water hops Felix across onto the yellow block beyond: at the foot of the vents' ledge in the vents room (metatiles (17, 24) and (19, 24)), at the east stone pillar's squares in the flooded hall (metatiles (49, 13) and (50, 13)) and at two spots of the lower exit (metatiles (12, 44) and (20, 44)).
voidscAquaRockInsideDouseFloodedHallEastMoai (Sint32 unused, Sint32 id)Douse on the grey east Moai of the flooded hall: it turns green and pours water from its mouth, the room floods, and the yellow stepping blocks rise with the water, all but the one the small blue rock stands on.
voidscAquaRockInsideDouseFloodedHallWestMoai (Sint32 unused, Sint32 id)Douse on the grey west Moai of the flooded hall: it pours water from its mouth, the room floods and the yellow stepping blocks rise.
voidscAquaRockInsideMoveBlueRock (void)Felix uses Move on the small blue rock of the flooded hall: Move's hand lifts it and sets it down further on, as it moves a pillar, and nothing more happens.
voidscAquaRockInsideFreezePuddle (void)Frost on the puddle of the flooded hall, at metatile (43, 44), freezes it, and Felix can hop across it (MAP_METATILE_JUMP): one way through the room's puzzle.
voidscAquaRockInsidePushPillarOffLedge (Sint32 unused, Sint32 id)Moving or pushing the stone pillar of Steam's room east off the edge of its ledge (column 39) drops it to the floor below, onto the round mark there; in every edition but the Japanese it lands with a thump.
voidscAquaRockInsideParchSteamRoomMoai (void)Parch on the Moai of Steam's room, at its mouth (metatile (48, 15)): the Moai turns grey and stops pouring, and the stream it fed starts to drain (scAquaRockInsideSteamRoomStreamDrains, which raising the cue runs).
voidscAquaRockInsideSteamRoomStreamDrains (void)After Parch on its Moai, the stream of Steam's room drains away: Felix faces south and the camera follows the water down the stream's bed to its far end, then the bed (metatiles (46, 16) to (50, 47)) becomes dry ground.
voidscAquaRockInsideUseAquariusStone (void)Using the Aquarius Stone on the empty column at the south of the great pool's room sets it there.
voidscAquaRockInsideOpenDoorToTablet (Sint32 exit)Walking into the gold door in the dais of the great pool's room, once the Aquarius Stone is set (metatile (19, 31)): it opens with a thump and Felix walks through, by exit, to the Parch tablet's room.
voidscAquaRockInsideCheckColumn (void)Checking the empty column at the south of the great pool's room: "It's a column with a spot where you can place something.", and the field menu opens if the party holds the Aquarius Stone.
voidscAquaRockInsideDouseAquariusStoneWaterStone (void)Douse on the Water Stone on the dais of the great pool's room: two streams of sparkles run east and west from it along the yellow blocks, six squares.
voidscAquaRockInsideParchPool (void)Parch on the pool around the sunken Rusty Sword chest dries it for good, leaving the chest within reach.
voidscAquaRockInsideSetPillarMetatileJumpable (void)Where the water pillar Felix can Move in the lower exit's puzzle comes to rest, its square becomes one he hops across (MAP_METATILE_JUMP).
voidscAquaRockInsideSetPillarMetatilePushable (void)Lets the lower exit's movable water pillar slide: as Felix starts to Move or push it, the square it leaves takes MAP_METATILE_PUSH, as the ground a pushed thing slides over does.
voidscAquaRockInsideDouseLowerExitWaterStone (void)Douse on the Water Stone of the lower exit's puzzle, once its Moai has flooded the room: the stream runs along the water pillars, turned by the one Felix has Moved, and if it reaches its goal it stays turned for good.
voidscAquaRockInsideDouseLowerExitMoai (Sint32 unused, Sint32 id)Douse on the grey Moai of the lower exit's puzzle: it turns blue and pours water from its mouth, and the room floods around the water pillars, so that the Water Stone's stream can run.
voidscAquaRockInsideJumpDownLedge ()Felix jumps down the ledge he faces.
voidscAquaRockInsideStepIntoVentGust (Sint32 cue)Stepping in front of a vent in the entrance or vents room (metatiles (9, 34) and (13, 34) in the first, (17, 22) and (19, 22) in the second, with the squares south of them): its gust blows Felix south, spinning, to the edge of the ledge and over it.
voidscAquaRockInsideDouseVentsWaterStone (void)Douse on the Water Stone of the vents room: a stream of sparkles runs west from it along the yellow blocks, five squares.
voidscAquaRockInsideRideFalls (Sint32 exit)Stepping into the foot of the waterfall in the entrance, at the north end of its pool (metatile (10, 10)): Felix tumbles, turns blue with his arms raised and is carried up out of sight, and comes out by exit on Aqua Rock's summit.
voidscAquaRockInsideBlockMoaiWithPillar (Sint32 unused, Sint32 id)Moving the stone pillar of the entrance in front of the green Moai's mouth (column 49) stops its water: the pool below sinks a level and three puddles are left on its floor for Frost.
voidscAquaRockInsideFreezeRoomPuddle (Sint32 unused, Sint32 id)Frost on one of the three puddles left in the entrance's sunken pool freezes it, and Felix can hop across it (MAP_METATILE_JUMP).
voidscAquaRockInsideFreeVentPillars (void)Lets the stone pillars beside the entrance's vents slide: as Felix starts to Move or push one, the ground along their row (row 34) takes MAP_METATILE_PUSH, keeping the vents' gusts, so the pillar can go in front of a vent.
voidscAquaRockInsideSettleVentPillars (Sint32 unused, Sint32 id)When either stone pillar beside the entrance's vents comes to rest, both stop, and the square under each loses its gust and becomes one Felix hops across (MAP_METATILE_JUMP).
voidscAquaRockInsideWaitToRise (ACTOR *actor)Waits, for 60 ticks at most, until the actor stops moving up or down.
voidscAquaRockInsideCheckPsynergyStone (void)Checking the big Psynergy Stone in the middle of its cave (metatile (12, 13)): "Everyone's PP was replenished!"
voidscAquaRockInsideMovePuzzlePillar (Sint32 unused, Sint32 id)Move on the west of the two stone pillars at the south of the waterfall room (row 39): the ground follows it, the two pillars' starting squares going back to floor and its new square taking the pillar's.
voidscAquaRockInsideDouseWaterfallWaterStone (void)Douse on the Water Stone of the waterfall room's puzzle, once its Moai has flooded the room: the stream runs along the water pillars, turned by the three Felix can Move, and if it reaches its goal it stays turned for good.
voidscAquaRockInsideDouseWaterfallMoai (Sint32 unused, Sint32 id)Douse on the grey Moai of the waterfall room's puzzle: it turns blue and pours water from its mouth, and the room floods around the water pillars.
voidscAquaRockInsideWaterSinks (void)Once Piers has learned Parch, the ground trembles and the water round the tablet's dais sinks away, but a pool is left on the steps before the tablet, which keeps Felix from leaving until Parch dries it.
voidscAquaRockInsideParchLastPool (void)Parch on the pool left on the steps before the Parch tablet dries it, and the way out of the room is open.
voidscAquaRockInsidePiersLearnsParch (Sint32 tabletId, Sint32 adeptId)The tablet (tabletId) rises and glows, sparks gather on Piers (adeptId) and he learns Parch in a flash.
voidscAquaRockInsideReadParchTablet (void)Reading the tablet from its south side: "Wielder of Water's strength...
voidscAquaRockInsideWalkToParchTablet (void)Checking the Parch tablet from its north side: Felix walks round to the front and reads it (scAquaRockInsideReadParchTablet), or once Parch is learned only its words show.
DEFINE_AQUA_ROCK_INSIDE_READ_TABLET(scAquaRockInsideReadTabletFacingWest , 280)Checking the Parch tablet from its east side: Felix steps round to the front and reads it.
DEFINE_AQUA_ROCK_INSIDE_READ_TABLET(scAquaRockInsideReadTabletFacingEast , 248)Checking the Parch tablet from its west side: Felix steps round to the front and reads it.
const CUE *scGetCues (void)The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's.
voidscAquaRockInsideSplashBeneath (ACTOR *actor)The hook of the hidden actor at the foot of the entrance's waterfall: every sixteenth tick a ring of spray (SPRITE_SPLASH_RING's animation 2) spreads on the water there for 31 ticks.
voidscAquaRockInsideFallThroughWater (void)Arriving in the entrance down its waterfall from Aqua Rock's summit: Felix, tinted blue, drops spinning into the pool at the waterfall's foot, splashes and comes to stand on the yellow block there.
voidscAquaRockInsideUpdateVents (void)The vents' hook: they blow for VENT_BLOW_TICKS, with their sound, then stop.
Sint32scInit (void)Entering one of the inner rooms: the Moai already filled pour water and the empty ones stand grey, Steam's room shows its drained stream and its dropped pillar, the vents blow in the rooms that have them, and arriving from the summit Felix falls through the waterfall into the entrance.
Sint32scPrepareMap (void)Readies the map of the room the party enters: raises its spouts and water pillars to the water's level, floods or drains it as its Moai and Parch have left it, sets the stone pillars where they were Moved, sends the streams of the Water Stones already doused, and opens the great pool once the Aquarius Stone is set.
voidscAquaRockInsideSetPillarHeight (Uint32 index, Sint32 height)Raises spout index alone to height, its metatile taking MAP_SHAPE_RAISED_ALONE at that height.

Variables

NameDescription
extern Sint32AquaRockInsideStreamLevel
extern Uint8AquaRockInsidePoolLevelMetatiles [POOL_LEVELS * 2]Where on the map each of the great pool's pictures is taken from: a column and a row for each.
extern Sint8AquaRockInsideStreamTurns []
PILLAR_STATEAquaRockInsidePillars
STREAM_STATEAquaRockInsideStreams
extern Uint32OrbitSparkScript []An orbiting spark's script: it shows for 6 ticks, then is released.
extern Uint32AquaRockInsideSplashScript []A splash's script at the foot of the waterfall.
extern Uint32WadingSplashScript []A splash's script: it shows for 20 ticks, then is released.
extern Uint32RippleScript []A ripple rises a quarter of a pixel a tick for 31 ticks, then is released.
extern const Uint8AquaRockInsidePillarTiles []The water pillars' tiles, compressed (graphics/aqua_rock_inside/tiles.list.tsv).
extern const Uint8AquaRockInsideSplashTiles []The splashes' tiles, compressed.
extern Uint32DustBurstScript []It lasts 44 ticks, then stops and is gone.
extern Uint32LessonTabletRiseScript []The tablet lifts 24 pixels.
extern Uint32AquaRockInsideTabletGlowScript []A glow rising from the Parch tablet.
extern Sint32AquaRockInsideSpiralSparkScript []A spark spiralling in to Piers, leaving a trail of small ones.
extern Uint32LessonAdeptRiseScript []The Adept rises 16 pixels.
extern Sint32LessonSeekingSparkScript []A spark of the lesson at the heart of Air's Rock, Aqua Rock and Gaia Rock: it circles and homes in on the Adept.
extern Sint32LessonTabletSettleScript []The tablet settles back on its stand.
extern Sint32LessonAdeptSettleScript []The Adept settles back to the ground.
extern Uint16AquaRockInsideVentsRoomVents []The vents room's vents: x, z and the speed of each gust, ended by 0; and the pillar their puffs land on.
extern Uint16AquaRockInsideVentsRoomVentPillars []
extern Uint16AquaRockInsideEntranceVents []The entrance's vents, and the two pillars their puffs land on.
extern Uint16AquaRockInsideEntranceVentPillars []
extern ACTOR_PLACEAquaRockInsidePlacements []
extern ACTOR_PLACEAquaRockInsideFloodedHallPlacements []
extern ACTOR_PLACEAquaRockInsideSteamPlacements []
extern ACTOR_PLACEAquaRockInsideAquariusStonePlacements []
extern ACTOR_PLACEAquaRockInsideLowerExitPlacements []
extern ACTOR_PLACEAquaRockInsideVentsPlacements []
extern ACTOR_PLACEAquaRockInsideEntrancePlacements []
extern ACTOR_PLACEAquaRockInsidePsynergyStonePlacements []
extern ACTOR_PLACEAquaRockInsideTightropePlacements []
extern ACTOR_PLACEAquaRockInsideWaterfallPlacements []
extern ACTOR_PLACEAquaRockInsideParchTabletPlacements []
extern CUEAquaRockInsideCues []
extern CUEAquaRockInsideFloodedHallCues []
extern CUEAquaRockInsideSteamCues []
extern CUEAquaRockInsideAquariusStoneCues []
extern CUEAquaRockInsideLowerExitCues []
extern CUEAquaRockInsideVentsCues []
extern CUEAquaRockInsideEntranceCues []
extern CUEAquaRockInsidePsynergyStoneCues []
extern CUEAquaRockInsideTightropeCues []
extern CUEAquaRockInsideWaterfallCues []
extern CUEAquaRockInsideParchTabletCues []

Description

Aqua Rock's inner rooms, inside the rock on the island south of the Apojii Islands, which Felix enters from the rock's outer slopes. The file holds ten rooms, most of them several screens, and their water puzzles. A grey Moai that Douse fills pours water and floods its room, lifting the yellow stepping blocks; a stone pillar Moved before a Moai's mouth stops it and the water sinks. Vents blow Felix off their ledge until Move sets a pillar in front of them. A Water Stone, the big blue drop, sends a stream along the blocks when Douse is cast on it. There are puddles to Frost, a tightrope, a Psynergy Stone, and in the entrance room a waterfall that carries Felix back up to the summit. Setting the Aquarius Stone in the empty column of the great pool's room opens a causeway and a gold door in the dais at its heart, which lead to the tablet where Piers learns Parch (scAquaRockInsideReadParchTablet). With Parch, Felix can dry the pool by the sunken Rusty Sword chest and stop the Moai whose stream hides Steam, the Mercury Djinni (scAquaRockInsideFightSteam).

Macros in detail

PILLAR_ENTRIES

#define PILLAR_ENTRIES 32

The most water pillars and spouts a room has.

Referenced by scAquaRockInsideDrawPillars(), scAquaRockInsideSetPillarHeight() and scAquaRockInsideSetPillarsHeight().

Definition at line 52 of file aqua_rock_inside.c.

SPOUT_KINDS

#define SPOUT_KINDS 8

The kinds of spout, each a run of collision codes from the first a room's spouts take, and of pillar top: AquaRockInsidePillarTiles holds a 16x16 top for each, then the 16x8 pieces of column under them, one for each step of height up to PILLAR_COLUMN_PIECES.

Referenced by scAquaRockInsideAddSpouts() and scAquaRockInsideDrawPillars().

Definition at line 58 of file aqua_rock_inside.c.

PILLAR_COLUMN_PIECES

#define PILLAR_COLUMN_PIECES 8

Referenced by scAquaRockInsideDrawPillars().

Definition at line 59 of file aqua_rock_inside.c.

PILLAR_TOP_TILES

#define PILLAR_TOP_TILES SPRITE_TILES_8BPP(16, 16)

Referenced by scAquaRockInsideDrawPillars().

Definition at line 60 of file aqua_rock_inside.c.

PILLAR_COLUMN_TILES

#define PILLAR_COLUMN_TILES SPRITE_TILES_8BPP(16, 8)

Referenced by scAquaRockInsideDrawPillars().

Definition at line 61 of file aqua_rock_inside.c.

WATER_SPRITE_DEPTH

#define WATER_SPRITE_DEPTH 50

The depth the water pillars and the streams' splashes take past their screen row, behind an actor and the scene's other sprites (SCENE_SPRITE_DEPTH) at the same spot.

Referenced by scAquaRockInsideDrawPillars() and scAquaRockInsideDrawSplashes().

Definition at line 66 of file aqua_rock_inside.c.

SPLASH_ENTRIES

#define SPLASH_ENTRIES 32

The most splashes the streams leave at once.

Referenced by scAquaRockInsideAdvanceStreams() and scAquaRockInsideDrawSplashes().

Definition at line 100 of file aqua_rock_inside.c.

POOL_LEVELS

#define POOL_LEVELS 16

The great pool's pictures as it drains, from full to dry.

Referenced by AquaRockInsidePoolLevelMetatiles and scAquaRockInsideUseAquariusStone().

Definition at line 112 of file aqua_rock_inside.c.

EFFECT_SET_MODE

#define EFFECT_SET_MODE fdActorSelectAnimation

Referenced by EFFECT_SPAWN.

Definition at line 176 of file aqua_rock_inside.c.

EFFECT_SET_SCRIPT

#define EFFECT_SET_SCRIPT fdActorStartScript

Referenced by EFFECT_SPAWN.

Definition at line 177 of file aqua_rock_inside.c.

EFFECT_SPRITE_PRIORITY

#define EFFECT_SPRITE_PRIORITY

Definition at line 178 of file aqua_rock_inside.c.

WATER_LEVEL_STEP

#define WATER_LEVEL_STEP 32

How far the water rises or falls when a Moai fills, in pixels.

Referenced by scAquaRockInsideBlockMoaiWithPillar(), scAquaRockInsideDouseFloodedHallEastMoai(), scAquaRockInsideDouseFloodedHallWestMoai(), scAquaRockInsideDouseLowerExitMoai(), scAquaRockInsideDouseWaterfallMoai(), scAquaRockInsideWaterSinks() and scInit().

Definition at line 192 of file aqua_rock_inside.c.

BLUE_ROCK_SPOUT

#define BLUE_ROCK_SPOUT(column) ((column) - 42)

The spout under the flooded hall's blue rock, by the rock's column: the rock is pushed among the three yellow blocks of columns 49 to 51 on row 46, the south-east room's spouts 7 to 9.

Referenced by scAquaRockInsideDouseFloodedHallEastMoai() and scPrepareMap().

Definition at line 197 of file aqua_rock_inside.c.

FLAG_AQUA_ROCK_WEST_PILLAR_SET

#define FLAG_AQUA_ROCK_WEST_PILLAR_SET 0x95a

Aqua Rock's lasting flags. The flooded hall's west and east stone pillars, each Moved into its gap (scAquaRockInsideSetPillarInGap).

Referenced by scAquaRockInsideSetPillarInGap() and scPrepareMap().

Definition at line 201 of file aqua_rock_inside.c.

FLAG_AQUA_ROCK_EAST_PILLAR_SET

#define FLAG_AQUA_ROCK_EAST_PILLAR_SET 0x95b

Referenced by scAquaRockInsideSetPillarInGap() and scPrepareMap().

Definition at line 202 of file aqua_rock_inside.c.

FLAG_AQUA_ROCK_STEAM_ROOM_PILLAR_DROPPED

#define FLAG_AQUA_ROCK_STEAM_ROOM_PILLAR_DROPPED 0x95c

The stone pillar of Steam's room, pushed off its ledge to the floor below.

Referenced by scAquaRockInsidePushPillarOffLedge() and scInit().

Definition at line 204 of file aqua_rock_inside.c.

FLAG_AQUA_ROCK_AQUARIUS_STONE_SET

#define FLAG_AQUA_ROCK_AQUARIUS_STONE_SET 0x95d

The Aquarius Stone set in the column of the great pool's room.

Referenced by scAquaRockInsideCheckColumn(), scAquaRockInsideUseAquariusStone() and scPrepareMap().

Definition at line 206 of file aqua_rock_inside.c.

FLAG_AQUA_ROCK_LOWER_EXIT_STREAMS_TURNED

#define FLAG_AQUA_ROCK_LOWER_EXIT_STREAMS_TURNED 0xa64

Douse on the Water Stones: the streams they turn, as each room's scAquaRockInsideAdvanceStreams leaves them.

Referenced by scAquaRockInsideDouseLowerExitWaterStone() and scPrepareMap().

Definition at line 209 of file aqua_rock_inside.c.

FLAG_AQUA_ROCK_WATERFALL_STREAMS_TURNED

#define FLAG_AQUA_ROCK_WATERFALL_STREAMS_TURNED 0xa65

Referenced by scAquaRockInsideDouseWaterfallWaterStone() and scPrepareMap().

Definition at line 210 of file aqua_rock_inside.c.

FLAG_AQUA_ROCK_AQUARIUS_STONE_WATER_STONE_DOUSED

#define FLAG_AQUA_ROCK_AQUARIUS_STONE_WATER_STONE_DOUSED 0xa66

Referenced by scAquaRockInsideDouseAquariusStoneWaterStone() and scPrepareMap().

Definition at line 211 of file aqua_rock_inside.c.

FLAG_AQUA_ROCK_VENTS_WATER_STONE_DOUSED

#define FLAG_AQUA_ROCK_VENTS_WATER_STONE_DOUSED 0xa67

Referenced by scAquaRockInsideDouseVentsWaterStone() and scPrepareMap().

Definition at line 212 of file aqua_rock_inside.c.

FLAG_AQUA_ROCK_LOWER_EXIT_POOL_PARCHED

#define FLAG_AQUA_ROCK_LOWER_EXIT_POOL_PARCHED 0xa6a

The pool of the lower exit's room, dried by Parch.

Referenced by scAquaRockInsideParchPool() and scPrepareMap().

Definition at line 214 of file aqua_rock_inside.c.

FLAG_PIERS_LEARNED_PARCH

#define FLAG_PIERS_LEARNED_PARCH 0x9ae

Set once Piers has read the tablet and learned Parch.

Referenced by scAquaRockInsideReadParchTablet() and scAquaRockInsideWalkToParchTablet().

Definition at line 216 of file aqua_rock_inside.c.

FLAG_FLOODED_HALL_EAST_MOAI_FILLED

#define FLAG_FLOODED_HALL_EAST_MOAI_FILLED FLAG_SCENE_TEMP(0x30)

This visit's flags, room by room. Douse on the flooded hall's east and west Moai: each has filled, and the water has risen.

Referenced by scAquaRockInsideDouseFloodedHallEastMoai(), scInit() and scPrepareMap().

Definition at line 219 of file aqua_rock_inside.c.

FLAG_FLOODED_HALL_WEST_MOAI_FILLED

#define FLAG_FLOODED_HALL_WEST_MOAI_FILLED FLAG_SCENE_TEMP(0x31)

Referenced by scAquaRockInsideDouseFloodedHallWestMoai(), scInit() and scPrepareMap().

Definition at line 220 of file aqua_rock_inside.c.

FLAG_FLOODED_HALL_PUDDLE_FROZEN

#define FLAG_FLOODED_HALL_PUDDLE_FROZEN FLAG_SCENE_TEMP(0x50)

Frost on the flooded hall's puddle.

Referenced by scAquaRockInsideDouseFloodedHallEastMoai(), scAquaRockInsideFreezePuddle() and scPrepareMap().

Definition at line 222 of file aqua_rock_inside.c.

FLAG_STEAM_ROOM_STREAM_DRAINED

#define FLAG_STEAM_ROOM_STREAM_DRAINED FLAG_SCENE_TEMP(0x40)

Parch on the Moai of Steam's room: its stream has drained away.

Referenced by scAquaRockInsideSteamRoomStreamDrains() and scInit().

Definition at line 224 of file aqua_rock_inside.c.

FLAG_LOWER_EXIT_MOAI_FILLED

#define FLAG_LOWER_EXIT_MOAI_FILLED FLAG_SCENE_TEMP(0x49)

Douse on the lower exit's Moai, and then on its Water Stone.

Referenced by scAquaRockInsideDouseLowerExitMoai(), scAquaRockInsideDouseLowerExitWaterStone(), scInit() and scPrepareMap().

Definition at line 226 of file aqua_rock_inside.c.

FLAG_LOWER_EXIT_WATER_STONE_DOUSED

#define FLAG_LOWER_EXIT_WATER_STONE_DOUSED FLAG_SCENE_TEMP(0x48)

Referenced by scAquaRockInsideDouseLowerExitWaterStone() and scPrepareMap().

Definition at line 227 of file aqua_rock_inside.c.

FLAG_ENTRANCE_MOAI_BLOCKED

#define FLAG_ENTRANCE_MOAI_BLOCKED FLAG_SCENE_TEMP(0x38)

Move on the pillar before the entrance's Moai, which stops its water.

Referenced by scAquaRockInsideBlockMoaiWithPillar(), scInit() and scPrepareMap().

Definition at line 229 of file aqua_rock_inside.c.

FLAG_ENTRANCE_PUDDLE_A_FROZEN

#define FLAG_ENTRANCE_PUDDLE_A_FROZEN FLAG_SCENE_TEMP(0x51)

Frost on each of the entrance's three puddles.

Referenced by scAquaRockInsideFreezeRoomPuddle() and scPrepareMap().

Definition at line 231 of file aqua_rock_inside.c.

FLAG_ENTRANCE_PUDDLE_B_FROZEN

#define FLAG_ENTRANCE_PUDDLE_B_FROZEN FLAG_SCENE_TEMP(0x52)

Definition at line 232 of file aqua_rock_inside.c.

FLAG_ENTRANCE_PUDDLE_C_FROZEN

#define FLAG_ENTRANCE_PUDDLE_C_FROZEN FLAG_SCENE_TEMP(0x53)

Definition at line 233 of file aqua_rock_inside.c.

FLAG_WATERFALL_MOAI_FILLED

#define FLAG_WATERFALL_MOAI_FILLED FLAG_SCENE_TEMP(0x4b)

Douse on the waterfall room's Moai, and then on its Water Stone.

Referenced by scAquaRockInsideDouseWaterfallMoai(), scAquaRockInsideDouseWaterfallWaterStone(), scInit() and scPrepareMap().

Definition at line 235 of file aqua_rock_inside.c.

FLAG_WATERFALL_WATER_STONE_DOUSED

#define FLAG_WATERFALL_WATER_STONE_DOUSED FLAG_SCENE_TEMP(0x4a)

Referenced by scAquaRockInsideDouseWaterfallWaterStone() and scPrepareMap().

Definition at line 236 of file aqua_rock_inside.c.

FLAG_PARCH_TABLET_POOL_LEFT

#define FLAG_PARCH_TABLET_POOL_LEFT FLAG_AREA_TEMP(0x49)

The Parch tablet's room's water has sunk and left its last pool, until Parch dries it.

Referenced by scAquaRockInsideParchLastPool(), scAquaRockInsideWaterSinks() and scPrepareMap().

Definition at line 239 of file aqua_rock_inside.c.

CUE_STEAM_ROOM_MOAI

#define CUE_STEAM_ROOM_MOAI 88

The metatile of the mouth of the Moai of Steam's room, metatile (48, 15): Parch on it, then raised to drain the stream.

Referenced by scAquaRockInsideParchSteamRoomMoai().

Definition at line 242 of file aqua_rock_inside.c.

CUE_WEST_VENT_GUST

#define CUE_WEST_VENT_GUST 77

The metatiles in front of the west and east vents of the vents room and the entrance, where the gust blows Felix off the ledge (scAquaRockInsideStepIntoVentGust); a stone pillar Moved in front of a vent shields them.

Referenced by scAquaRockInsideStepIntoVentGust().

Definition at line 247 of file aqua_rock_inside.c.

CUE_EAST_VENT_GUST

#define CUE_EAST_VENT_GUST 78

Referenced by scAquaRockInsideStepIntoVentGust().

Definition at line 248 of file aqua_rock_inside.c.

STREAM_STOP

#define STREAM_STOP 8

In AquaRockInsideStreamTurns, a bend a stream cannot run through: it stops there.

Referenced by scAquaRockInsideAdvanceStreams().

Definition at line 342 of file aqua_rock_inside.c.

DEFINE_AQUA_ROCK_INSIDE_READ_TABLET

#define DEFINE_AQUA_ROCK_INSIDE_READ_TABLET(name, sideX)

Defines a function for checking the Parch tablet from one side: once Piers has learned Parch the game only says so; before, Felix walks from sideX round to its front, faces it, and reads it.

Definition at line 1710 of file aqua_rock_inside.c.

VENT_BLOW_TICKS

#define VENT_BLOW_TICKS (60 * 60 * 60)

How long the vents blow: an hour of ticks.

Referenced by scAquaRockInsideUpdateVents().

Definition at line 1864 of file aqua_rock_inside.c.

SET_BG1CNT_PRIORITY

#define SET_BG1CNT_PRIORITY(priority)

Sets BG1CNT's priority bits, through the volatile copy the function keeps.

Referenced by scPrepareMap().

Definition at line 2057 of file aqua_rock_inside.c.

Enumerations in detail

PILLAR_ENTRY_STATE

enum PILLAR_ENTRY_STATE

A PILLAR_ENTRY's states: none, a spout standing on its metatile, or a pillar on an actor, which follows the actor and is never drawn at the lowest priority.

EnumeratorValueDescription
PILLAR_NONE
PILLAR_SPOUT
PILLAR_ON_ACTOR

Definition at line 44 of file aqua_rock_inside.c.

AQUA_ROCK_INSIDE_FLOODED_HALL_WAY

enum AQUA_ROCK_INSIDE_FLOODED_HALL_WAY

The ways between the rooms each of these maps holds, named by the room a way leaves and the room it leads to, each room by where it lies on its map; a way's exit and the entrance at its foot share its number, so the way back is the entrance the exit leads to.

EnumeratorValueDescription
WAY_FLOODED_HALL_NORTHWEST_TO_NORTHEAST2
WAY_FLOODED_HALL_NORTHEAST_TO_NORTHWEST
WAY_FLOODED_HALL_NORTHEAST_TO_SOUTHEAST_WEST
WAY_FLOODED_HALL_SOUTHEAST_TO_NORTHEAST_WEST
WAY_FLOODED_HALL_NORTHEAST_TO_SOUTHEAST_EAST
WAY_FLOODED_HALL_SOUTHEAST_TO_NORTHEAST_EAST
WAY_FLOODED_HALL_NORTHEAST_TO_SOUTH
WAY_FLOODED_HALL_SOUTH_TO_NORTHEAST

Definition at line 254 of file aqua_rock_inside.c.

AQUA_ROCK_INSIDE_STEAM_WAY

enum AQUA_ROCK_INSIDE_STEAM_WAY

EnumeratorValueDescription
WAY_STEAM_NORTHWEST_TO_EAST2
WAY_STEAM_EAST_TO_NORTHWEST
WAY_STEAM_EAST_TO_SOUTHWEST7
WAY_STEAM_SOUTHWEST_TO_EAST

Definition at line 266 of file aqua_rock_inside.c.

AQUA_ROCK_INSIDE_LOWER_EXIT_WAY

enum AQUA_ROCK_INSIDE_LOWER_EXIT_WAY

EnumeratorValueDescription
WAY_LOWER_EXIT_SOUTHWEST_TO_SOUTHEAST7
WAY_LOWER_EXIT_SOUTHEAST_TO_SOUTHWEST

Definition at line 274 of file aqua_rock_inside.c.

AQUA_ROCK_INSIDE_VENTS_WAY

enum AQUA_ROCK_INSIDE_VENTS_WAY

EnumeratorValueDescription
WAY_VENTS_EAST_TO_WEST4
WAY_VENTS_WEST_TO_EAST

Definition at line 280 of file aqua_rock_inside.c.

AQUA_ROCK_INSIDE_ENTRANCE_WAY

enum AQUA_ROCK_INSIDE_ENTRANCE_WAY

The entrance: its lower floor in the south-east, the vents' room south-west of it and the upper passages north-east, whose doorways at their north end the party comes out of after leaving the lower floor by its south edge.

EnumeratorValueDescription
WAY_ENTRANCE_SOUTHEAST_TO_SOUTHWEST_A4
WAY_ENTRANCE_SOUTHWEST_TO_SOUTHEAST_A
WAY_ENTRANCE_SOUTHEAST_TO_SOUTHWEST_B
WAY_ENTRANCE_SOUTHWEST_TO_SOUTHEAST_B
WAY_ENTRANCE_SOUTHEAST_TO_NORTHEAST_WEST
ENTRANCE_WEST_DOORWAY
WAY_ENTRANCE_SOUTHEAST_TO_NORTHEAST_EAST
ENTRANCE_EAST_DOORWAY

Definition at line 289 of file aqua_rock_inside.c.

AQUA_ROCK_INSIDE_CUE_METATILE

enum AQUA_ROCK_INSIDE_CUE_METATILE

The metatiles the rooms' step, examine and Parch cues answer, by their collision code.

EnumeratorValueDescription
CUE_FLOODED_HALL_GAP50A gap's edge Felix hops across the water from (scAquaRockInsideJumpForward): the flooded hall's two, walked into north or west and south, the lower exit's and the vents room's.
CUE_FLOODED_HALL_SOUTH_GAP51
CUE_LOWER_EXIT_GAP55
CUE_VENTS_GAP70
CUE_STREAM40A stream that carries Felix down it (scLeaderFlowWithStream).
CUE_LOWER_EXIT_POOL50The pools Parch dries: round the Rusty
CUE_PARCH_TABLET_POOL40Sword chest, and on the Parch tablet's steps.
CUE_PSYNERGY_STONE30The Psynergy Stone, and the Parch
CUE_PARCH_TABLET30tablet, examined.

Definition at line 303 of file aqua_rock_inside.c.

AQUA_ROCK_INSIDE_COLLISION_CODE

enum AQUA_ROCK_INSIDE_COLLISION_CODE

The collision codes the rooms' water reads (MAP_METATILE.collisionCode).

EnumeratorValueDescription
COLLISION_STREAM_BEND33The first of the eight codes of the bends that turn a stream (AquaRockInsideStreamTurns' columns); their metatiles raise spouts too (scAquaRockInsideAddSpouts).
COLLISION_SECOND_SPOUTS40The first of the eight codes of a room's second set of spouts.
COLLISION_STREAM_GOAL55A stream's goal: scAquaRockInsideAdvanceStreams counts the streams that reach it.
COLLISION_STREAM_OPEN255An open metatile: a stream runs on across it and leaves a splash.

Definition at line 324 of file aqua_rock_inside.c.

STREAM_BEND

enum STREAM_BEND

The bends among the eight codes from COLLISION_STREAM_BEND, by the two sides of the metatile a stream runs between, which a spout's or a water pillar's top shows; the codes before them run straight north and south, then east and west, and the first and last stop a stream.

EnumeratorValueDescription
STREAM_BEND_NORTH_EAST3
STREAM_BEND_NORTH_WEST
STREAM_BEND_SOUTH_EAST
STREAM_BEND_SOUTH_WEST

Definition at line 348 of file aqua_rock_inside.c.

AQUA_ROCK_INSIDE_FLOODED_HALL_ACTOR_ID

enum AQUA_ROCK_INSIDE_FLOODED_HALL_ACTOR_ID

The actors of the inner rooms the set-up places, numbering each room's placement table, named by the Psynergy their cues answer: a Moai (SPRITE_MOAI) that Douse fills, so that the water rises, or a Water Stone (SPRITE_WATER_DROP_LARGE, a tear-shaped rock) that Douse sets spouting, which turns the streams; a stone pillar (SPRITE_STONE_PILLAR) Moved in front of a vent or a Moai or into a gap, and the water pillars topped by yellow blocks (SPRITE_YELLOW_BLOCK) scAquaRockInsideAddPillar raises.

EnumeratorValueDescription
ACTOR_FLOODED_HALL_EAST_MOAIACTOR_FIRST_PLACED
ACTOR_FLOODED_HALL_WEST_MOAI
ACTOR_FLOODED_HALL_WEST_PILLAR
ACTOR_FLOODED_HALL_EAST_PILLAR
ACTOR_FLOODED_HALL_BLUE_ROCKThe small blue rock, which keeps the yellow
ACTOR_FLOODED_HALL_PUDDLEblock under it down as the others rise with the water (scAquaRockInsideSetPillarHeight).

Definition at line 363 of file aqua_rock_inside.c.

AQUA_ROCK_INSIDE_STEAM_ACTOR_ID

enum AQUA_ROCK_INSIDE_STEAM_ACTOR_ID

Steam's room (AquaRockInsideSteamPlacements).

EnumeratorValueDescription
ACTOR_STEAM_ROOM_MOAIACTOR_FIRST_PLACED
ACTOR_STEAM_ROOM_PILLARThe pillar pushed off its ledge (scAquaRockInsidePushPillarOffLedge).
ACTOR_STEAMThe Mercury Djinni Steam (SPRITE_MERCURY_DJINNI).

Definition at line 377 of file aqua_rock_inside.c.

AQUA_ROCK_INSIDE_AQUARIUS_STONE_ACTOR_ID

enum AQUA_ROCK_INSIDE_AQUARIUS_STONE_ACTOR_ID

The Aquarius Stone's room (AquaRockInsideAquariusStonePlacements).

EnumeratorValueDescription
ACTOR_AQUARIUS_STONE_WATER_STONEACTOR_FIRST_PLACED
ACTOR_AQUARIUS_STONE_BASETwo hidden actors where the stone appears; the
ACTOR_AQUARIUS_STONEsecond shows it (scAquaRockInsideShowAquariusStone).

Definition at line 387 of file aqua_rock_inside.c.

AQUA_ROCK_INSIDE_LOWER_EXIT_ACTOR_ID

enum AQUA_ROCK_INSIDE_LOWER_EXIT_ACTOR_ID

The lower exit (AquaRockInsideLowerExitPlacements).

EnumeratorValueDescription
ACTOR_LOWER_EXIT_WATER_STONEACTOR_FIRST_PLACED
ACTOR_LOWER_EXIT_MOAI
ACTOR_LOWER_EXIT_MOAI_AThe two Moai of the upper ledge.
ACTOR_LOWER_EXIT_MOAI_B
ACTOR_LOWER_EXIT_WATER_PILLAR_A
ACTOR_LOWER_EXIT_WATER_PILLAR_B
ACTOR_LOWER_EXIT_WATER_PILLAR_C
ACTOR_RUSTY_SWORD_CHEST64The sunken Rusty Sword chest, the first actor its map's chests make.

Definition at line 397 of file aqua_rock_inside.c.

AQUA_ROCK_INSIDE_VENTS_ACTOR_ID

enum AQUA_ROCK_INSIDE_VENTS_ACTOR_ID

The vents room (AquaRockInsideVentsPlacements).

EnumeratorValueDescription
ACTOR_VENTS_PILLARACTOR_FIRST_PLACED
ACTOR_VENTS_WATER_STONE

Definition at line 412 of file aqua_rock_inside.c.

AQUA_ROCK_INSIDE_ENTRANCE_ACTOR_ID

enum AQUA_ROCK_INSIDE_ENTRANCE_ACTOR_ID

The entrance (AquaRockInsideEntrancePlacements).

EnumeratorValueDescription
ACTOR_ENTRANCE_MOAI_PILLARACTOR_FIRST_PLACEDThe pillar Moved before
ACTOR_ENTRANCE_MOAIthe Moai (scAquaRockInsideBlockMoaiWithPillar).
ACTOR_ENTRANCE_WEST_VENT_PILLARThe two pillars beside the vents
ACTOR_ENTRANCE_EAST_VENT_PILLAR(scAquaRockInsideStepIntoVentGust).
ACTOR_ENTRANCE_SPLASHA hidden actor that splashes at the foot of the waterfall (scAquaRockInsideSplashBeneath).
ACTOR_ENTRANCE_PUDDLE_AThe three puddles Frost freezes (scAquaRockInsideFreezeRoomPuddle).
ACTOR_ENTRANCE_PUDDLE_B
ACTOR_ENTRANCE_PUDDLE_C

Definition at line 419 of file aqua_rock_inside.c.

AQUA_ROCK_INSIDE_TIGHTROPE_ACTOR_ID

enum AQUA_ROCK_INSIDE_TIGHTROPE_ACTOR_ID

The tightrope's room (AquaRockInsideTightropePlacements).

EnumeratorValueDescription
ACTOR_TIGHTROPE_WEST_POSTACTOR_FIRST_PLACED
ACTOR_TIGHTROPE_EAST_POST

Definition at line 439 of file aqua_rock_inside.c.

AQUA_ROCK_INSIDE_WATERFALL_ACTOR_ID

enum AQUA_ROCK_INSIDE_WATERFALL_ACTOR_ID

The waterfall room (AquaRockInsideWaterfallPlacements).

EnumeratorValueDescription
ACTOR_WATERFALL_WATER_STONEACTOR_FIRST_PLACED
ACTOR_WATERFALL_MOAI
ACTOR_WATERFALL_WATER_PILLAR_AThe nine water pillars of the puzzle, lettered A to I.
ACTOR_WATERFALL_WATER_PILLAR_B
ACTOR_WATERFALL_WATER_PILLAR_C
ACTOR_WATERFALL_WATER_PILLAR_D
ACTOR_WATERFALL_WATER_PILLAR_E
ACTOR_WATERFALL_WATER_PILLAR_F
ACTOR_WATERFALL_WATER_PILLAR_G
ACTOR_WATERFALL_WATER_PILLAR_H
ACTOR_WATERFALL_WATER_PILLAR_I
ACTOR_WATERFALL_PILLAR_AThe stone pillars Moved into the puzzle
ACTOR_WATERFALL_PILLAR_B(scAquaRockInsideMovePuzzlePillar).

Definition at line 446 of file aqua_rock_inside.c.

AQUA_ROCK_INSIDE_PARCH_TABLET_ACTOR_ID

enum AQUA_ROCK_INSIDE_PARCH_TABLET_ACTOR_ID

The Parch tablet's room (AquaRockInsideParchTabletPlacements).

EnumeratorValueDescription
ACTOR_PARCH_TABLET_FIRST_WATER_PILLARACTOR_FIRST_PLACEDThe six water pillars.
ACTOR_PARCH_TABLETACTOR_PARCH_TABLET_FIRST_WATER_PILLAR + 6The tablet Piers reads to learn Parch.

Definition at line 466 of file aqua_rock_inside.c.

anonymous enum

enum { POOL_FLICKERS }

The times the last pool's metatiles flicker between two of its pictures, two ticks each, as the water starts to sink.

EnumeratorValueDescription
POOL_FLICKERS15

Definition at line 1393 of file aqua_rock_inside.c.

Functions in detail

scAquaRockInsideDrainStream

void scAquaRockInsideDrainStream(void)

Each tick while a stream drains: its level falls a step and the water's pictures follow it down from the Moai, until the bed is dry.

References AquaRockInsideStreamLevel, fdMapGridCopyMetatiles(), scFieldCloseEvent() and Sint32.

Referenced by scAquaRockInsideSteamRoomStreamDrains() and scAquaRockInsideUseAquariusStone().

Definition at lines 117 and 722 of file aqua_rock_inside.c.

scAquaRockInsideBlockMetatileUnder

Sint32 scAquaRockInsideBlockMetatileUnder(Sint32 id, Sint32 value)

Gives the metatile under actor id the collision code value, so a stream turns there.

References fdActorGet() and Sint32.

Referenced by scAquaRockInsideDouseLowerExitWaterStone(), scAquaRockInsideDouseWaterfallWaterStone() and scPrepareMap().

Definition at lines 118 and 935 of file aqua_rock_inside.c.

scAquaRockInsideSetPillarMetatileJumpableInWater

void scAquaRockInsideSetPillarMetatileJumpableInWater(void)

Once the Moai of the lower exit's puzzle has filled, the square under the water pillar Felix can Move becomes one he hops across in the water (MAP_METATILE_JUMP and MAP_METATILE_WATER).

References fdActorGet() and fdMapGridCopyMetatileAttributes().

Referenced by scAquaRockInsideDouseLowerExitMoai() and scInit().

Definition at lines 119 and 955 of file aqua_rock_inside.c.

scAquaRockInsideAddMoaiWater

void scAquaRockInsideAddMoaiWater(Sint32 id)

Gives a Moai its water, a sprite added to its own: the pool in the top of its head and the water pouring from its mouth.

References fdActorGet(), fdActorSelectAnimation(), fdSpriteAddAnimation() and Sint32.

Referenced by scAquaRockInsideDouseFloodedHallEastMoai(), scAquaRockInsideDouseFloodedHallWestMoai(), scAquaRockInsideDouseLowerExitMoai(), scAquaRockInsideDouseWaterfallMoai() and scInit().

Definition at lines 120 and 1782 of file aqua_rock_inside.c.

scAquaRockInsideDrawPillars

void scAquaRockInsideDrawPillars(void)

Draws the scene's pillars: a top sprite for each active one and, when it stands above its base, a column sprite as tall as its height.

References AquaRockInsidePillars, fdMapStateView(), Sint32, syOAMAddSpriteAtDepthClamped() and VramCacheEntries.

Referenced by scAquaRockInsideStartPillars().

Definition at lines 121 and 2490 of file aqua_rock_inside.c.

scAquaRockInsideSetPillarsHeight

void scAquaRockInsideSetPillarsHeight(Sint32 value)

void scAquaRockInsideSetPillarsHeight(Sint32 height)

Raises every spout to height, and the ground of their metatiles (MAP_SHAPE_MARKED) with them; the pillars on actors stay as they are.

References AquaRockInsidePillars and Sint32.

Referenced by scAquaRockInsideDouseFloodedHallEastMoai() and scAquaRockInsideDouseFloodedHallWestMoai().

Definition at lines 122 and 2698 of file aqua_rock_inside.c.

scAquaRockInsideDrawSplashes

void scAquaRockInsideDrawSplashes(void)

Each tick, draws the splashes the streams have left, each shaken a few random pixels and showing one of its three pictures at random.

References AquaRockInsideStreams, fdMapStateView(), Sint32, syOAMAddSpriteAtDepthClamped() and VramCacheEntries.

Referenced by scAquaRockInsideStartSplashes().

Definition at lines 123 and 2744 of file aqua_rock_inside.c.

scAquaRockInsideStartSplashes

void scAquaRockInsideStartSplashes(void)

Clears the streams' splashes, loads their tiles into VRAM and starts their drawing.

References AquaRockInsideSplashTiles, AquaRockInsideStreams, fdScriptPlaySound(), mnVRAMLoad(), scAquaRockInsideDrawSplashes(), scFieldSetTickEvent(), Sint32, syDecompressTaggedLZ(), syHeapAllocate(), syHeapCallAlternatePool(), syHeapRelease() and syVRAMCacheFindFreeEntry().

Referenced by scAquaRockInsideDouseAquariusStoneWaterStone(), scAquaRockInsideDouseLowerExitWaterStone(), scAquaRockInsideDouseVentsWaterStone(), scAquaRockInsideDouseWaterfallWaterStone() and scPrepareMap().

Definition at lines 124 and 2801 of file aqua_rock_inside.c.

scAquaRockInsideStartStream

Sint32 scAquaRockInsideStartStream(Sint32 x, Sint32 y, Sint32 z, Sint32 direction)

Starts a stream from metatile (x, z), at height y, running in direction, quarter turns from east; a second call starts the second stream.

References AquaRockInsideStreams and Sint32.

Referenced by scAquaRockInsideDouseAquariusStoneWaterStone(), scAquaRockInsideDouseLowerExitWaterStone(), scAquaRockInsideDouseVentsWaterStone(), scAquaRockInsideDouseWaterfallWaterStone() and scPrepareMap().

Definition at lines 125 and 2819 of file aqua_rock_inside.c.

scAquaRockInsideAdvanceStreams

Sint32 scAquaRockInsideAdvanceStreams(Sint32 first, Sint32 target)

Advances Aqua Rock's two water streams one metatile along the map: each stream follows the turn its metatile's kind gives, leaves a splash on every open metatile it crosses, stops on a wall kind and counts the metatiles of the given kind it reaches; then it clears the splashes past the new count and opens the metatiles under those left.

References AquaRockInsideStreams, AquaRockInsideStreamTurns and Sint32.

Referenced by scAquaRockInsideDouseAquariusStoneWaterStone(), scAquaRockInsideDouseLowerExitWaterStone(), scAquaRockInsideDouseVentsWaterStone(), scAquaRockInsideDouseWaterfallWaterStone() and scPrepareMap().

Definition at lines 127 and 2839 of file aqua_rock_inside.c.

scVentPuff

void scVentPuff(Sint32 *pos, Sint32 base)

A puff of mist a vent blows out at pos: it drifts east or west and up at under a pixel a tick each and south at the gust's speed base and under a pixel more, spinning at random (scVentBounce).

References fdActorSetBlendMode(), scActorStartScripted(), scFieldActorCreate(), scVentBounce(), Sint32, syCos() and syRandom().

Referenced by scVentUpdate().

Definition at lines 131 and 2951 of file aqua_rock_inside.c.

scVentSetBlowing

Sint32 scVentSetBlowing(Sint32 index, Sint32 blowing)

Starts or stops the gust of vent index.

References Sint32.

Referenced by scAquaRockInsideUpdateVents(), scTaopoSwampCycleLavaRocksVents() and scTaopoSwampCycleVentsRoomVents().

Definition at lines 132 and 2976 of file aqua_rock_inside.c.

scVentGetCounter

Sint32 scVentGetCounter(void)

The vents' tick counter, which their cycles time their gusts by.

References Sint32.

Referenced by scAquaRockInsideUpdateVents(), scTaopoSwampCycleLavaRocksVents() and scTaopoSwampCycleVentsRoomVents().

Definition at lines 133 and 2985 of file aqua_rock_inside.c.

scAquaRockInsideWaitToLand

void scAquaRockInsideWaitToLand(ACTOR *actor)

In every edition but the Japanese: lets the actor fall and waits until it lands with a thump.

References fdScriptPlaySound() and sySynch().

Definition at lines 181 and 663 of file aqua_rock_inside.c.

scAquaRockInsideStartPillars

void scAquaRockInsideStartPillars(void)

Clears the water pillars, loads their tiles into VRAM and starts their drawing.

References AquaRockInsidePillars, AquaRockInsidePillarTiles, mnVRAMLoad(), scAquaRockInsideDrawPillars(), scFieldSetTickEvent(), Sint32, syDecompressTaggedLZ(), syHeapAllocate(), syHeapCallAlternatePool(), syHeapRelease() and syVRAMCacheFindFreeEntry().

Referenced by scPrepareMap().

Definition at lines 184 and 2585 of file aqua_rock_inside.c.

scAquaRockInsideAddSpouts

void scAquaRockInsideAddSpouts(Uint32 first, Sint32 level, Sint32 baseLevel)

Adds a water spout on every map metatile of the given layer whose spout kind lies in [first, first + SPOUT_KINDS), at the given heights, and gives those metatiles MAP_SHAPE_MARKED, its entry set to level.

References AquaRockInsidePillars, MapGridShapes and Sint32.

Referenced by scPrepareMap().

Definition at lines 185 and 2603 of file aqua_rock_inside.c.

scAquaRockInsideShowAquariusStone

void scAquaRockInsideShowAquariusStone(void)

The Aquarius Stone shown set in the column.

References fdActorGet() and scFieldActorShowItemIconById().

Referenced by scAquaRockInsideUseAquariusStone() and scPrepareMap().

Definition at lines 186 and 758 of file aqua_rock_inside.c.

scAquaRockInsideAddPillar

void scAquaRockInsideAddPillar(Sint32 id, Sint32 kind, Sint32 height)

Adds a water pillar on actor id, of kind, risen to height steps.

References AquaRockInsidePillars, fdActorGet() and Sint32.

Referenced by scPrepareMap().

Definition at lines 187 and 2677 of file aqua_rock_inside.c.

scAquaRockInsideFightSteam

void scAquaRockInsideFightSteam(void)

Talking to Steam, the Mercury Djinni standing at the head of the stream before the Moai of Steam's room, starts a battle with it. Felix reaches it once Parch has dried the stream (scAquaRockInsideSteamRoomStreamDrains).

References fdRequestDjinnBattle().

Definition at line 477 of file aqua_rock_inside.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 482 of file aqua_rock_inside.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 487 of file aqua_rock_inside.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 492 of file aqua_rock_inside.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References AquaRockInsideAquariusStonePlacements, AquaRockInsideEntrancePlacements, AquaRockInsideFloodedHallPlacements, AquaRockInsideLowerExitPlacements, AquaRockInsideParchTabletPlacements, AquaRockInsidePlacements, AquaRockInsidePsynergyStonePlacements, AquaRockInsideSteamPlacements, AquaRockInsideTightropePlacements, AquaRockInsideVentsPlacements, AquaRockInsideWaterfallPlacements and MainRoutineStateWork.

Definition at line 509 of file aqua_rock_inside.c.

scAquaRockInsideSetPillarInGap

void scAquaRockInsideSetPillarInGap(Sint32 unused, Sint32 id)

Moving or pushing one of the two stone pillars of the flooded hall into its gap: the west pillar north along the dotted track to the round hole at its end (metatile (9, 12)), the east one two squares east into its gap among the yellow stepping blocks (column 51). There it settles a pixel lower and stays for good, opening a shortcut across the room; with the west one in place, its square and metatile (13, 12) become places Felix hops across (MAP_METATILE_JUMP).

References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdScriptSetFlag() and Sint32.

Definition at line 543 of file aqua_rock_inside.c.

scAquaRockInsideJumpForward

void scAquaRockInsideJumpForward(void)

Walking forward at the edge of a gap in the water hops Felix across onto the yellow block beyond: at the foot of the vents' ledge in the vents room (metatiles (17, 24) and (19, 24)), at the east stone pillar's squares in the flooded hall (metatiles (49, 13) and (50, 13)) and at two spots of the lower exit (metatiles (12, 44) and (20, 44)). The field engine's fdTryJumpForward finds the block to land on.

References fdTryJumpForward().

Definition at line 577 of file aqua_rock_inside.c.

scAquaRockInsideDouseFloodedHallEastMoai

void scAquaRockInsideDouseFloodedHallEastMoai(Sint32 unused, Sint32 id)

Douse on the grey east Moai of the flooded hall: it turns green and pours water from its mouth, the room floods, and the yellow stepping blocks rise with the water, all but the one the small blue rock stands on.

References fdActorGet(), fdActorSetAnimation(), fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatileAttributes(), fdMapLoadMetatilesAndShapes(), fdScriptEnd(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), scAquaRockInsideAddMoaiWater(), scAquaRockInsideSetPillarHeight(), scAquaRockInsideSetPillarsHeight(), scFieldActorSetSpriteColor(), scFieldScriptEndLastingPsynergy(), Sint32 and sySynch().

Definition at line 585 of file aqua_rock_inside.c.

scAquaRockInsideDouseFloodedHallWestMoai

void scAquaRockInsideDouseFloodedHallWestMoai(Sint32 unused, Sint32 id)

Douse on the grey west Moai of the flooded hall: it pours water from its mouth, the room floods and the yellow stepping blocks rise.

References fdActorGet(), fdActorSetAnimation(), fdMapGridCenterOnFollowedPoint(), fdMapLoadMetatilesAndShapes(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), scAquaRockInsideAddMoaiWater(), scAquaRockInsideSetPillarsHeight(), scFieldActorSetSpriteColor(), scFieldScriptEndLastingPsynergy(), Sint32 and sySynch().

Definition at line 619 of file aqua_rock_inside.c.

scAquaRockInsideMoveBlueRock

void scAquaRockInsideMoveBlueRock(void)

Felix uses Move on the small blue rock of the flooded hall: Move's hand lifts it and sets it down further on, as it moves a pillar, and nothing more happens.

Definition at line 647 of file aqua_rock_inside.c.

scAquaRockInsideFreezePuddle

void scAquaRockInsideFreezePuddle(void)

Frost on the puddle of the flooded hall, at metatile (43, 44), freezes it, and Felix can hop across it (MAP_METATILE_JUMP): one way through the room's puzzle.

References fdMapGridCopyMetatileAttributes() and fdScriptSetFlag().

Definition at line 654 of file aqua_rock_inside.c.

scAquaRockInsidePushPillarOffLedge

void scAquaRockInsidePushPillarOffLedge(Sint32 unused, Sint32 id)

Moving or pushing the stone pillar of Steam's room east off the edge of its ledge (column 39) drops it to the floor below, onto the round mark there; in every edition but the Japanese it lands with a thump. Its square becomes one Felix hops across (MAP_METATILE_JUMP).

References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdScriptSetFlag(), Sint32 and sySynch().

Definition at line 680 of file aqua_rock_inside.c.

scAquaRockInsideParchSteamRoomMoai

void scAquaRockInsideParchSteamRoomMoai(void)

Parch on the Moai of Steam's room, at its mouth (metatile (48, 15)): the Moai turns grey and stops pouring, and the stream it fed starts to drain (scAquaRockInsideSteamRoomStreamDrains, which raising the cue runs).

References fdActorGet(), fdActorSetAnimation(), fdMapGridCopyMetatiles() and scFieldActorSetSpriteColor().

Definition at line 711 of file aqua_rock_inside.c.

scAquaRockInsideSteamRoomStreamDrains

void scAquaRockInsideSteamRoomStreamDrains(void)

After Parch on its Moai, the stream of Steam's room drains away: Felix faces south and the camera follows the water down the stream's bed to its far end, then the bed (metatiles (46, 16) to (50, 47)) becomes dry ground.

References fdActorFaceDirection(), fdCameraWaitForArrival(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, scAquaRockInsideDrainStream(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), scFieldSetTickEvent() and Sint32.

Definition at line 738 of file aqua_rock_inside.c.

scAquaRockInsideUseAquariusStone

void scAquaRockInsideUseAquariusStone(void)

Using the Aquarius Stone on the empty column at the south of the great pool's room sets it there. The music fades, the ground shakes harder and harder, and as the camera pans north to the dais in the middle of the pool the water falls away to leave a causeway and a gold door in the dais; a jingle plays once the shaking stops.

References AquaRockInsidePoolLevelMetatiles, fdActorFaceDirection(), fdCameraWaitForArrival(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesLayered(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), gmPlayMusic(), MainRoutineStateWork, scAquaRockInsideDrainStream(), scAquaRockInsideShowAquariusStone(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), scFieldSetTickEvent(), Sint32, sySoundWaitForBGMRestore() and sySynch().

Definition at line 783 of file aqua_rock_inside.c.

scAquaRockInsideOpenDoorToTablet

void scAquaRockInsideOpenDoorToTablet(Sint32 exit)

Walking into the gold door in the dais of the great pool's room, once the Aquarius Stone is set (metatile (19, 31)): it opens with a thump and Felix walks through, by exit, to the Parch tablet's room.

References fdActorGet(), fdActorWalkTo(), fdMapGridCopyMetatilesTo(), fdScriptPlaySound(), fdScriptStart(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptWait() and Sint32.

Definition at line 850 of file aqua_rock_inside.c.

scAquaRockInsideCheckColumn

void scAquaRockInsideCheckColumn(void)

Checking the empty column at the south of the great pool's room: "It's a column with a spot where you can place something.", and the field menu opens if the party holds the Aquarius Stone. Once the stone is set, the message is "You placed the Aquarius Stone."

References fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), mnMessageArgumentPush(), mnMessageShowCentered(), scFieldPartyInventoryFindMember(), scFieldScriptEndLastingPsynergy() and Sint32.

Definition at line 880 of file aqua_rock_inside.c.

scAquaRockInsideDouseAquariusStoneWaterStone

void scAquaRockInsideDouseAquariusStoneWaterStone(void)

Douse on the Water Stone on the dais of the great pool's room: two streams of sparkles run east and west from it along the yellow blocks, six squares.

References fdScriptSetFlag(), scAquaRockInsideAdvanceStreams(), scAquaRockInsideStartSplashes(), scAquaRockInsideStartStream(), Sint32 and sySynch().

Definition at line 907 of file aqua_rock_inside.c.

scAquaRockInsideParchPool

void scAquaRockInsideParchPool(void)

Parch on the pool around the sunken Rusty Sword chest dries it for good, leaving the chest within reach.

References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesLayered() and fdScriptSetFlag().

Referenced by scPrepareMap().

Definition at line 925 of file aqua_rock_inside.c.

scAquaRockInsideSetPillarMetatileJumpable

void scAquaRockInsideSetPillarMetatileJumpable(void)

Where the water pillar Felix can Move in the lower exit's puzzle comes to rest, its square becomes one he hops across (MAP_METATILE_JUMP).

References fdActorGet() and fdMapGridCopyMetatileAttributes().

Referenced by scPrepareMap().

Definition at line 969 of file aqua_rock_inside.c.

scAquaRockInsideSetPillarMetatilePushable

void scAquaRockInsideSetPillarMetatilePushable(void)

Lets the lower exit's movable water pillar slide: as Felix starts to Move or push it, the square it leaves takes MAP_METATILE_PUSH, as the ground a pushed thing slides over does.

References fdActorGet() and fdMapGridCopyMetatileAttributes().

Definition at line 984 of file aqua_rock_inside.c.

scAquaRockInsideDouseLowerExitWaterStone

void scAquaRockInsideDouseLowerExitWaterStone(void)

Douse on the Water Stone of the lower exit's puzzle, once its Moai has flooded the room: the stream runs along the water pillars, turned by the one Felix has Moved, and if it reaches its goal it stays turned for good. Before the Moai fills, nothing happens.

References fdScriptGetFlag(), fdScriptSetFlag(), result, scAquaRockInsideAdvanceStreams(), scAquaRockInsideBlockMetatileUnder(), scAquaRockInsideStartSplashes(), scAquaRockInsideStartStream() and Sint32.

Definition at line 1000 of file aqua_rock_inside.c.

scAquaRockInsideDouseLowerExitMoai

void scAquaRockInsideDouseLowerExitMoai(Sint32 unused, Sint32 id)

Douse on the grey Moai of the lower exit's puzzle: it turns blue and pours water from its mouth, and the room floods around the water pillars, so that the Water Stone's stream can run.

References fdActorGet(), fdActorSetAnimation(), fdMapGridCenterOnFollowedPoint(), fdMapLoadMetatilesAndShapes(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), scAquaRockInsideAddMoaiWater(), scAquaRockInsideSetPillarMetatileJumpableInWater(), scFieldActorSetSpriteColor(), scFieldScriptEndLastingPsynergy(), Sint32 and sySynch().

Definition at line 1024 of file aqua_rock_inside.c.

scAquaRockInsideJumpDownLedge

void scAquaRockInsideJumpDownLedge()

Felix jumps down the ledge he faces.

References fdActorJumpDownLedge(), fdScriptEnd() and MainRoutineStateWork.

Referenced by scAquaRockInsideStepIntoVentGust().

Definition at line 1051 of file aqua_rock_inside.c.

scAquaRockInsideStepIntoVentGust

void scAquaRockInsideStepIntoVentGust(Sint32 cue)

Stepping in front of a vent in the entrance or vents room (metatiles (9, 34) and (13, 34) in the first, (17, 22) and (19, 22) in the second, with the squares south of them): its gust blows Felix south, spinning, to the edge of the ledge and over it. A stone pillar Moved in front of the vent shields him, and nothing happens.

References fdActorGet(), fdMapGridCheckCollision(), fdScriptStart(), MainRoutineStateWork, result, scAquaRockInsideJumpDownLedge(), scFieldScriptEndLastingPsynergy(), Sint32 and sySynch().

Definition at line 1063 of file aqua_rock_inside.c.

scAquaRockInsideDouseVentsWaterStone

void scAquaRockInsideDouseVentsWaterStone(void)

Douse on the Water Stone of the vents room: a stream of sparkles runs west from it along the yellow blocks, five squares.

References fdScriptSetFlag(), scAquaRockInsideAdvanceStreams(), scAquaRockInsideStartSplashes(), scAquaRockInsideStartStream(), Sint32 and sySynch().

Definition at line 1136 of file aqua_rock_inside.c.

scAquaRockInsideRideFalls

void scAquaRockInsideRideFalls(Sint32 exit)

Stepping into the foot of the waterfall in the entrance, at the north end of its pool (metatile (10, 10)): Felix tumbles, turns blue with his arms raised and is carried up out of sight, and comes out by exit on Aqua Rock's summit.

References fdActorGet(), fdActorSelectAnimation(), fdActorSetSpriteColorMode(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), MainRoutineStateWork, scActorSpawnWadingSplash(), scFieldActorSetSpritePriority(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), Sint32 and sySynch().

Definition at line 1155 of file aqua_rock_inside.c.

scAquaRockInsideBlockMoaiWithPillar

void scAquaRockInsideBlockMoaiWithPillar(Sint32 unused, Sint32 id)

Moving the stone pillar of the entrance in front of the green Moai's mouth (column 49) stops its water: the pool below sinks a level and three puddles are left on its floor for Frost.

References fdActorFaceDirection(), fdActorGetById(), fdActorSetAnimation(), fdBlendScriptResume(), fdBlendScriptSuspend(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesLayered(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, scFieldActorSetSpritePriority(), scFieldScriptEndLastingPsynergy(), Sint32 and sySynch().

Definition at line 1196 of file aqua_rock_inside.c.

scAquaRockInsideFreezeRoomPuddle

void scAquaRockInsideFreezeRoomPuddle(Sint32 unused, Sint32 id)

Frost on one of the three puddles left in the entrance's sunken pool freezes it, and Felix can hop across it (MAP_METATILE_JUMP).

References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdScriptSetFlag() and Sint32.

Definition at line 1247 of file aqua_rock_inside.c.

scAquaRockInsideFreeVentPillars

void scAquaRockInsideFreeVentPillars(void)

Lets the stone pillars beside the entrance's vents slide: as Felix starts to Move or push one, the ground along their row (row 34) takes MAP_METATILE_PUSH, keeping the vents' gusts, so the pillar can go in front of a vent.

References fdMapGridCopyMetatileAttributes().

Definition at line 1269 of file aqua_rock_inside.c.

scAquaRockInsideSettleVentPillars

void scAquaRockInsideSettleVentPillars(Sint32 unused, Sint32 id)

When either stone pillar beside the entrance's vents comes to rest, both stop, and the square under each loses its gust and becomes one Felix hops across (MAP_METATILE_JUMP).

References fdActorGet(), fdMapGridCopyMetatileAttributes() and Sint32.

Referenced by scInit().

Definition at line 1277 of file aqua_rock_inside.c.

scAquaRockInsideWaitToRise

void scAquaRockInsideWaitToRise(ACTOR *actor)

Waits, for 60 ticks at most, until the actor stops moving up or down.

References Sint32 and sySynch().

Definition at line 1294 of file aqua_rock_inside.c.

scAquaRockInsideCheckPsynergyStone

void scAquaRockInsideCheckPsynergyStone(void)

Checking the big Psynergy Stone in the middle of its cave (metatile (12, 13)): "Everyone's PP was replenished!"

References fdPartyAddPp(), fdScriptClearFlag(), fdScriptEnd(), fdScriptPlaySound(), fdScriptStart(), mnMessageShowCentered(), scFieldScriptEndLastingPsynergy() and scFieldScriptWait().

Definition at line 1309 of file aqua_rock_inside.c.

scAquaRockInsideMovePuzzlePillar

void scAquaRockInsideMovePuzzlePillar(Sint32 unused, Sint32 id)

Move on the west of the two stone pillars at the south of the waterfall room (row 39): the ground follows it, the two pillars' starting squares going back to floor and its new square taking the pillar's.

References fdActorGet(), fdMapGridCopyMetatileAttributes() and Sint32.

Definition at line 1325 of file aqua_rock_inside.c.

scAquaRockInsideDouseWaterfallWaterStone

void scAquaRockInsideDouseWaterfallWaterStone(void)

Douse on the Water Stone of the waterfall room's puzzle, once its Moai has flooded the room: the stream runs along the water pillars, turned by the three Felix can Move, and if it reaches its goal it stays turned for good. Before the Moai fills, nothing happens.

References Call2(), fdScriptGetFlag(), fdScriptSetFlag(), result, scAquaRockInsideAdvanceStreams(), scAquaRockInsideBlockMetatileUnder(), scAquaRockInsideStartSplashes(), scAquaRockInsideStartStream() and Sint32.

Definition at line 1338 of file aqua_rock_inside.c.

scAquaRockInsideDouseWaterfallMoai

void scAquaRockInsideDouseWaterfallMoai(Sint32 unused, Sint32 id)

Douse on the grey Moai of the waterfall room's puzzle: it turns blue and pours water from its mouth, and the room floods around the water pillars.

References fdActorGet(), fdActorSetAnimation(), fdMapGridCenterOnFollowedPoint(), fdMapLoadMetatilesAndShapes(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), scAquaRockInsideAddMoaiWater(), scFieldActorSetSpriteColor(), scFieldScriptEndLastingPsynergy(), Sint32 and sySynch().

Definition at line 1367 of file aqua_rock_inside.c.

scAquaRockInsideWaterSinks

void scAquaRockInsideWaterSinks(void)

Once Piers has learned Parch, the ground trembles and the water round the tablet's dais sinks away, but a pool is left on the steps before the tablet, which keeps Felix from leaving until Parch dries it.

References fdMapGridCenterOnFollowedPoint(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesLayered(), fdScriptEnd(), fdScriptSetFlag(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), Sint32 and sySynch().

Referenced by scAquaRockInsideReadParchTablet().

Definition at line 1401 of file aqua_rock_inside.c.

scAquaRockInsideParchLastPool

void scAquaRockInsideParchLastPool(void)

Parch on the pool left on the steps before the Parch tablet dries it, and the way out of the room is open.

References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesLayered() and fdScriptClearFlag().

Definition at line 1433 of file aqua_rock_inside.c.

scAquaRockInsidePiersLearnsParch

void scAquaRockInsidePiersLearnsParch(Sint32 tabletId, Sint32 adeptId)

The tablet (tabletId) rises and glows, sparks gather on Piers (adeptId) and he learns Parch in a flash.

References AquaRockInsideSpiralSparkScript, AquaRockInsideTabletGlowScript, fdActorConfigureSpriteColor(), fdActorGetById(), fdActorSelectAnimation(), fdActorSetBlendMode(), fdActorSetMovementTypeById(), fdActorSetSpriteColor(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorStartScript(), fdCameraMoveWithinMapBounds(), fdPaletteFadeSetSource(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdScriptWait(), gmPlayMusic(), LessonAdeptRiseScript, LessonAdeptSettleScript, LessonSeekingSparkScript, LessonTabletRiseScript, LessonTabletSettleScript, scActorEmitSparkles(), scFieldActorCreate(), scFieldVectorAddPolarOffsetFX(), scSetActorSpritePriority(), Sint32, syImportActorCreate(), syRandom(), sySoundPlay() and sySynch().

Referenced by scAquaRockInsideReadParchTablet().

Definition at line 1449 of file aqua_rock_inside.c.

scAquaRockInsideReadParchTablet

void scAquaRockInsideReadParchTablet(void)

Reading the tablet from its south side: "Wielder of Water's strength... Lay your hands upon this stone." Piers steps out of the party ("Water's strength, huh? That sounds like my sort of thing"), touches it, rises in a glow and learns Parch. The water then sinks, leaving a pool on the steps; Piers wonders what went wrong, decides their power is being tested, and walks back into Felix. Once Parch is learned only the tablet's words show.

References fdActorFaceDirection(), fdActorFaceEachOther(), fdActorGet(), fdActorPlaceOnActor(), fdActorSetAnimation(), fdActorSetDestination(), fdActorShowEmote(), fdActorWalkTo(), fdActorWalkToAndWait(), fdPartyLearnAbility(), fdScriptEnd(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, mnMessageShowCentered(), scAquaRockInsidePiersLearnsParch(), scAquaRockInsideWaterSinks(), scFieldActorWaitForMoveById(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptWait() and Sint32.

Referenced by scAquaRockInsideWalkToParchTablet().

Definition at line 1598 of file aqua_rock_inside.c.

scAquaRockInsideWalkToParchTablet

void scAquaRockInsideWalkToParchTablet(void)

Checking the Parch tablet from its north side: Felix walks round to the front and reads it (scAquaRockInsideReadParchTablet), or once Parch is learned only its words show.

References fdActorFaceDirection(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), MainRoutineStateWork, mnMessageShowCentered(), scAquaRockInsideReadParchTablet(), scFieldScriptEndLastingPsynergy() and scFieldScriptWait().

Definition at line 1686 of file aqua_rock_inside.c.

scAquaRockInsideReadTabletFacingWest

DEFINE_AQUA_ROCK_INSIDE_READ_TABLET(scAquaRockInsideReadTabletFacingWest, 280)

Checking the Parch tablet from its east side: Felix steps round to the front and reads it.

Definition at line 1735 of file aqua_rock_inside.c.

scAquaRockInsideReadTabletFacingEast

DEFINE_AQUA_ROCK_INSIDE_READ_TABLET(scAquaRockInsideReadTabletFacingEast, 248)

Checking the Parch tablet from its west side: Felix steps round to the front and reads it.

Definition at line 1739 of file aqua_rock_inside.c.

scGetCues

const CUE *scGetCues(void)

References AquaRockInsideAquariusStoneCues, AquaRockInsideCues, AquaRockInsideEntranceCues, AquaRockInsideFloodedHallCues, AquaRockInsideLowerExitCues, AquaRockInsideParchTabletCues, AquaRockInsidePsynergyStoneCues, AquaRockInsideSteamCues, AquaRockInsideTightropeCues, AquaRockInsideVentsCues, AquaRockInsideWaterfallCues and MainRoutineStateWork.

Definition at line 1753 of file aqua_rock_inside.c.

scAquaRockInsideSplashBeneath

void scAquaRockInsideSplashBeneath(ACTOR *actor)

The hook of the hidden actor at the foot of the entrance's waterfall: every sixteenth tick a ring of spray (SPRITE_SPLASH_RING's animation 2) spreads on the water there for 31 ticks.

References AquaRockInsideSplashScript, fdActorStartScript(), fdSpriteStartAnimation(), scFieldActorCreate(), Sint32 and TickCount.

Referenced by scInit().

Definition at line 1800 of file aqua_rock_inside.c.

scAquaRockInsideFallThroughWater

void scAquaRockInsideFallThroughWater(void)

Arriving in the entrance down its waterfall from Aqua Rock's summit: Felix, tinted blue, drops spinning into the pool at the waterfall's foot, splashes and comes to stand on the yellow block there.

References fdActorGet(), fdActorMoveToAndWait(), fdActorSetSpriteColorMode(), fdActorSetSpriteFlags(), fdScriptEnd(), fdScriptPlaySound(), fdScriptStart(), fdScriptStartScreenTransition(), MainRoutineStateWork, scActorSpawnWadingSplash(), scFieldScriptEndLastingPsynergy(), Sint32 and sySynch().

Referenced by scInit().

Definition at line 1830 of file aqua_rock_inside.c.

scAquaRockInsideUpdateVents

void scAquaRockInsideUpdateVents(void)

The vents' hook: they blow for VENT_BLOW_TICKS, with their sound, then stop.

References fdQueueMusic(), scVentAdvanceCounter(), scVentGetCounter(), scVentSetBlowing() and Sint32.

Referenced by scInit().

Definition at line 1867 of file aqua_rock_inside.c.

scInit

Sint32 scInit(void)

Entering one of the inner rooms: the Moai already filled pour water and the empty ones stand grey, Steam's room shows its drained stream and its dropped pillar, the vents blow in the rooms that have them, and arriving from the summit Felix falls through the waterfall into the entrance.

References AquaRockInsideEntranceVentPillars, AquaRockInsideEntranceVents, AquaRockInsideVentsRoomVentPillars, AquaRockInsideVentsRoomVents, fdActorGetById(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesLayered(), fdQueueMusic(), MainRoutineStateWork, scAquaRockInsideAddMoaiWater(), scAquaRockInsideFallThroughWater(), scAquaRockInsideSetPillarMetatileJumpableInWater(), scAquaRockInsideSettleVentPillars(), scAquaRockInsideSplashBeneath(), scAquaRockInsideUpdateVents(), scFieldActorSetSpriteColor(), scLeaderRiseFromWater(), scVentsStart(), Sint32 and syGameFlagGet().

Definition at line 1891 of file aqua_rock_inside.c.

scPrepareMap

Sint32 scPrepareMap(void)

Readies the map of the room the party enters: raises its spouts and water pillars to the water's level, floods or drains it as its Moai and Parch have left it, sets the stone pillars where they were Moved, sends the streams of the Water Stones already doused, and opens the great pool once the Aquarius Stone is set. The entrance's puddles wait at the map's corner until the Moai there is stopped.

References Call2(), fdActorGetById(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdEffectStartBlankOverlay(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesLayered(), fdScriptGetFlag(), fdScriptSetFlag(), fdTightropeInit(), fdTightropePlace(), MainRoutineStateWork, scAquaRockInsideAddPillar(), scAquaRockInsideAddSpouts(), scAquaRockInsideAdvanceStreams(), scAquaRockInsideBlockMetatileUnder(), scAquaRockInsideParchPool(), scAquaRockInsideSetPillarHeight(), scAquaRockInsideSetPillarMetatileJumpable(), scAquaRockInsideShowAquariusStone(), scAquaRockInsideStartPillars(), scAquaRockInsideStartSplashes(), scAquaRockInsideStartStream(), Sint32, syGameFlagGet() and Value3().

Definition at line 2073 of file aqua_rock_inside.c.

scAquaRockInsideSetPillarHeight

void scAquaRockInsideSetPillarHeight(Uint32 index, Sint32 height)

Raises spout index alone to height, its metatile taking MAP_SHAPE_RAISED_ALONE at that height.

References AquaRockInsidePillars and Sint32.

Referenced by scAquaRockInsideDouseFloodedHallEastMoai() and scPrepareMap().

Definition at line 2717 of file aqua_rock_inside.c.

Variables in detail

AquaRockInsideStreamLevel

extern Sint32 AquaRockInsideStreamLevel

Referenced by scAquaRockInsideDrainStream().

Definition at line 136 of file aqua_rock_inside.c.

AquaRockInsidePoolLevelMetatiles

extern Uint8 AquaRockInsidePoolLevelMetatiles[POOL_LEVELS * 2]

Uint8 AquaRockInsidePoolLevelMetatiles[POOL_LEVELS * 2]

Where on the map each of the great pool's pictures is taken from: a column and a row for each.

Where each of the great pool's pictures lies in the map, x then z.

Referenced by scAquaRockInsideUseAquariusStone().

Definition at lines 139 and 2997 of file aqua_rock_inside.c.

AquaRockInsideStreamTurns

extern Sint8 AquaRockInsideStreamTurns[]

Referenced by scAquaRockInsideAdvanceStreams().

Definition at line 140 of file aqua_rock_inside.c.

AquaRockInsidePillars

PILLAR_STATE AquaRockInsidePillars

Referenced by scAquaRockInsideAddPillar(), scAquaRockInsideAddSpouts(), scAquaRockInsideDrawPillars(), scAquaRockInsideSetPillarHeight(), scAquaRockInsideSetPillarsHeight() and scAquaRockInsideStartPillars().

Definition at line 141 of file aqua_rock_inside.c.

AquaRockInsideStreams

STREAM_STATE AquaRockInsideStreams

Referenced by scAquaRockInsideAdvanceStreams(), scAquaRockInsideDrawSplashes(), scAquaRockInsideStartSplashes() and scAquaRockInsideStartStream().

Definition at line 142 of file aqua_rock_inside.c.

OrbitSparkScript

extern Uint32 OrbitSparkScript[]

Uint32 OrbitSparkScript[]

An orbiting spark's script: it shows for 6 ticks, then is released.

Referenced by scOrbitSparkSpawn().

Definition at lines 143 and 3004 of file aqua_rock_inside.c.

AquaRockInsideSplashScript

extern Uint32 AquaRockInsideSplashScript[]

Uint32 AquaRockInsideSplashScript[]

A splash's script at the foot of the waterfall.

Referenced by scAquaRockInsideSplashBeneath().

Definition at lines 144 and 3030 of file aqua_rock_inside.c.

AquaRockInsidePillarTiles

extern const Uint8 AquaRockInsidePillarTiles[]

The water pillars' tiles, compressed (graphics/aqua_rock_inside/tiles.list.tsv).

Referenced by scAquaRockInsideStartPillars().

Definition at line 149 of file aqua_rock_inside.c.

AquaRockInsideSplashTiles

extern const Uint8 AquaRockInsideSplashTiles[]

The splashes' tiles, compressed.

Referenced by scAquaRockInsideStartSplashes().

Definition at line 151 of file aqua_rock_inside.c.

AquaRockInsideTabletGlowScript

extern Uint32 AquaRockInsideTabletGlowScript[]

Uint32 AquaRockInsideTabletGlowScript[]

A glow rising from the Parch tablet.

Referenced by scAquaRockInsidePiersLearnsParch().

Definition at lines 154 and 3011 of file aqua_rock_inside.c.

AquaRockInsideSpiralSparkScript

extern Sint32 AquaRockInsideSpiralSparkScript[]

Sint32 AquaRockInsideSpiralSparkScript[]

A spark spiralling in to Piers, leaving a trail of small ones.

References scOrbiterSpiral() and Sint32.

Referenced by scAquaRockInsidePiersLearnsParch().

Definition at lines 155 and 3019 of file aqua_rock_inside.c.

AquaRockInsideVentsRoomVents

extern Uint16 AquaRockInsideVentsRoomVents[]

Uint16 AquaRockInsideVentsRoomVents[]

The vents room's vents: x, z and the speed of each gust, ended by 0; and the pillar their puffs land on.

Referenced by scInit().

Definition at lines 160 and 3038 of file aqua_rock_inside.c.

AquaRockInsideVentsRoomVentPillars

extern Uint16 AquaRockInsideVentsRoomVentPillars[]

Uint16 AquaRockInsideVentsRoomVentPillars[]

Referenced by scInit().

Definition at lines 161 and 3041 of file aqua_rock_inside.c.

AquaRockInsideEntranceVents

extern Uint16 AquaRockInsideEntranceVents[]

Uint16 AquaRockInsideEntranceVents[]

The entrance's vents, and the two pillars their puffs land on.

Referenced by scInit().

Definition at lines 162 and 3046 of file aqua_rock_inside.c.

AquaRockInsideEntranceVentPillars

extern Uint16 AquaRockInsideEntranceVentPillars[]

Uint16 AquaRockInsideEntranceVentPillars[]

Referenced by scInit().

Definition at lines 163 and 3049 of file aqua_rock_inside.c.

AquaRockInsidePlacements

extern ACTOR_PLACE AquaRockInsidePlacements[]

Referenced by scGetActorPlacements().

Definition at line 497 of file aqua_rock_inside.c.

AquaRockInsideFloodedHallPlacements

extern ACTOR_PLACE AquaRockInsideFloodedHallPlacements[]

Referenced by scGetActorPlacements().

Definition at line 498 of file aqua_rock_inside.c.

AquaRockInsideSteamPlacements

extern ACTOR_PLACE AquaRockInsideSteamPlacements[]

Referenced by scGetActorPlacements().

Definition at line 499 of file aqua_rock_inside.c.

AquaRockInsideAquariusStonePlacements

extern ACTOR_PLACE AquaRockInsideAquariusStonePlacements[]

Referenced by scGetActorPlacements().

Definition at line 500 of file aqua_rock_inside.c.

AquaRockInsideLowerExitPlacements

extern ACTOR_PLACE AquaRockInsideLowerExitPlacements[]

Referenced by scGetActorPlacements().

Definition at line 501 of file aqua_rock_inside.c.

AquaRockInsideVentsPlacements

extern ACTOR_PLACE AquaRockInsideVentsPlacements[]

Referenced by scGetActorPlacements().

Definition at line 502 of file aqua_rock_inside.c.

AquaRockInsideEntrancePlacements

extern ACTOR_PLACE AquaRockInsideEntrancePlacements[]

Referenced by scGetActorPlacements().

Definition at line 503 of file aqua_rock_inside.c.

AquaRockInsidePsynergyStonePlacements

extern ACTOR_PLACE AquaRockInsidePsynergyStonePlacements[]

Referenced by scGetActorPlacements().

Definition at line 504 of file aqua_rock_inside.c.

AquaRockInsideTightropePlacements

extern ACTOR_PLACE AquaRockInsideTightropePlacements[]

Referenced by scGetActorPlacements().

Definition at line 505 of file aqua_rock_inside.c.

AquaRockInsideWaterfallPlacements

extern ACTOR_PLACE AquaRockInsideWaterfallPlacements[]

Referenced by scGetActorPlacements().

Definition at line 506 of file aqua_rock_inside.c.

AquaRockInsideParchTabletPlacements

extern ACTOR_PLACE AquaRockInsideParchTabletPlacements[]

Referenced by scGetActorPlacements().

Definition at line 507 of file aqua_rock_inside.c.

AquaRockInsideCues

extern CUE AquaRockInsideCues[]

Referenced by scGetCues().

Definition at line 1741 of file aqua_rock_inside.c.

AquaRockInsideFloodedHallCues

extern CUE AquaRockInsideFloodedHallCues[]

Referenced by scGetCues().

Definition at line 1742 of file aqua_rock_inside.c.

AquaRockInsideSteamCues

extern CUE AquaRockInsideSteamCues[]

Referenced by scGetCues().

Definition at line 1743 of file aqua_rock_inside.c.

AquaRockInsideAquariusStoneCues

extern CUE AquaRockInsideAquariusStoneCues[]

Referenced by scGetCues().

Definition at line 1744 of file aqua_rock_inside.c.

AquaRockInsideLowerExitCues

extern CUE AquaRockInsideLowerExitCues[]

Referenced by scGetCues().

Definition at line 1745 of file aqua_rock_inside.c.

AquaRockInsideVentsCues

extern CUE AquaRockInsideVentsCues[]

Referenced by scGetCues().

Definition at line 1746 of file aqua_rock_inside.c.

AquaRockInsideEntranceCues

extern CUE AquaRockInsideEntranceCues[]

Referenced by scGetCues().

Definition at line 1747 of file aqua_rock_inside.c.

AquaRockInsidePsynergyStoneCues

extern CUE AquaRockInsidePsynergyStoneCues[]

Referenced by scGetCues().

Definition at line 1748 of file aqua_rock_inside.c.

AquaRockInsideTightropeCues

extern CUE AquaRockInsideTightropeCues[]

Referenced by scGetCues().

Definition at line 1749 of file aqua_rock_inside.c.

AquaRockInsideWaterfallCues

extern CUE AquaRockInsideWaterfallCues[]

Referenced by scGetCues().

Definition at line 1750 of file aqua_rock_inside.c.

AquaRockInsideParchTabletCues

extern CUE AquaRockInsideParchTabletCues[]

Referenced by scGetCues().

Definition at line 1751 of file aqua_rock_inside.c.

On this page

StructuresMacrosEnumerationsFunctionsVariablesDescriptionMacros in detailPILLAR_ENTRIESSPOUT_KINDSPILLAR_COLUMN_PIECESPILLAR_TOP_TILESPILLAR_COLUMN_TILESWATER_SPRITE_DEPTHSPLASH_ENTRIESPOOL_LEVELSEFFECT_SET_MODEEFFECT_SET_SCRIPTEFFECT_SPRITE_PRIORITYWATER_LEVEL_STEPBLUE_ROCK_SPOUTFLAG_AQUA_ROCK_WEST_PILLAR_SETFLAG_AQUA_ROCK_EAST_PILLAR_SETFLAG_AQUA_ROCK_STEAM_ROOM_PILLAR_DROPPEDFLAG_AQUA_ROCK_AQUARIUS_STONE_SETFLAG_AQUA_ROCK_LOWER_EXIT_STREAMS_TURNEDFLAG_AQUA_ROCK_WATERFALL_STREAMS_TURNEDFLAG_AQUA_ROCK_AQUARIUS_STONE_WATER_STONE_DOUSEDFLAG_AQUA_ROCK_VENTS_WATER_STONE_DOUSEDFLAG_AQUA_ROCK_LOWER_EXIT_POOL_PARCHEDFLAG_PIERS_LEARNED_PARCHFLAG_FLOODED_HALL_EAST_MOAI_FILLEDFLAG_FLOODED_HALL_WEST_MOAI_FILLEDFLAG_FLOODED_HALL_PUDDLE_FROZENFLAG_STEAM_ROOM_STREAM_DRAINEDFLAG_LOWER_EXIT_MOAI_FILLEDFLAG_LOWER_EXIT_WATER_STONE_DOUSEDFLAG_ENTRANCE_MOAI_BLOCKEDFLAG_ENTRANCE_PUDDLE_A_FROZENFLAG_ENTRANCE_PUDDLE_B_FROZENFLAG_ENTRANCE_PUDDLE_C_FROZENFLAG_WATERFALL_MOAI_FILLEDFLAG_WATERFALL_WATER_STONE_DOUSEDFLAG_PARCH_TABLET_POOL_LEFTCUE_STEAM_ROOM_MOAICUE_WEST_VENT_GUSTCUE_EAST_VENT_GUSTSTREAM_STOPDEFINE_AQUA_ROCK_INSIDE_READ_TABLETVENT_BLOW_TICKSSET_BG1CNT_PRIORITYEnumerations in detailPILLAR_ENTRY_STATEAQUA_ROCK_INSIDE_FLOODED_HALL_WAYAQUA_ROCK_INSIDE_STEAM_WAYAQUA_ROCK_INSIDE_LOWER_EXIT_WAYAQUA_ROCK_INSIDE_VENTS_WAYAQUA_ROCK_INSIDE_ENTRANCE_WAYAQUA_ROCK_INSIDE_CUE_METATILEAQUA_ROCK_INSIDE_COLLISION_CODESTREAM_BENDAQUA_ROCK_INSIDE_FLOODED_HALL_ACTOR_IDAQUA_ROCK_INSIDE_STEAM_ACTOR_IDAQUA_ROCK_INSIDE_AQUARIUS_STONE_ACTOR_IDAQUA_ROCK_INSIDE_LOWER_EXIT_ACTOR_IDAQUA_ROCK_INSIDE_VENTS_ACTOR_IDAQUA_ROCK_INSIDE_ENTRANCE_ACTOR_IDAQUA_ROCK_INSIDE_TIGHTROPE_ACTOR_IDAQUA_ROCK_INSIDE_WATERFALL_ACTOR_IDAQUA_ROCK_INSIDE_PARCH_TABLET_ACTOR_IDanonymous enumFunctions in detailscAquaRockInsideDrainStreamscAquaRockInsideBlockMetatileUnderscAquaRockInsideSetPillarMetatileJumpableInWaterscAquaRockInsideAddMoaiWaterscAquaRockInsideDrawPillarsscAquaRockInsideSetPillarsHeightscAquaRockInsideDrawSplashesscAquaRockInsideStartSplashesscAquaRockInsideStartStreamscAquaRockInsideAdvanceStreamsscVentPuffscVentSetBlowingscVentGetCounterscAquaRockInsideWaitToLandscAquaRockInsideStartPillarsscAquaRockInsideAddSpoutsscAquaRockInsideShowAquariusStonescAquaRockInsideAddPillarscAquaRockInsideFightSteamscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscAquaRockInsideSetPillarInGapscAquaRockInsideJumpForwardscAquaRockInsideDouseFloodedHallEastMoaiscAquaRockInsideDouseFloodedHallWestMoaiscAquaRockInsideMoveBlueRockscAquaRockInsideFreezePuddlescAquaRockInsidePushPillarOffLedgescAquaRockInsideParchSteamRoomMoaiscAquaRockInsideSteamRoomStreamDrainsscAquaRockInsideUseAquariusStonescAquaRockInsideOpenDoorToTabletscAquaRockInsideCheckColumnscAquaRockInsideDouseAquariusStoneWaterStonescAquaRockInsideParchPoolscAquaRockInsideSetPillarMetatileJumpablescAquaRockInsideSetPillarMetatilePushablescAquaRockInsideDouseLowerExitWaterStonescAquaRockInsideDouseLowerExitMoaiscAquaRockInsideJumpDownLedgescAquaRockInsideStepIntoVentGustscAquaRockInsideDouseVentsWaterStonescAquaRockInsideRideFallsscAquaRockInsideBlockMoaiWithPillarscAquaRockInsideFreezeRoomPuddlescAquaRockInsideFreeVentPillarsscAquaRockInsideSettleVentPillarsscAquaRockInsideWaitToRisescAquaRockInsideCheckPsynergyStonescAquaRockInsideMovePuzzlePillarscAquaRockInsideDouseWaterfallWaterStonescAquaRockInsideDouseWaterfallMoaiscAquaRockInsideWaterSinksscAquaRockInsideParchLastPoolscAquaRockInsidePiersLearnsParchscAquaRockInsideReadParchTabletscAquaRockInsideWalkToParchTabletscAquaRockInsideReadTabletFacingWestscAquaRockInsideReadTabletFacingEastscGetCuesscAquaRockInsideSplashBeneathscAquaRockInsideFallThroughWaterscAquaRockInsideUpdateVentsscInitscPrepareMapscAquaRockInsideSetPillarHeightVariables in detailAquaRockInsideStreamLevelAquaRockInsidePoolLevelMetatilesAquaRockInsideStreamTurnsAquaRockInsidePillarsAquaRockInsideStreamsOrbitSparkScriptAquaRockInsideSplashScriptAquaRockInsidePillarTilesAquaRockInsideSplashTilesAquaRockInsideTabletGlowScriptAquaRockInsideSpiralSparkScriptAquaRockInsideVentsRoomVentsAquaRockInsideVentsRoomVentPillarsAquaRockInsideEntranceVentsAquaRockInsideEntranceVentPillarsAquaRockInsidePlacementsAquaRockInsideFloodedHallPlacementsAquaRockInsideSteamPlacementsAquaRockInsideAquariusStonePlacementsAquaRockInsideLowerExitPlacementsAquaRockInsideVentsPlacementsAquaRockInsideEntrancePlacementsAquaRockInsidePsynergyStonePlacementsAquaRockInsideTightropePlacementsAquaRockInsideWaterfallPlacementsAquaRockInsideParchTabletPlacementsAquaRockInsideCuesAquaRockInsideFloodedHallCuesAquaRockInsideSteamCuesAquaRockInsideAquariusStoneCuesAquaRockInsideLowerExitCuesAquaRockInsideVentsCuesAquaRockInsideEntranceCuesAquaRockInsidePsynergyStoneCuesAquaRockInsideTightropeCuesAquaRockInsideWaterfallCuesAquaRockInsideParchTabletCues