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…
#include "macros.h"#include "window/window.h"#include "item_ids.h"#include "field/field_engine.h"#include "field/actor_script.h"#include "scene/scene.h"#include "graphics/palette_buffers.h"#include "field/map.h"#include "scene/ground_effects.h"#include "game/game.h"#include "edition.h"#include "field/script_inline.h"#include "field/call.h"#include "shared/actor_set_sprite_priority.c"#include "shared/actor_create_silhouette.c"#include "shared/scene_create_actor.c"#include "../field/field_effect_move.c"#include "shared/field_effect_spawn.c"#include "text/msg_ids.h"#include "shared/orbit_spark_spawn.c"#include "shared/orbiter_spiral.c"#include "shared/orbit_update.c"#include "shared/actor_aim_at_watched.c"#include "shared/actor_step_to_watched.c"#include "shared/actor_emit_sparkles.c"#include "shared/actor_spawn_wading_splash.c"#include "shared/actor_emit_ripples.c"#include "shared/leader_flow_with_stream.c"#include "shared/moai_add_water.c"#include "shared/leader_spin_away.c"#include "shared/actor_emit_mist.c"#include "shared/leader_sink_away.c"#include "shared/leader_rise_from_water.c"#include "shared/actor_vent_bounce.c"#include "shared/actor_start_scripted.c"#include "shared/vent_update.c"#include "shared/vents_start.c"#include "shared/vent_is_blowing.c"#include "shared/vent_advance_counter.c"#include "shared/vent_set_gust.c"#include "shared/vent_set_id.c"#include "shared/field_effect_duration_scripts.c"#include "shared/lesson_seeking_spark_script.c"#include "shared/lesson_scripts.c"#include "shared/ripple_script.c"#include "shared/dust_burst_script.c"
Structures
| Name | Description | |
|---|---|---|
struct | PILLAR_ENTRY | A 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. |
struct | PILLAR_STATE | The water pillars and spouts scAquaRockInsideDrawPillars draws, and their VRAM entry. |
struct | STREAM_HEAD | The head of one of the two streams a Water Stone sends: its place and the way it runs, in quarter turns from east. |
struct | SPLASH | A splash the streams leave on an open metatile, and its sprite's attributes. |
struct | STREAM_STATE | The streams and their splashes, which scAquaRockInsideDrawSplashes draws. |
Macros
| Name | Description | |
|---|---|---|
#define | PILLAR_ENTRIES 32 | The most water pillars and spouts a room has. |
#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. |
#define | PILLAR_COLUMN_PIECES 8 | |
#define | PILLAR_TOP_TILES SPRITE_TILES_8BPP(16, 16) | |
#define | PILLAR_COLUMN_TILES SPRITE_TILES_8BPP(16, 8) | |
#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. |
#define | SPLASH_ENTRIES 32 | The most splashes the streams leave at once. |
#define | POOL_LEVELS 16 | The great pool's pictures as it drains, from full to dry. |
#define | EFFECT_SET_MODE fdActorSelectAnimation | |
#define | EFFECT_SET_SCRIPT fdActorStartScript | |
#define | EFFECT_SPRITE_PRIORITY | |
#define | WATER_LEVEL_STEP 32 | How far the water rises or falls when a Moai fills, in pixels. |
#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. |
#define | FLAG_AQUA_ROCK_WEST_PILLAR_SET 0x95a | Aqua Rock's lasting flags. |
#define | FLAG_AQUA_ROCK_EAST_PILLAR_SET 0x95b | |
#define | FLAG_AQUA_ROCK_STEAM_ROOM_PILLAR_DROPPED 0x95c | The stone pillar of Steam's room, pushed off its ledge to the floor below. |
#define | FLAG_AQUA_ROCK_AQUARIUS_STONE_SET 0x95d | The Aquarius Stone set in the column of the great pool's room. |
#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. |
#define | FLAG_AQUA_ROCK_WATERFALL_STREAMS_TURNED 0xa65 | |
#define | FLAG_AQUA_ROCK_AQUARIUS_STONE_WATER_STONE_DOUSED 0xa66 | |
#define | FLAG_AQUA_ROCK_VENTS_WATER_STONE_DOUSED 0xa67 | |
#define | FLAG_AQUA_ROCK_LOWER_EXIT_POOL_PARCHED 0xa6a | The pool of the lower exit's room, dried by Parch. |
#define | FLAG_PIERS_LEARNED_PARCH 0x9ae | Set once Piers has read the tablet and learned Parch. |
#define | FLAG_FLOODED_HALL_EAST_MOAI_FILLED FLAG_SCENE_TEMP(0x30) | This visit's flags, room by room. |
#define | FLAG_FLOODED_HALL_WEST_MOAI_FILLED FLAG_SCENE_TEMP(0x31) | |
#define | FLAG_FLOODED_HALL_PUDDLE_FROZEN FLAG_SCENE_TEMP(0x50) | Frost on the flooded hall's puddle. |
#define | FLAG_STEAM_ROOM_STREAM_DRAINED FLAG_SCENE_TEMP(0x40) | Parch on the Moai of Steam's room: its stream has drained away. |
#define | FLAG_LOWER_EXIT_MOAI_FILLED FLAG_SCENE_TEMP(0x49) | Douse on the lower exit's Moai, and then on its Water Stone. |
#define | FLAG_LOWER_EXIT_WATER_STONE_DOUSED FLAG_SCENE_TEMP(0x48) | |
#define | FLAG_ENTRANCE_MOAI_BLOCKED FLAG_SCENE_TEMP(0x38) | Move on the pillar before the entrance's Moai, which stops its water. |
#define | FLAG_ENTRANCE_PUDDLE_A_FROZEN FLAG_SCENE_TEMP(0x51) | Frost on each of the entrance's three puddles. |
#define | FLAG_ENTRANCE_PUDDLE_B_FROZEN FLAG_SCENE_TEMP(0x52) | |
#define | FLAG_ENTRANCE_PUDDLE_C_FROZEN FLAG_SCENE_TEMP(0x53) | |
#define | FLAG_WATERFALL_MOAI_FILLED FLAG_SCENE_TEMP(0x4b) | Douse on the waterfall room's Moai, and then on its Water Stone. |
#define | FLAG_WATERFALL_WATER_STONE_DOUSED FLAG_SCENE_TEMP(0x4a) | |
#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. |
#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. |
#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. |
#define | CUE_EAST_VENT_GUST 78 | |
#define | STREAM_STOP 8 | In AquaRockInsideStreamTurns, a bend a stream cannot run through: it stops there. |
#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. |
#define | VENT_BLOW_TICKS (60 * 60 * 60) | How long the vents blow: an hour of ticks. |
#define | SET_BG1CNT_PRIORITY (priority) | Sets BG1CNT's priority bits, through the volatile copy the function keeps. |
Enumerations
| Name | Description | |
|---|---|---|
enum | PILLAR_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. |
enum | AQUA_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. |
enum | AQUA_ROCK_INSIDE_STEAM_WAY { WAY_STEAM_NORTHWEST_TO_EAST, WAY_STEAM_EAST_TO_NORTHWEST, WA … } | |
enum | AQUA_ROCK_INSIDE_LOWER_EXIT_WAY { WAY_LOWER_EXIT_SOUTHWEST_TO_SOUTHEAST, WAY_LOWER_EXIT_SOUTHE … } | |
enum | AQUA_ROCK_INSIDE_VENTS_WAY { WAY_VENTS_EAST_TO_WEST, WAY_VENTS_WEST_TO_EAST } | |
enum | AQUA_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. |
enum | AQUA_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. |
enum | AQUA_ROCK_INSIDE_COLLISION_CODE { COLLISION_STREAM_BEND, COLLISION_SECOND_SPOUTS, COLLISION_ST … } | The collision codes the rooms' water reads (MAP_METATILE.collisionCode). |
enum | STREAM_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. |
enum | AQUA_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. |
enum | AQUA_ROCK_INSIDE_STEAM_ACTOR_ID { ACTOR_STEAM_ROOM_MOAI, ACTOR_STEAM_ROOM_PILLAR, ACTOR_STEAM } | Steam's room (AquaRockInsideSteamPlacements). |
enum | AQUA_ROCK_INSIDE_AQUARIUS_STONE_ACTOR_ID { ACTOR_AQUARIUS_STONE_WATER_STONE, ACTOR_AQUARIUS_STONE_BASE, … } | The Aquarius Stone's room (AquaRockInsideAquariusStonePlacements). |
enum | AQUA_ROCK_INSIDE_LOWER_EXIT_ACTOR_ID { ACTOR_LOWER_EXIT_WATER_STONE, ACTOR_LOWER_EXIT_MOAI, ACTOR_L … } | The lower exit (AquaRockInsideLowerExitPlacements). |
enum | AQUA_ROCK_INSIDE_VENTS_ACTOR_ID { ACTOR_VENTS_PILLAR, ACTOR_VENTS_WATER_STONE } | The vents room (AquaRockInsideVentsPlacements). |
enum | AQUA_ROCK_INSIDE_ENTRANCE_ACTOR_ID { ACTOR_ENTRANCE_MOAI_PILLAR, ACTOR_ENTRANCE_MOAI, ACTOR_ENTRA … } | The entrance (AquaRockInsideEntrancePlacements). |
enum | AQUA_ROCK_INSIDE_TIGHTROPE_ACTOR_ID { ACTOR_TIGHTROPE_WEST_POST, ACTOR_TIGHTROPE_EAST_POST } | The tightrope's room (AquaRockInsideTightropePlacements). |
enum | AQUA_ROCK_INSIDE_WATERFALL_ACTOR_ID { ACTOR_WATERFALL_WATER_STONE, ACTOR_WATERFALL_MOAI, ACTOR_WAT … } | The waterfall room (AquaRockInsideWaterfallPlacements). |
enum | AQUA_ROCK_INSIDE_PARCH_TABLET_ACTOR_ID { ACTOR_PARCH_TABLET_FIRST_WATER_PILLAR, ACTOR_PARCH_TABLET } | The Parch tablet's room (AquaRockInsideParchTabletPlacements). |
enum | anonymous 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
| Name | Description | |
|---|---|---|
void | scActorSpawnWadingSplash (ACTOR *actor) | A splash at the actor's feet as it wades, on its sprite's priority. |
Sint32 | scActorEmitMist (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. |
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. |
Sint32 | scAquaRockInsideBlockMetatileUnder (Sint32 id, Sint32 value) | Gives the metatile under actor id the collision code value, so a stream turns there. |
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). |
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. |
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. |
void | scAquaRockInsideSetPillarsHeight (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. |
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. |
void | scAquaRockInsideStartSplashes (void) | Clears the streams' splashes, loads their tiles into VRAM and starts their drawing. |
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. |
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. |
void | scVentBounce (ACTOR *actor) | The motion of a thing a vent throws out (shared/actor_vent_bounce.c). |
void | scActorStartScripted (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. |
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). |
Sint32 | scVentSetBlowing (Sint32 index, Sint32 blowing) | Starts or stops the gust of vent index. |
Sint32 | scVentGetCounter (void) | The vents' tick counter, which their cycles time their gusts by. |
Sint32 | scVentAdvanceCounter (Sint32 limit) | Steps the vents' counter, wrapping at limit. |
void | scAquaRockInsideWaitToLand (ACTOR *actor) | In every edition but the Japanese: lets the actor fall and waits until it lands with a thump. |
void | scLeaderRiseFromWater (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. |
void | scAquaRockInsideStartPillars (void) | Clears the water pillars, loads their tiles into VRAM and starts their drawing. |
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. |
void | scAquaRockInsideShowAquariusStone (void) | The Aquarius Stone shown set in the column. |
void | scAquaRockInsideAddPillar (Sint32 id, Sint32 kind, Sint32 height) | Adds a water pillar on actor id, of kind, risen to height steps. |
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. |
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. |
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). |
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)). |
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. |
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. |
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. |
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. |
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. |
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). |
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. |
void | scAquaRockInsideUseAquariusStone (void) | Using the Aquarius Stone on the empty column at the south of the great pool's room sets it there. |
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. |
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. |
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. |
void | scAquaRockInsideParchPool (void) | Parch on the pool around the sunken Rusty Sword chest dries it for good, leaving the chest within reach. |
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). |
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. |
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. |
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. |
void | scAquaRockInsideJumpDownLedge () | Felix jumps down the ledge he faces. |
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. |
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. |
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. |
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. |
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). |
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. |
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). |
void | scAquaRockInsideWaitToRise (ACTOR *actor) | Waits, for 60 ticks at most, until the actor stops moving up or down. |
void | scAquaRockInsideCheckPsynergyStone (void) | Checking the big Psynergy Stone in the middle of its cave (metatile (12, 13)): "Everyone's PP was replenished!" |
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. |
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. |
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. |
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. |
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. |
void | scAquaRockInsidePiersLearnsParch (Sint32 tabletId, Sint32 adeptId) | The tablet (tabletId) rises and glows, sparks gather on Piers (adeptId) and he learns Parch in a flash. |
void | scAquaRockInsideReadParchTablet (void) | Reading the tablet from its south side: "Wielder of Water's strength... |
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. |
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. |
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. |
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. |
void | scAquaRockInsideUpdateVents (void) | The vents' hook: they blow for VENT_BLOW_TICKS, with their sound, then stop. |
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. |
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. |
void | scAquaRockInsideSetPillarHeight (Uint32 index, Sint32 height) | Raises spout index alone to height, its metatile taking MAP_SHAPE_RAISED_ALONE at that height. |
Variables
| Name | Description | |
|---|---|---|
extern Sint32 | AquaRockInsideStreamLevel | |
extern 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. |
extern Sint8 | AquaRockInsideStreamTurns [] | |
PILLAR_STATE | AquaRockInsidePillars | |
STREAM_STATE | AquaRockInsideStreams | |
extern Uint32 | OrbitSparkScript [] | An orbiting spark's script: it shows for 6 ticks, then is released. |
extern Uint32 | AquaRockInsideSplashScript [] | A splash's script at the foot of the waterfall. |
extern Uint32 | WadingSplashScript [] | A splash's script: it shows for 20 ticks, then is released. |
extern Uint32 | RippleScript [] | A ripple rises a quarter of a pixel a tick for 31 ticks, then is released. |
extern const Uint8 | AquaRockInsidePillarTiles [] | The water pillars' tiles, compressed (graphics/aqua_rock_inside/tiles.list.tsv). |
extern const Uint8 | AquaRockInsideSplashTiles [] | The splashes' tiles, compressed. |
extern Uint32 | DustBurstScript [] | It lasts 44 ticks, then stops and is gone. |
extern Uint32 | LessonTabletRiseScript [] | The tablet lifts 24 pixels. |
extern Uint32 | AquaRockInsideTabletGlowScript [] | A glow rising from the Parch tablet. |
extern Sint32 | AquaRockInsideSpiralSparkScript [] | A spark spiralling in to Piers, leaving a trail of small ones. |
extern Uint32 | LessonAdeptRiseScript [] | The Adept rises 16 pixels. |
extern Sint32 | LessonSeekingSparkScript [] | 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 Sint32 | LessonTabletSettleScript [] | The tablet settles back on its stand. |
extern Sint32 | LessonAdeptSettleScript [] | The Adept settles back to the ground. |
extern 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. |
extern Uint16 | AquaRockInsideVentsRoomVentPillars [] | |
extern Uint16 | AquaRockInsideEntranceVents [] | The entrance's vents, and the two pillars their puffs land on. |
extern Uint16 | AquaRockInsideEntranceVentPillars [] | |
extern ACTOR_PLACE | AquaRockInsidePlacements [] | |
extern ACTOR_PLACE | AquaRockInsideFloodedHallPlacements [] | |
extern ACTOR_PLACE | AquaRockInsideSteamPlacements [] | |
extern ACTOR_PLACE | AquaRockInsideAquariusStonePlacements [] | |
extern ACTOR_PLACE | AquaRockInsideLowerExitPlacements [] | |
extern ACTOR_PLACE | AquaRockInsideVentsPlacements [] | |
extern ACTOR_PLACE | AquaRockInsideEntrancePlacements [] | |
extern ACTOR_PLACE | AquaRockInsidePsynergyStonePlacements [] | |
extern ACTOR_PLACE | AquaRockInsideTightropePlacements [] | |
extern ACTOR_PLACE | AquaRockInsideWaterfallPlacements [] | |
extern ACTOR_PLACE | AquaRockInsideParchTabletPlacements [] | |
extern CUE | AquaRockInsideCues [] | |
extern CUE | AquaRockInsideFloodedHallCues [] | |
extern CUE | AquaRockInsideSteamCues [] | |
extern CUE | AquaRockInsideAquariusStoneCues [] | |
extern CUE | AquaRockInsideLowerExitCues [] | |
extern CUE | AquaRockInsideVentsCues [] | |
extern CUE | AquaRockInsideEntranceCues [] | |
extern CUE | AquaRockInsidePsynergyStoneCues [] | |
extern CUE | AquaRockInsideTightropeCues [] | |
extern CUE | AquaRockInsideWaterfallCues [] | |
extern CUE | AquaRockInsideParchTabletCues [] |
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.
| Enumerator | Value | Description |
|---|---|---|
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.
| Enumerator | Value | Description |
|---|---|---|
WAY_FLOODED_HALL_NORTHWEST_TO_NORTHEAST | 2 | |
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
| Enumerator | Value | Description |
|---|---|---|
WAY_STEAM_NORTHWEST_TO_EAST | 2 | |
WAY_STEAM_EAST_TO_NORTHWEST | ||
WAY_STEAM_EAST_TO_SOUTHWEST | 7 | |
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
| Enumerator | Value | Description |
|---|---|---|
WAY_LOWER_EXIT_SOUTHWEST_TO_SOUTHEAST | 7 | |
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
| Enumerator | Value | Description |
|---|---|---|
WAY_VENTS_EAST_TO_WEST | 4 | |
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.
| Enumerator | Value | Description |
|---|---|---|
WAY_ENTRANCE_SOUTHEAST_TO_SOUTHWEST_A | 4 | |
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.
| Enumerator | Value | Description |
|---|---|---|
CUE_FLOODED_HALL_GAP | 50 | A 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_GAP | 51 | |
CUE_LOWER_EXIT_GAP | 55 | |
CUE_VENTS_GAP | 70 | |
CUE_STREAM | 40 | A stream that carries Felix down it (scLeaderFlowWithStream). |
CUE_LOWER_EXIT_POOL | 50 | The pools Parch dries: round the Rusty |
CUE_PARCH_TABLET_POOL | 40 | Sword chest, and on the Parch tablet's steps. |
CUE_PSYNERGY_STONE | 30 | The Psynergy Stone, and the Parch |
CUE_PARCH_TABLET | 30 | tablet, 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).
| Enumerator | Value | Description |
|---|---|---|
COLLISION_STREAM_BEND | 33 | The first of the eight codes of the bends that turn a stream (AquaRockInsideStreamTurns' columns); their metatiles raise spouts too (scAquaRockInsideAddSpouts). |
COLLISION_SECOND_SPOUTS | 40 | The first of the eight codes of a room's second set of spouts. |
COLLISION_STREAM_GOAL | 55 | A stream's goal: scAquaRockInsideAdvanceStreams counts the streams that reach it. |
COLLISION_STREAM_OPEN | 255 | An 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.
| Enumerator | Value | Description |
|---|---|---|
STREAM_BEND_NORTH_EAST | 3 | |
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.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FLOODED_HALL_EAST_MOAI | ACTOR_FIRST_PLACED | |
ACTOR_FLOODED_HALL_WEST_MOAI | ||
ACTOR_FLOODED_HALL_WEST_PILLAR | ||
ACTOR_FLOODED_HALL_EAST_PILLAR | ||
ACTOR_FLOODED_HALL_BLUE_ROCK | The small blue rock, which keeps the yellow | |
ACTOR_FLOODED_HALL_PUDDLE | block 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).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_STEAM_ROOM_MOAI | ACTOR_FIRST_PLACED | |
ACTOR_STEAM_ROOM_PILLAR | The pillar pushed off its ledge (scAquaRockInsidePushPillarOffLedge). | |
ACTOR_STEAM | The 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).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_AQUARIUS_STONE_WATER_STONE | ACTOR_FIRST_PLACED | |
ACTOR_AQUARIUS_STONE_BASE | Two hidden actors where the stone appears; the | |
ACTOR_AQUARIUS_STONE | second 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).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_LOWER_EXIT_WATER_STONE | ACTOR_FIRST_PLACED | |
ACTOR_LOWER_EXIT_MOAI | ||
ACTOR_LOWER_EXIT_MOAI_A | The 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_CHEST | 64 | The 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).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_VENTS_PILLAR | ACTOR_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).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_ENTRANCE_MOAI_PILLAR | ACTOR_FIRST_PLACED | The pillar Moved before |
ACTOR_ENTRANCE_MOAI | the Moai (scAquaRockInsideBlockMoaiWithPillar). | |
ACTOR_ENTRANCE_WEST_VENT_PILLAR | The two pillars beside the vents | |
ACTOR_ENTRANCE_EAST_VENT_PILLAR | (scAquaRockInsideStepIntoVentGust). | |
ACTOR_ENTRANCE_SPLASH | A hidden actor that splashes at the foot of the waterfall (scAquaRockInsideSplashBeneath). | |
ACTOR_ENTRANCE_PUDDLE_A | The 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).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_TIGHTROPE_WEST_POST | ACTOR_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).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_WATERFALL_WATER_STONE | ACTOR_FIRST_PLACED | |
ACTOR_WATERFALL_MOAI | ||
ACTOR_WATERFALL_WATER_PILLAR_A | The 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_A | The 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).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_PARCH_TABLET_FIRST_WATER_PILLAR | ACTOR_FIRST_PLACED | The six water pillars. |
ACTOR_PARCH_TABLET | ACTOR_PARCH_TABLET_FIRST_WATER_PILLAR + 6 | The 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.
| Enumerator | Value | Description |
|---|---|---|
POOL_FLICKERS | 15 |
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.