src/scene/taopo_swamp.c
Taopo Swamp, over the bridge west of Yallam: an optional dungeon of eleven rooms that share this overlay. More…
#include "edition.h"#include "field/actor_script.h"#include "field/call.h"#include "field/script_inline.h"#include "field/field_engine.h"#include "field/field_engine_script.h"#include "field/field_sprite.h"#include "game/game.h"#include "scene/scene.h"#include "scene/ground_effects.h"#include "shared/actor_wait_to_land.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/debris_script.c"#include "shared/dust_burst_script.c"#include "shared/scene_entrances_default.c"
Structures
| Name | Description | |
|---|---|---|
struct | SCENE_STATE | The swamp's state outside: where Felix stands, how deep he has sunk (MUD_DEPTH_ROW to a row of the sprite) and the middle of the last firm metatile he stood on. |
Macros
| Name | Description | |
|---|---|---|
#define | ACTOR_FLOWER ACTOR_FIRST_PLACED | Flower, the Venus Djinni: on its ledge in the vents room, then, blown off it, in the room below (SceneIdTaopoSwampFlower). |
#define | TREMOR_CLODS 16 | The clods Tremor bursts out of the pillar. |
#define | POOL_COOLING_PICTURES 11 | The pictures of the lava stream room's pool cooling, 13 by 5 metatiles each, stacked up the map from row 114 to row 64 at x 50. |
#define | FLAG_TAOPO_SWAMP_BUSH_BLOWN 0x8d8 | Whirlwind's flags for the swamp's bushes, one per actor id from ACTOR_FIRST_BUSH. |
#define | FLAG_TAOPO_SWAMP_STUMP_SUNK 0x8e5 | Set once the swamp's stump has sunk. |
#define | FLAG_TAOPO_SWAMP_WEST_PILLAR_OVER_VENT 0xa6d | Set once Move has left the vents room's west or east pillar over its vent. |
#define | FLAG_TAOPO_SWAMP_EAST_PILLAR_OVER_VENT 0xa6e | |
#define | FLAG_TAOPO_SWAMP_PILLAR_IN_GAP 0xa6f | Set once the pillar has dropped into the gap. |
#define | FLAG_TAOPO_SWAMP_BRAMBLE_SEED_TAKEN 0xf99 | Set once the party has taken the Bramble Seed buried under the Flower room's weeds, at (BRAMBLE_SEED_X, BRAMBLE_SEED_Z). |
#define | BRAMBLE_SEED_X 264 | |
#define | BRAMBLE_SEED_Z 664 | |
#define | FLAG_TAOPO_SWAMP_STAR_DUST_DUG_UP FLAG_AREA_TEMP(0x48) | Set once Scoop has dug up the Star Dust. |
#define | FLAG_TAOPO_SWAMP_MAD_PLANT_BEATEN 0x9b6 | Set once the Mad Plant hiding in the Flower room's weeds has been beaten. |
#define | FLAG_TAOPO_SWAMP_VINE_GROWN FLAG_SCENE_TEMP(0x20) | Set once Growth has grown the swamp's sprout into a vine. |
#define | FLAG_TAOPO_SWAMP_SPOT_WET FLAG_SCENE_TEMP(0x20) | The round spot in a vent's gust (ACTOR_ICE_PILLAR_PUDDLE, ACTOR_DRIP_PUDDLE): set while it holds water, a puddle or an ice pillar. |
#define | FLAG_TAOPO_SWAMP_SPOT_FROZEN FLAG_SCENE_TEMP(0x21) | Set while Frost has turned the spot's water into an ice pillar. |
#define | FLAG_TAOPO_SWAMP_SPOT_PUDDLE FLAG_SCENE_TEMP(0x22) | Set while the spot holds a puddle Frost can freeze. |
#define | FLAG_BYTE_TAOPO_SWAMP_DROPS_CAUGHT FLAG_SCENE_TEMP(0x30) | The drops the rope room's spot has caught, up to four: a byte of flags. |
#define | FLAG_TAOPO_SWAMP_TREASURE_DUG_UP (n) (FLAG_AREA_TEMP(0x00) + (n)) | Set once Scoop has dug up the tear stones' room's buried Tear Stone n (0 or 1), under treasure actor n. |
#define | FLAG_TAOPO_SWAMP_FLOWER_OFF_LEDGE FLAG_AREA_TEMP(0x10) | Set once Flower has been blown off its ledge into its own room. |
#define | FLAG_TAOPO_SWAMP_PASSAGE_OPEN FLAG_AREA_TEMP(0x30) | Set once Tremor has dried the lava stream north of the pillar into a passage, and cooled the pool below. |
#define | FLAG_TAOPO_SWAMP_ROPE_TIED FLAG_AREA_TEMP(0x08) | Set once Lash has tied the rope between the rope room's two posts. |
#define | FLAG_TAOPO_SWAMP_TREMOR_LAVA_ROCK_COOLED FLAG_AREA_TEMP(0x31) | Each glowing rock's flags: _COOLED once Douse has cooled it, _UNMOVABLE while Move cannot push it (until it is cooled, and once it has sunk), _SUNK once it has sunk into the lava as a stepping stone. |
#define | FLAG_TAOPO_SWAMP_TREMOR_LAVA_ROCK_UNMOVABLE FLAG_AREA_TEMP(0x32) | |
#define | FLAG_TAOPO_SWAMP_TREMOR_LAVA_ROCK_SUNK FLAG_AREA_TEMP(0x33) | |
#define | FLAG_TAOPO_SWAMP_PILLAR_ROCK_COOLED FLAG_AREA_TEMP(0x34) | |
#define | FLAG_TAOPO_SWAMP_PILLAR_ROCK_UNMOVABLE FLAG_AREA_TEMP(0x35) | |
#define | FLAG_TAOPO_SWAMP_PILLAR_ROCK_SUNK FLAG_AREA_TEMP(0x36) | |
#define | FLAG_TAOPO_SWAMP_CHEST_ROCK_COOLED FLAG_AREA_TEMP(0x38) | |
#define | FLAG_TAOPO_SWAMP_CHEST_ROCK_UNMOVABLE FLAG_AREA_TEMP(0x39) | |
#define | FLAG_TAOPO_SWAMP_CHEST_ROCK_SUNK FLAG_AREA_TEMP(0x3a) | |
#define | FLAG_TAOPO_SWAMP_EXIT_ROCK_COOLED FLAG_AREA_TEMP(0x3b) | |
#define | FLAG_TAOPO_SWAMP_EXIT_ROCK_UNMOVABLE FLAG_AREA_TEMP(0x3c) | |
#define | FLAG_TAOPO_SWAMP_EXIT_ROCK_SUNK FLAG_AREA_TEMP(0x3d) | |
#define | FLAG_TAOPO_SWAMP_DARK_ROCK_COOLED FLAG_AREA_TEMP(0x40) | |
#define | FLAG_TAOPO_SWAMP_DARK_ROCK_UNMOVABLE FLAG_AREA_TEMP(0x41) | |
#define | FLAG_TAOPO_SWAMP_LAST_ROCK_COOLED FLAG_AREA_TEMP(0x42) | |
#define | FLAG_TAOPO_SWAMP_LAST_ROCK_UNMOVABLE FLAG_AREA_TEMP(0x43) | |
#define | MUD_DEPTH_ROW 256 | SCENE_STATE.depth for one row of the leader sunk. |
#define | SceneStateWork (*(SCENE_STATE *)SceneStateWork) | The scene's view of SceneStateWork (system/globals.h). |
#define | MUD_COLOR 93 | The colour of the sprite palette the mud's splashes are drawn in (SPRITE_COLOR_FILL reads it from DecodeFillByte). |
#define | LEADER_SINK_ROWS 20 | How many rows the leader sinks into the mud before it pulls them back out, and how many the stump sinks before it is gone. |
#define | STUMP_SINK_ROWS 24 | |
#define | MUD_SINK_TICKS 96 | Each tick the leader walks on the mud sinks them by this share of the full depth, and 1 more. |
#define | scTaopoSwampScatterWeedMetatiles () | Cyclone scatters the Flower room's weeds where it touches them: the weeds' 14 by 8 metatiles from (14, 37) take the metatiles of the bare block at (76, 70). |
#define | DEFINE_TAOPO_SWAMP_FREEZE_SPOT (name, pillarX, z, spotX) | Frost on a round spot's puddle freezes it into a pillar of ice, which stops the gust, and Felix can hop onto it from the stepping stones beside it to cross the gust. |
#define | DEFINE_TAOPO_SWAMP_SHATTER_ICE_PILLAR ( | The next gust shatters the ice pillar on a round spot, and Felix, if he stands on it, hops off south and turns to face it. |
#define | VENT_CYCLE_TICKS 480 | The vents' cycle in the vents room, the ice pillar room and the rope room. |
#define | VENT_SOUND_NONE (-1) | fdQueueMusic's none: the vents' sound fades out as they stop, and nothing is queued after it. |
#define | LAVA_ROCKS_VENTS_BLOW_TICKS 180 | The lava rocks' room's vents blow for LAVA_ROCKS_VENTS_BLOW_TICKS of every LAVA_ROCKS_VENT_CYCLE_TICKS. |
#define | LAVA_ROCKS_VENT_CYCLE_TICKS 240 | |
#define | DEFINE_TAOPO_SWAMP_CYCLE_SPOT_VENT ( | The cycle of the vents by a round spot: they blow for 120 ticks in VENT_CYCLE_TICKS, and while they blow they break the spot's ice pillar or blow its puddle away. |
#define | DEFINE_DRIP_AT_RANDOM (name, x0, z0) | An event: on one in four of every eighth tick, a drop falls from the ceiling at a random place on the 32 pixels running east and north from (x0, z0). |
#define | SET_ROOM_TRANSITION () |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { CUE_MUD, CUE_BUBBLE, CUE_FIRM_GROUND, CUE_FIRST_TEAR_STONE, … } | What the rooms' map metatiles do when Felix steps on them or casts at them, beside their exits, which scene_exits.h numbers, and the vents' gusts (CUE_FIRST_GUST). |
enum | anonymous enum { TEAR_STONES_PASSAGE_TO_CAVE, TEAR_STONES_CAVE_TO_PASSAGE, IC … } | The doors between rooms that share one map, each numbered as the exit at its side and as the entrance the other side's exit leads to. |
enum | TAOPO_SWAMP_MUD_ACTOR_ID { ACTOR_FIRST_BUSH, ACTOR_TEAR_STONES_WEST_BUSH, ACTOR_POOL_BU … } | The swamp's actors outside (SceneIdTaopoSwampMud). |
enum | TAOPO_SWAMP_VENTS_ACTOR_ID { ACTOR_WEST_VENT_PILLAR, ACTOR_EAST_VENT_PILLAR } | The vents room's pillars Move pushes over a vent (SceneIdTaopoSwampVents). |
enum | TAOPO_SWAMP_ICE_PILLAR_ACTOR_ID { ACTOR_ICE_PILLAR_PUDDLE, ACTOR_GAP_PILLAR } | The actors of the rooms past the pool (SceneIdTaopoSwampIcePillar): the round spot in the north room, and the pillar by the gap in the south one. |
enum | TAOPO_SWAMP_ROPE_ACTOR_ID { ACTOR_WEST_ROPE_POST, ACTOR_EAST_ROPE_POST, ACTOR_DRIP_PUDDL … } | The rope room's actors (SceneIdTaopoSwampRope). |
enum | TAOPO_SWAMP_LAVA_ROCKS_ACTOR_ID { ACTOR_CHEST_ROCK, ACTOR_EXIT_ROCK } | The lava rocks' room's two glowing rocks (SceneIdTaopoSwampLavaRocks, SPRITE_EMBER_STONE): on the way to the chest and by the way out. |
enum | TAOPO_SWAMP_LAVA_STREAM_ACTOR_ID { ACTOR_TREMOR_LAVA_ROCK, ACTOR_TREMOR_PILLAR_ROCK, ACTOR_TREM … } | The lava stream room's actors (SceneIdTaopoSwampLavaStream). |
enum | TAOPO_SWAMP_STAR_DUST_ACTOR_ID { ACTOR_DARK_ROCK, ACTOR_LAST_ROCK } | The glowing rocks that light the Star Dust's rooms, the first room's and the last chamber's (SceneIdTaopoSwampStarDust, SPRITE_EMBER_STONE). |
enum | MUD_FOOTING { FOOTING_FIRM_GROUND, FOOTING_MUD, FOOTING_BUBBLE } | Where Felix stands in the swamp outside (SCENE_STATE.footing). |
enum | anonymous enum { CUE_FIRST_GUST, CUE_PAST_SPOT_GUST, CUE_SPOT_GUST, CUE_EAST_ … } | The vents' gusts: each vent blows south along a column of metatiles whose step cue is CUE_FIRST_GUST plus its place in its room's list (TaopoSwampVentsGustVents, TaopoSwampIcePillarGustVents), and walking south off the end of one of the vents room's first seven, or the round spot's, drops the leader to the room below by the exit of the same number. |
enum | anonymous enum { VENT_BESIDE_WEST_PILLAR, VENT_BESIDE_EAST_PILLAR } | The vents room's vents beside the two its pillars can cover, as places in TaopoSwampVentsVents: covering one makes the one beside it blow twice as far, and the one beside the east pillar's then reaches Flower's ledge. |
Functions
| Name | Description | |
|---|---|---|
Sint32 | fdMapGetTerrainHeight (Sint32 terrain, Sint32 x, Sint32 z) | The ground height of a layer at (x, z), 16.16 pixels (fdMapGridGetTerrainHeight, through the overlay's own import row). |
void | syGameFlagSetByte (Sint32 flag, Sint32 value) | Sets the whole byte flags is in. |
void | scVentBounce (ACTOR *actor) | The vents' routines, from the shared vent files included below. |
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. |
Sint32 | scVentIsBlowing (Sint32 index) | Whether vent index is blowing now. |
void | scVentSetGust (Sint32 index, FIXED speed) | Sets the speed of vent index's gust, in 16.16 pixels a tick. |
void | scVentSetId (Sint32 slot, Sint32 id) | Sets a vent's actor. |
void | scVentSetBlowing (Sint32 index, Sint32 blowing) | scVentSetBlowing, defined below, is called with no prototype in scope. |
void | scTaopoSwampShowMessage (Sint32 msg) | Shows a message in a script; when someone in the party has Scoop, the field menu then opens (fdScriptShowMessageAndOfferScoop, through the overlay's own import row). |
void | scTaopoSwampFocusMapMiddle () | Declared without its parameters: scInit passes it a 0 it does not take. |
void | scTaopoSwampFocusMapOn (Sint32 x, Sint32 z) | Shows the Star Dust rooms' light, the map's layer 2, from its 8-pixel tile (x, z) on, and the screen follows. |
void | scTaopoSwampDarkenRoom (Sint32 fade) | The light goes out, over 50 ticks when fade is set, from tile (100, 50) on, and in the last chamber the Star Dust's sparkle starts. |
void | scTaopoSwampSinkInMud (void) | Each step Felix takes through the swamp's mud sinks him a little deeper. |
void | scTaopoSwampRiseOnBubble (void) | Stepping onto one of the bubbles in the swamp's mud, Felix is drawn to its middle and lifted back out to full height. |
void | scTaopoSwampStepOnFirmGround (void) | Stepping onto one of the four firm metatiles at the edges of the swamp's mud, (22, 9), (37, 14), (39, 19) and (8, 25), Felix stands at full height again, and the mud will bring him back here if he sinks. |
void | scTaopoSwampSaveFirmGround (void) | Keeps the metatile Felix stands on as the one the mud returns him to. |
void | scTaopoSwampJumpForward (void) | Walking east from metatile (9, 21) in the lava rocks' room, Felix jumps two metatiles over the lava onto the rock sunk at metatile (11, 21), once it is there. |
void | scTaopoSwampGrowVine (void) | Growth on the sprout beside the eastern cave, metatile (47, 17), grows it into a vine up the cliff, which Felix can then climb. |
void | scTaopoSwampUncoverBrambleSeed (void) | Cyclone on the weeds at metatile (16, 41), in the room below the vents, scatters them and uncovers the Bramble Seed there, until it has been taken. |
void | scTaopoSwampStartMadPlantBattle (void) | Cyclone on the weeds at metatile (21, 40), in the room below the vents, scatters them, and until it is beaten a Mad Plant leaps out of them at Felix and the party must fight it, with no escape. |
void | scTaopoSwampFillDripSpot (Sint32 caster, Sint32 id) | A drop from the ceiling, or Douse, on the round spot in the rope room, metatile (25, 27), shows a puddle there. |
void | scTaopoSwampShatterIcePillar (Sint32 id) | The ice pillar on the round spot past the pool, metatile (26, 8). |
void | scTaopoSwampBlowAwayPuddle (Sint32 id) | The next gust blows the puddle off the round spot past the pool. |
void | scTaopoSwampTremorPillar (void) | Tremor on the pillar with the huge rock pile on top, in the middle of the lava stream room: the pile rolls off and lands with a thump, a glowing red rock pops out of the pillar, clods burst out, the lava stream north of it dries into a passage from its south end up, and the camera turns to the lava pool to the south-west, which cools, steaming (FLAG_TAOPO_SWAMP_PASSAGE_OPEN). |
void | scTaopoSwampPuffSteam (void) | An event: one puff of steam from the cooling pool each tick, until the count runs out. |
void | scTaopoSwampOpenPassage (void) | An event: the lava stream north of the pillar dries into a passage, from its south end up, a row of metatiles every eight ticks. |
void | scTaopoSwampFlickerPool (void) | An event: the cooled pool's two pictures in turn, until the count runs out. |
void | scTaopoSwampSparkleStarDust (void) | An event: the Star Dust's sparkle in the dark, a 3 by 3 picture of metatiles that steps through four pictures and back every 60 ticks, until it is dug up and the last picture stays (FLAG_TAOPO_SWAMP_STAR_DUST_DUG_UP). |
static __inline__ void | scTaopoSwampCopyMetatileAttributes ( Sint32 srcX, Sint32 srcZ, Sint32 width, Sint32 height, Sint32 x, Sint32 z) | Copies what metatiles do and their flags, as the frozen spots do (fdMapGridCopyMetatileAttributes). |
static __inline__ void | scTaopoSwampJumpDownLedge (Sint32 id, Sint32 pose, Sint32 param) | Actor id jumps down off the ledge before it (fdActorJumpDownLedge). |
static __inline__ void | scTaopoSwampCopyTouchedMetatiles (Sint32 srcX, Sint32 srcZ, Sint32 width, Sint32 height, Sint32 x, Sint32 z, Sint32 layer) | Copies the map metatiles the leader's Psynergy touches (fdTileCopiesCopyTouchedMetatiles). |
static __inline__ ACTOR * | scTaopoSwampCreateActor (Sint32 type, Sint32 x, Sint32 y, Sint32 z) | Creates an actor of sprite type at x, y, z. |
static __inline__ void | scTaopoSwampLeapAtLeader (Sint32 sprite, Sint32 x, Sint32 z) | The Mad Plant leaps out of the weeds at the leader (fdMadPlantLeapAtLeader). |
void | scTaopoSwampFightFlower (void) | Talking to Flower, the Venus Djinni, starts its battle. |
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 | scTaopoSwampBlowAwayBush (Sint32 unused, Sint32 id) | Whirlwind on one of the five bushes of weeds at the foot of the swamp's cliffs blows it away for good. |
void | scTaopoSwampSinkStump (Sint32 unused, Sint32 id) | Move pulling the stump at the east end of the broken plank bridge west into the gap at metatile (12, 16) drops it into the mud there: it slowly sinks, throwing up mud, two rings spread where it went under, and it stays gone, so Felix can hop across the gap. |
void | scTaopoSwampScoopSecondTearStone (Sint32 mode) | Scoop on the ring of small stones in the middle of the cave at the end of the passage north of the vents room, metatile (25, 43), digs up a Tear Stone. |
void | scTaopoSwampScoopFirstTearStone (Sint32 mode) | Scoop on the ring of small stones in the middle of the small cave behind the westernmost bush of weeds, metatile (25, 7), digs up a Tear Stone. |
void | scTaopoSwampScatterWeeds (void) | Cyclone on the green weeds dotting the west of the room below the vents scatters their leaves and clears the weeds it touched. |
void | scTaopoSwampDropToLowerFloor (Sint32 exit) | Walking south off the ledge at the foot of a vent's gust, or blown off it, Felix springs down and lands in the room below: from the vents room's seven gusts (their ends from metatile (12, 16) in the west to (39, 16) in the east) into the room of the weeds below the vents, and from the round spot's gust, metatile (26, 10), into the rope room. |
void | scTaopoSwampPushPillarOverVent (Sint32 unused, Sint32 id) | Move pushing one of the vents room's two stone pillars in front of the vent beside it, the west one to metatile (17, 14) or the east one to metatile (29, 15), blocks that vent's gust and makes the next vent blow twice as hard; from the east pillar's, the gust then reaches Flower's ledge. |
void | scTaopoSwampStepIntoGust (Sint32 gust) | Stepping into the gust in front of a vent while it puffs (in the vents room, the ice pillar room, the rope room or the lava rocks' room), Felix is blown south, spinning, until a wall stops him or off the ledge into the room below. |
void | scTaopoSwampBlowFlowerOffLedge (void) | Once the east pillar covers its vent, the next gust of the vent beside it reaches Flower, the Venus Djinni, on its ledge at metatile (25, 19): Felix turns to it with a start, the camera moves to Flower, and it hops three times and falls off the ledge into the room below, where it waits (FLAG_TAOPO_SWAMP_FLOWER_OFF_LEDGE). |
void | scTaopoSwampDropPillarIntoGap (Sint32 unused, Sint32 id) | Move pushing the stone pillar on the ledge in the south room past the pool, metatile (15, 26), east off it drops the pillar into the gap at metatile (16, 26), and its top becomes a stepping stone Felix hops across the gap on (FLAG_TAOPO_SWAMP_PILLAR_IN_GAP). |
void | scTaopoSwampDouseVentSpot (Sint32 unused, Sint32 id) | Douse on the round spot at the dead end in the north room past the pool, metatile (26, 8), in the gust of the vent above it, leaves a puddle there, which the next gust blows away unless Frost turns it to an ice pillar first. |
DEFINE_TAOPO_SWAMP_FREEZE_SPOT( | scTaopoSwampFreezeVentSpot , 28, 8, 26) | Frost on the puddle on the round spot past the pool, metatile (26, 8). |
DEFINE_TAOPO_SWAMP_FREEZE_SPOT( | scTaopoSwampFreezeDripSpot , 23, 27, 25) | Frost on the puddle on the rope room's round spot, metatile (25, 27). |
DEFINE_TAOPO_SWAMP_SHATTER_ICE_PILLAR( | scTaopoSwampShatterDripIcePillar , TRUE, 1, 1, 25, 27) | The ice pillar on the rope room's round spot, metatile (25, 27): the tall pillar breaks into a lump of ice that is gone a moment later, leaving the spot bare for the drops to fill again. |
void | scTaopoSwampBlowAwayDripPuddle (Sint32 id) | The next gust blows the puddle off the rope room's round spot, and the drops it has caught start again from none. |
void | scTaopoSwampCoolLavaRock (Sint32 unused, Sint32 id) | Douse on the glowing red rock at the edge of the lava in the lava stream room's west, metatile (8, 15), cools it, and Move can push it. |
void | scTaopoSwampPushLavaRockIn (Sint32 unused, Sint32 id) | Move pushing the cooled rock in the lava stream room's west into the lava at metatile (7, 15) sinks it there as a stepping stone, which Felix hops across on to reach the bottom of the room. |
void | scTaopoSwampCoolPillarRock (Sint32 unused, Sint32 id) | Douse on the red rock Tremor knocked out of the pillar, where it landed west of it at metatile (27, 14), cools it, and Move can push it. |
void | scTaopoSwampPushPillarRockIn (Sint32 unused, Sint32 id) | Move pushing the cooled rock from the pillar south to metatile (27, 16) sends it sliding two metatiles west, to metatile (25, 16), where it sinks as a stepping stone. |
void | scTaopoSwampSpinRockPile (ACTOR *actor) | The update of the rock pile Tremor knocks off the pillar: it turns back a thirty-second of a turn each tick as it rolls. |
void | scTaopoSwampCoolChestRock (Sint32 unused, Sint32 id) | Douse on the glowing red rock in the lava rocks' room's lower left corner, metatile (11, 22), on the way to the Vial's chest, cools it, and Move can push it. |
void | scTaopoSwampPushChestRockIn (Sint32 unused, Sint32 id) | Move pushing the cooled rock in the lava rocks' room's lower left corner north into the lava at metatile (11, 21) sinks it there as a stepping stone on the way to the Vial's chest. |
void | scTaopoSwampCoolExitRock (Sint32 unused, Sint32 id) | Douse on the glowing red rock in the lava rocks' room's upper right corner, metatile (32, 13), by the way back to the lava stream room, cools it, and Move can push it. |
void | scTaopoSwampPushExitRockIn (Sint32 unused, Sint32 id) | Move pushing the cooled rock in the lava rocks' room's upper right corner west into the lava stream at metatile (31, 13) sends it sliding two metatiles north to metatile (31, 11), where it sinks as a stepping stone across the stream, the way back to the lava stream room. |
void | scTaopoSwampCoolDarkRock (Sint32 unused, Sint32 id) | Douse on the glowing rock lighting the first dark room below the lava stream room, metatile (7, 39), puts its light out, the room going dark, and Move can push it aside. |
void | scTaopoSwampCoolLastRock (Sint32 unused, Sint32 id) | Douse on the glowing rock in the last chamber, metatile (32, 39), puts its light out, and in the dark a light shows on the ground where the Star Dust is buried. |
void | scTaopoSwampScoopStarDust (Sint32 mode) | Scoop on the light on the ground in the last chamber, metatile (27, 37), digs up the Star Dust (FLAG_TAOPO_SWAMP_STAR_DUST_DUG_UP). |
void | scTaopoSwampShowSparkleMessage (void) | Searching the ground at the Star Dust's spot in the last chamber, metatile (27, 37), before it is dug up: "I thought I saw something sparkling in the ground!" |
const CUE * | scGetCues (void) | The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's. |
Bool | scTaopoSwampLandDrop (ACTOR *actor) | A falling drop splashes where it lands. |
void | scTaopoSwampDripAtRandom (void) | An event: on one in four of every eighth tick, a drop falls into the swamp's water at a random place near its east end. |
void | scTaopoSwampCycleVentsRoomVents (void) | The vents room's cycle of VENT_CYCLE_TICKS: two sets of vents blow in turn, and while the second blows with the east pillar over its vent, Flower is blown off its ledge. |
DEFINE_TAOPO_SWAMP_CYCLE_SPOT_VENT( | scTaopoSwampCycleSpotVent , ACTOR_ICE_PILLAR_PUDDLE, scTaopoSwampShatterIcePillar, scTaopoSwampBlowAwayPuddle) | The round spot's past the pool. |
DEFINE_TAOPO_SWAMP_CYCLE_SPOT_VENT( | scTaopoSwampCycleDripVent , ACTOR_DRIP_PUDDLE, scTaopoSwampShatterDripIcePillar, scTaopoSwampBlowAwayDripPuddle) | The rope room's, for the spot the ceiling drips onto. |
void | scTaopoSwampCycleLavaRocksVents (void) | The lava rocks' room's vents' cycle. |
Bool | scTaopoSwampLandDrip (ACTOR *actor) | A drop from the ceiling lands: it splashes and grows the puddle below by one, up to four. |
void | scTaopoSwampDripFromCeiling (void) | An event: every 64 ticks a drop falls from the ceiling onto the rope room's spot. |
Bool | scTaopoSwampIsDropFalling (ACTOR *actor) | A drop's script test: whether it is still above the floor. |
DEFINE_DRIP_AT_RANDOM( | scTaopoSwampDripInIcePillarRoom , toFIXED(384), toFIXED(400)) | The drops falling in the ice pillar room, from (384, 400). |
DEFINE_DRIP_AT_RANDOM( | scTaopoSwampDripInRopeRoom , toFIXED(416), toFIXED(352)) | The drops falling in the rope room, from (416, 352). |
void | scTaopoSwampResetMud (void) | Entering the swamp outside afresh (not back from a menu or battle), Felix starts out of the mud. |
void | scVentsStart (Uint16 *points, Uint16 *ids, void (*cycle)(void)) | Places a room's vents from its table and the actors their puffs land on, unless the party comes back to the room as it left it, and starts the function that times their gusts; their puffs are drawn half seen through. |
Sint32 | scInit (void) | Sets up the room the party arrives in as its flags left it: the mud's bushes, vine and stump, the vents and their cycles, the spots, the rope, the glowing rocks and the passage. |
Sint32 | scPrepareMap (void) | Once Briggs is caught the pool has dried up: its colours take the dry ground's. |
void | scVentPuff (Sint32 *pos, Sint32 base) | A puff of dust from a vent at position, as its gust blows. |
Variables
| Name | Description | |
|---|---|---|
extern Sint32 | TaopoSwampSteamPuffs | The cooled pool's countdowns: the steam puffs still to rise, one a tick (scTaopoSwampPuffSteam); the ticks the passage takes to dry, eight to a row (scTaopoSwampOpenPassage); and the pool's flickers (scTaopoSwampFlickerPool). |
extern Sint32 | TaopoSwampPassageTicks | |
extern Sint32 | TaopoSwampPoolTicks | |
extern Sint32 | TaopoSwampSparkleTick | The Star Dust's sparkle, in ticks from 0 to 59. |
extern Uint32 | TaopoSwampPuffSteamScript [] | |
extern Uint32 | DustBurstScript [] | It lasts 44 ticks, then stops and is gone. |
extern Sint32 | TaopoSwampDripFromCeilingScript [] | |
extern Sint32 | TaopoSwampDripAtRandomScript [] | |
extern Sint32 | TaopoSwampDropFallScript [] | |
extern Uint32 | TaopoSwampDropRingFades [] | |
extern Uint8 | MsgIThoughtI | |
extern ACTOR_PLACE | TaopoSwampPlacements [] | |
extern ACTOR_PLACE | TaopoSwampMudActorPlacements [] | |
extern ACTOR_PLACE | TaopoSwampFlowerActorPlacements [] | |
extern ACTOR_PLACE | TaopoSwampVentsActorPlacements [] | |
extern ACTOR_PLACE | TaopoSwampIcePillarActorPlacements [] | |
extern ACTOR_PLACE | TaopoSwampRopeActorPlacements [] | |
extern ACTOR_PLACE | TaopoSwampLavaStreamActorPlacements [] | |
extern ACTOR_PLACE | TaopoSwampLavaRocksActorPlacements [] | |
extern ACTOR_PLACE | TaopoSwampStarDustActorPlacements [] | |
extern Uint32 | TaopoSwampSplashFades [] | |
extern Uint8 | TaopoSwampVentsGustVents [] | The vent whose gust each of the vents room's gust cues is, from CUE_FIRST_GUST on, as places in TaopoSwampVentsVents. |
extern Uint8 | TaopoSwampIcePillarGustVents [] | The same for the ice pillar room, as places in TaopoSwampIcePillarVents. |
extern Uint32 | DebrisScript [] | A piece of debris flies for 40 ticks, then blinks ten times and is gone. |
extern CUE | TaopoSwampCues [] | |
extern CUE | TaopoSwampEntranceCues [] | |
extern CUE | TaopoSwampMudCues [] | |
extern CUE | TaopoSwampTearStonesCues [] | |
extern CUE | TaopoSwampFlowerCues [] | |
extern CUE | TaopoSwampVentsCues [] | |
extern CUE | TaopoSwampPoolCues [] | |
extern CUE | TaopoSwampIcePillarCues [] | |
extern CUE | TaopoSwampRopeCues [] | |
extern CUE | TaopoSwampLavaStreamCues [] | |
extern CUE | TaopoSwampLavaRocksCues [] | |
extern CUE | TaopoSwampStarDustCues [] | |
extern Uint16 | TaopoSwampVentsVents [] | Each room's vents for scVentsStart: a vent's x and z in pixels and the speed of its gust, ended by 0. |
extern Uint16 | TaopoSwampVentsPillars [] | The actors the vents room's puffs land on, its two pillars, ended by 0. |
extern Uint16 | TaopoSwampIcePillarVents [] | The ice pillar room's vents, as TaopoSwampVentsVents. |
extern Uint16 | TaopoSwampRopeVents [] | The rope room's vents, as TaopoSwampVentsVents. |
extern Uint16 | TaopoSwampLavaRocksVents [] | The lava rocks' room's vents, as TaopoSwampVentsVents. |
extern Uint8 | MapGridMetatileBuffer [] | The map cell buffer at its own address, which the effects borrow: no map is loaded during a battle. |
Uint32 | SceneExits [] | The room has no exits of its own. |
Description
Taopo Swamp, over the bridge west of Yallam: an optional dungeon of eleven rooms that share this overlay.
In the swamp outside, Move pulls the stump at the end of the broken plank bridge into the mud so Felix can hop the gap, and each step through the mud sinks him deeper until he goes under and comes up on firm ground, unless a bubble lifts him out first. Whirlwind blows away the weeds over three cave mouths at the foot of the cliffs, and Growth grows the sprout beside the eastern cave into a vine. Behind the westernmost bush of weeds, a small cave holds a buried Tear Stone. Behind the eastern bush of weeds, stairs lead down to the vents room, where vents in the north wall puff gusts that blow Felix off the ledge into the room below; there Cyclone scatters the weeds hiding the Bramble Seed and a Mad Plant. Moving the vents room's east pillar over its vent sends the next gust onto Flower, the Venus Djinni, which falls to that same room below. A passage north from the vents room ends at the second Tear Stone. Behind the third bush of weeds lie the pool, the ice pillar room with a round spot in a gust that Douse wets and Frost freezes into an ice pillar, and the rope room, where drops from the ceiling fill a second spot. Below them, glowing red rocks cooled with Douse and pushed into the lava make stepping stones (in the lava stream room, and in the lava rocks' room with the Vial's chest); Tremor on the pillar under a rock pile dries a lava stream into a passage; and in the dark rooms beyond, cooling the last glowing rock shows where the Star Dust is buried.
Macros in detail
ACTOR_FLOWER
#define ACTOR_FLOWER ACTOR_FIRST_PLACED
Flower, the Venus Djinni: on its ledge in the vents room, then, blown off it,
in the room below (SceneIdTaopoSwampFlower).
Referenced by scInit(), scTaopoSwampBlowFlowerOffLedge() and scTaopoSwampFightFlower().
Definition at line 128 of file taopo_swamp.c.
TREMOR_CLODS
#define TREMOR_CLODS 16
The clods Tremor bursts out of the pillar.
Referenced by scTaopoSwampTremorPillar().
Definition at line 185 of file taopo_swamp.c.
POOL_COOLING_PICTURES
#define POOL_COOLING_PICTURES 11
The pictures of the lava stream room's pool cooling, 13 by 5 metatiles each, stacked up the map from row 114 to row 64 at x 50.
Referenced by scTaopoSwampTremorPillar().
Definition at line 189 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_BUSH_BLOWN
#define FLAG_TAOPO_SWAMP_BUSH_BLOWN 0x8d8
Whirlwind's flags for the swamp's bushes, one per actor id from
ACTOR_FIRST_BUSH.
Referenced by scInit(), scTaopoSwampBlowAwayBush() and TaopoSwampMudCues.
Definition at line 201 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_STUMP_SUNK
#define FLAG_TAOPO_SWAMP_STUMP_SUNK 0x8e5
Set once the swamp's stump has sunk.
Referenced by scTaopoSwampSinkStump() and TaopoSwampMudActorPlacements.
Definition at line 203 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_WEST_PILLAR_OVER_VENT
#define FLAG_TAOPO_SWAMP_WEST_PILLAR_OVER_VENT 0xa6d
Set once Move has left the vents room's west or east pillar over its vent.
Referenced by scInit(), scTaopoSwampPushPillarOverVent(), scTaopoSwampStepIntoGust() and TaopoSwampVentsCues.
Definition at line 205 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_EAST_PILLAR_OVER_VENT
#define FLAG_TAOPO_SWAMP_EAST_PILLAR_OVER_VENT 0xa6e
Referenced by scInit(), scTaopoSwampCycleVentsRoomVents(), scTaopoSwampPushPillarOverVent(), scTaopoSwampStepIntoGust() and TaopoSwampVentsCues.
Definition at line 206 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_PILLAR_IN_GAP
#define FLAG_TAOPO_SWAMP_PILLAR_IN_GAP 0xa6f
Set once the pillar has dropped into the gap.
Referenced by scInit(), scTaopoSwampDropPillarIntoGap() and TaopoSwampIcePillarCues.
Definition at line 208 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_BRAMBLE_SEED_TAKEN
#define FLAG_TAOPO_SWAMP_BRAMBLE_SEED_TAKEN 0xf99
Set once the party has taken the Bramble Seed buried under the Flower room's
weeds, at (BRAMBLE_SEED_X, BRAMBLE_SEED_Z).
Referenced by scTaopoSwampUncoverBrambleSeed().
Definition at line 211 of file taopo_swamp.c.
BRAMBLE_SEED_X
#define BRAMBLE_SEED_X 264
Referenced by scTaopoSwampUncoverBrambleSeed().
Definition at line 212 of file taopo_swamp.c.
BRAMBLE_SEED_Z
#define BRAMBLE_SEED_Z 664
Referenced by scTaopoSwampUncoverBrambleSeed().
Definition at line 213 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_STAR_DUST_DUG_UP
#define FLAG_TAOPO_SWAMP_STAR_DUST_DUG_UP FLAG_AREA_TEMP(0x48)
Set once Scoop has dug up the Star Dust.
Referenced by scInit(), scTaopoSwampScoopStarDust(), scTaopoSwampSparkleStarDust() and TaopoSwampStarDustCues.
Definition at line 215 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_MAD_PLANT_BEATEN
#define FLAG_TAOPO_SWAMP_MAD_PLANT_BEATEN 0x9b6
Set once the Mad Plant hiding in the Flower room's weeds has been beaten.
Referenced by scTaopoSwampStartMadPlantBattle().
Definition at line 217 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_VINE_GROWN
#define FLAG_TAOPO_SWAMP_VINE_GROWN FLAG_SCENE_TEMP(0x20)
Set once Growth has grown the swamp's sprout into a vine.
Referenced by scInit() and scTaopoSwampGrowVine().
Definition at line 219 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_SPOT_WET
#define FLAG_TAOPO_SWAMP_SPOT_WET FLAG_SCENE_TEMP(0x20)
The round spot in a vent's gust (ACTOR_ICE_PILLAR_PUDDLE, ACTOR_DRIP_PUDDLE):
set while it holds water, a puddle or an ice pillar.
Referenced by scInit(), scTaopoSwampBlowAwayDripPuddle(), scTaopoSwampBlowAwayPuddle(), scTaopoSwampDouseVentSpot(), scTaopoSwampFillDripSpot(), TaopoSwampIcePillarCues and TaopoSwampRopeCues.
Definition at line 222 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_SPOT_FROZEN
#define FLAG_TAOPO_SWAMP_SPOT_FROZEN FLAG_SCENE_TEMP(0x21)
Set while Frost has turned the spot's water into an ice pillar.
Referenced by scInit(), scTaopoSwampLandDrip() and scTaopoSwampStepIntoGust().
Definition at line 224 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_SPOT_PUDDLE
#define FLAG_TAOPO_SWAMP_SPOT_PUDDLE FLAG_SCENE_TEMP(0x22)
Set while the spot holds a puddle Frost can freeze.
Referenced by scTaopoSwampBlowAwayPuddle(), scTaopoSwampDouseVentSpot(), scTaopoSwampFillDripSpot(), TaopoSwampIcePillarCues and TaopoSwampRopeCues.
Definition at line 226 of file taopo_swamp.c.
FLAG_BYTE_TAOPO_SWAMP_DROPS_CAUGHT
#define FLAG_BYTE_TAOPO_SWAMP_DROPS_CAUGHT FLAG_SCENE_TEMP(0x30)
The drops the rope room's spot has caught, up to four: a byte of flags.
Referenced by scTaopoSwampBlowAwayDripPuddle(), scTaopoSwampFillDripSpot() and scTaopoSwampLandDrip().
Definition at line 228 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_TREASURE_DUG_UP
#define FLAG_TAOPO_SWAMP_TREASURE_DUG_UP(n) (FLAG_AREA_TEMP(0x00) + (n))
Set once Scoop has dug up the tear stones' room's buried Tear Stone n (0 or 1), under treasure actor n.
Referenced by scInit(), scTaopoSwampScoopFirstTearStone(), scTaopoSwampScoopSecondTearStone() and TaopoSwampTearStonesCues.
Definition at line 231 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_FLOWER_OFF_LEDGE
#define FLAG_TAOPO_SWAMP_FLOWER_OFF_LEDGE FLAG_AREA_TEMP(0x10)
Set once Flower has been blown off its ledge into its own room.
Referenced by scInit(), scTaopoSwampBlowFlowerOffLedge(), scTaopoSwampCycleVentsRoomVents() and TaopoSwampVentsCues.
Definition at line 233 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_PASSAGE_OPEN
#define FLAG_TAOPO_SWAMP_PASSAGE_OPEN FLAG_AREA_TEMP(0x30)
Set once Tremor has dried the lava stream north of the pillar into a passage, and cooled the pool below.
Referenced by scInit(), scTaopoSwampTremorPillar() and TaopoSwampLavaStreamCues.
Definition at line 236 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_ROPE_TIED
#define FLAG_TAOPO_SWAMP_ROPE_TIED FLAG_AREA_TEMP(0x08)
Set once Lash has tied the rope between the rope room's two posts.
Referenced by scInit() and TaopoSwampRopeCues.
Definition at line 238 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_TREMOR_LAVA_ROCK_COOLED
#define FLAG_TAOPO_SWAMP_TREMOR_LAVA_ROCK_COOLED FLAG_AREA_TEMP(0x31)
Each glowing rock's flags: _COOLED once Douse has cooled it, _UNMOVABLE while Move cannot push it (until it is cooled, and once it has sunk), _SUNK once it has sunk into the lava as a stepping stone.
Referenced by scInit(), scTaopoSwampCoolLavaRock() and TaopoSwampLavaStreamCues.
Definition at line 242 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_TREMOR_LAVA_ROCK_UNMOVABLE
#define FLAG_TAOPO_SWAMP_TREMOR_LAVA_ROCK_UNMOVABLE FLAG_AREA_TEMP(0x32)
Referenced by scInit(), scTaopoSwampCoolLavaRock(), scTaopoSwampPushLavaRockIn() and TaopoSwampLavaStreamCues.
Definition at line 243 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_TREMOR_LAVA_ROCK_SUNK
#define FLAG_TAOPO_SWAMP_TREMOR_LAVA_ROCK_SUNK FLAG_AREA_TEMP(0x33)
Referenced by scInit() and scTaopoSwampPushLavaRockIn().
Definition at line 244 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_PILLAR_ROCK_COOLED
#define FLAG_TAOPO_SWAMP_PILLAR_ROCK_COOLED FLAG_AREA_TEMP(0x34)
Referenced by scInit(), scTaopoSwampCoolPillarRock() and TaopoSwampLavaStreamCues.
Definition at line 245 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_PILLAR_ROCK_UNMOVABLE
#define FLAG_TAOPO_SWAMP_PILLAR_ROCK_UNMOVABLE FLAG_AREA_TEMP(0x35)
Referenced by scInit(), scTaopoSwampCoolPillarRock(), scTaopoSwampPushPillarRockIn() and TaopoSwampLavaStreamCues.
Definition at line 246 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_PILLAR_ROCK_SUNK
#define FLAG_TAOPO_SWAMP_PILLAR_ROCK_SUNK FLAG_AREA_TEMP(0x36)
Referenced by scInit() and scTaopoSwampPushPillarRockIn().
Definition at line 247 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_CHEST_ROCK_COOLED
#define FLAG_TAOPO_SWAMP_CHEST_ROCK_COOLED FLAG_AREA_TEMP(0x38)
Referenced by scInit(), scTaopoSwampCoolChestRock() and TaopoSwampLavaRocksCues.
Definition at line 248 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_CHEST_ROCK_UNMOVABLE
#define FLAG_TAOPO_SWAMP_CHEST_ROCK_UNMOVABLE FLAG_AREA_TEMP(0x39)
Referenced by scInit(), scTaopoSwampCoolChestRock(), scTaopoSwampPushChestRockIn() and TaopoSwampLavaRocksCues.
Definition at line 249 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_CHEST_ROCK_SUNK
#define FLAG_TAOPO_SWAMP_CHEST_ROCK_SUNK FLAG_AREA_TEMP(0x3a)
Referenced by scInit() and scTaopoSwampPushChestRockIn().
Definition at line 250 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_EXIT_ROCK_COOLED
#define FLAG_TAOPO_SWAMP_EXIT_ROCK_COOLED FLAG_AREA_TEMP(0x3b)
Referenced by scInit(), scTaopoSwampCoolExitRock() and TaopoSwampLavaRocksCues.
Definition at line 251 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_EXIT_ROCK_UNMOVABLE
#define FLAG_TAOPO_SWAMP_EXIT_ROCK_UNMOVABLE FLAG_AREA_TEMP(0x3c)
Referenced by scInit(), scTaopoSwampCoolExitRock(), scTaopoSwampPushExitRockIn() and TaopoSwampLavaRocksCues.
Definition at line 252 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_EXIT_ROCK_SUNK
#define FLAG_TAOPO_SWAMP_EXIT_ROCK_SUNK FLAG_AREA_TEMP(0x3d)
Referenced by scInit() and scTaopoSwampPushExitRockIn().
Definition at line 253 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_DARK_ROCK_COOLED
#define FLAG_TAOPO_SWAMP_DARK_ROCK_COOLED FLAG_AREA_TEMP(0x40)
Referenced by scInit(), scTaopoSwampCoolDarkRock() and TaopoSwampStarDustCues.
Definition at line 254 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_DARK_ROCK_UNMOVABLE
#define FLAG_TAOPO_SWAMP_DARK_ROCK_UNMOVABLE FLAG_AREA_TEMP(0x41)
Referenced by scInit(), scTaopoSwampCoolDarkRock() and TaopoSwampStarDustCues.
Definition at line 255 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_LAST_ROCK_COOLED
#define FLAG_TAOPO_SWAMP_LAST_ROCK_COOLED FLAG_AREA_TEMP(0x42)
Referenced by scInit(), scTaopoSwampCoolLastRock() and TaopoSwampStarDustCues.
Definition at line 256 of file taopo_swamp.c.
FLAG_TAOPO_SWAMP_LAST_ROCK_UNMOVABLE
#define FLAG_TAOPO_SWAMP_LAST_ROCK_UNMOVABLE FLAG_AREA_TEMP(0x43)
Referenced by scInit(), scTaopoSwampCoolLastRock() and TaopoSwampStarDustCues.
Definition at line 257 of file taopo_swamp.c.
MUD_DEPTH_ROW
#define MUD_DEPTH_ROW 256
SCENE_STATE.depth for one row of the leader sunk.
Referenced by scTaopoSwampSinkInMud().
Definition at line 268 of file taopo_swamp.c.
SceneStateWork
#define SceneStateWork (*(SCENE_STATE *)SceneStateWork)
The scene's view of SceneStateWork (system/globals.h).
Referenced by scContigoOfferLuckyDice(), scContigoOfferSuperLuckyDice(), scContigoReportCoinChange(), scGabombaStatueDrawRaisedBlocks(), scGabombaStatueFindBrokenMetatile(), scGabombaStatueIsMetatileTaken(), scGabombaStatueLayChannel(), scGabombaStatueLayPath(), scGabombaStatueLoadBlockPictures(), scGabombaStatueMoveCharge(), scGabombaStatuePoundBlock(), scGabombaStatuePressLeftArrowPanel(), scGabombaStatuePressRightArrowPanel(), scGabombaStatueRaiseBlocks(), scGabombaStatueRedrawChannel(), scGabombaStatueReleaseLeftArrowPanel(), scGabombaStatueReleaseRightArrowPanel(), scGabombaStatueSetBlockAnimation(), scGabombaStatueSetBlocksRaised(), scGabombaStatueSetUpChannelPuzzle(), scGabombaStatueTurnBlockPiece(), scGabombaStatueTurnBlocks(), scGabombaStatueWritePiece(), scGaiaRockInsideStartPlatforms(), scGaiaRockInsideSwayPlatforms(), scInit(), scIsletsDriftIcebergs(), scIsletsInitEastTundaria(), scIsletsStepDownOntoIceberg(), scSeaOfTimeTimeWaves(), scTaopoSwampResetMud(), scTaopoSwampRiseOnBubble(), scTaopoSwampSaveFirmGround(), scTaopoSwampSinkInMud(), scTaopoSwampStepOnFirmGround(), scTrialRoadMoveRival(), scTrialRoadPlayRivalRecording(), scTrialRoadRivalIsWaiting(), scTrialRoadStartRival(), scTrialRoadStopRival() and scTrialRoadWaitForRival().
Definition at line 282 of file taopo_swamp.c.
MUD_COLOR
#define MUD_COLOR 93
The colour of the sprite palette the mud's splashes are drawn in
(SPRITE_COLOR_FILL reads it from DecodeFillByte).
Referenced by scInit().
Definition at line 286 of file taopo_swamp.c.
LEADER_SINK_ROWS
#define LEADER_SINK_ROWS 20
How many rows the leader sinks into the mud before it pulls them back out, and how many the stump sinks before it is gone.
Referenced by scTaopoSwampSinkInMud().
Definition at line 290 of file taopo_swamp.c.
STUMP_SINK_ROWS
#define STUMP_SINK_ROWS 24
Referenced by scTaopoSwampSinkStump().
Definition at line 291 of file taopo_swamp.c.
MUD_SINK_TICKS
#define MUD_SINK_TICKS 96
Each tick the leader walks on the mud sinks them by this share of the full depth, and 1 more.
Referenced by scTaopoSwampSinkInMud().
Definition at line 294 of file taopo_swamp.c.
scTaopoSwampScatterWeedMetatiles
#define scTaopoSwampScatterWeedMetatiles()
Cyclone scatters the Flower room's weeds where it touches them: the weeds' 14 by 8 metatiles from (14, 37) take the metatiles of the bare block at (76, 70).
Referenced by scTaopoSwampScatterWeeds(), scTaopoSwampStartMadPlantBattle() and scTaopoSwampUncoverBrambleSeed().
Definition at line 410 of file taopo_swamp.c.
DEFINE_TAOPO_SWAMP_FREEZE_SPOT
#define DEFINE_TAOPO_SWAMP_FREEZE_SPOT(name, pillarX, z, spotX)
Frost on a round spot's puddle freezes it into a pillar of ice, which stops the gust, and Felix can hop onto it from the stepping stones beside it to cross the gust. The spot's metatile (spotX, z) takes the hop of the stepping stone at (pillarX, z): (26, 8) past the pool, (25, 27) in the rope room.
Definition at line 860 of file taopo_swamp.c.
DEFINE_TAOPO_SWAMP_SHATTER_ICE_PILLAR
#define DEFINE_TAOPO_SWAMP_SHATTER_ICE_PILLAR(
The next gust shatters the ice pillar on a round spot, and Felix, if he stands on it, hops off south and turns to face it. The spot's metatile (spotX, spotZ) takes back the hop of the one at (srcX, srcZ); the rope room's spot, which catchesDrops, also starts its drops again from none.
Definition at line 878 of file taopo_swamp.c.
VENT_CYCLE_TICKS
#define VENT_CYCLE_TICKS 480
The vents' cycle in the vents room, the ice pillar room and the rope room.
Referenced by scTaopoSwampCycleVentsRoomVents().
Definition at line 1378 of file taopo_swamp.c.
VENT_SOUND_NONE
#define VENT_SOUND_NONE (-1)
fdQueueMusic's none: the vents' sound fades out as they stop, and nothing is
queued after it.
Referenced by scTaopoSwampCycleLavaRocksVents() and scTaopoSwampCycleVentsRoomVents().
Definition at line 1381 of file taopo_swamp.c.
LAVA_ROCKS_VENTS_BLOW_TICKS
#define LAVA_ROCKS_VENTS_BLOW_TICKS 180
The lava rocks' room's vents blow for LAVA_ROCKS_VENTS_BLOW_TICKS of every
LAVA_ROCKS_VENT_CYCLE_TICKS.
Referenced by scTaopoSwampCycleLavaRocksVents().
Definition at line 1384 of file taopo_swamp.c.
LAVA_ROCKS_VENT_CYCLE_TICKS
#define LAVA_ROCKS_VENT_CYCLE_TICKS 240
Referenced by scTaopoSwampCycleLavaRocksVents().
Definition at line 1385 of file taopo_swamp.c.
DEFINE_TAOPO_SWAMP_CYCLE_SPOT_VENT
#define DEFINE_TAOPO_SWAMP_CYCLE_SPOT_VENT(
The cycle of the vents by a round spot: they blow for 120 ticks in
VENT_CYCLE_TICKS, and while they blow they break the spot's ice pillar or
blow its puddle away.
Definition at line 1442 of file taopo_swamp.c.
DEFINE_DRIP_AT_RANDOM
#define DEFINE_DRIP_AT_RANDOM(name, x0, z0)
An event: on one in four of every eighth tick, a drop falls from the ceiling at a random place on the 32 pixels running east and north from (x0, z0).
Definition at line 1585 of file taopo_swamp.c.
SET_ROOM_TRANSITION
#define SET_ROOM_TRANSITION()
Referenced by scInit().
Definition at lines 1629 and 1633 of file taopo_swamp.c.
Enumerations in detail
anonymous enum
enum { CUE_MUD, CUE_BUBBLE, CUE_FIRM_GROUND, CUE_FIRST_TEAR_STONE, … }
What the rooms' map metatiles do when Felix steps on them or casts at them,
beside their exits, which scene_exits.h numbers, and the vents' gusts
(CUE_FIRST_GUST).
| Enumerator | Value | Description |
|---|---|---|
CUE_MUD | 60 | Outside: the swamp's mud, its bubbles, and the four metatiles at its edges that count as firm ground. |
CUE_BUBBLE | 61 | |
CUE_FIRM_GROUND | 62 | |
CUE_FIRST_TEAR_STONE | 50 | The buried Tear Stones' spots, in the cave |
CUE_SECOND_TEAR_STONE | 51 | behind the westernmost clump of weeds and in the cave north of the vents room. |
CUE_WEEDS | 30 | In the room below the vents: weeds Cyclone scatters, the weeds over the Bramble Seed and those the Mad Plant hides in. |
CUE_BRAMBLE_SEED_WEEDS | 31 | |
CUE_MAD_PLANT_WEEDS | 32 | |
CUE_JUMP_TO_ROCK | 64 | In the lava rocks' room, the metatile Felix jumps from onto the sunken rock. |
CUE_STAR_DUST | 50 | The Star Dust's spot in the last dark chamber. |
Definition at line 38 of file taopo_swamp.c.
anonymous enum
enum { TEAR_STONES_PASSAGE_TO_CAVE, TEAR_STONES_CAVE_TO_PASSAGE, ICE_PILLAR_SOUTH_TO_NORTH_ROOM, ICE_PILLAR_NORTH_TO_SOUTH_ROOM, … }
The doors between rooms that share one map, each numbered as the exit at its side and as the entrance the other side's exit leads to.
| Enumerator | Value | Description |
|---|---|---|
TEAR_STONES_PASSAGE_TO_CAVE | 8 | The stairs down from the passage |
TEAR_STONES_CAVE_TO_PASSAGE | 9 | north of the vents room into the cave of the second Tear Stone, and back up. |
ICE_PILLAR_SOUTH_TO_NORTH_ROOM | 4 | In the ice pillar room, past the |
ICE_PILLAR_NORTH_TO_SOUTH_ROOM | 5 | pool, the way from the pillar's south room to the round spot's north room, and back. |
ROPE_ROUND_SPOT_TO_ROPE_POSTS | 4 | The rope room's passage: the |
ROPE_ROPE_POSTS_TO_ROUND_SPOT | 5 | doorway in the north wall of the round spot's part, and the south end of the rope posts' part. |
STAR_DUST_FIRST_TO_MIDDLE_ROOM | 3 | The Star Dust's three dark rooms: the first, below the lava stream room, the middle one, and the last chamber. |
STAR_DUST_MIDDLE_TO_FIRST_ROOM | 4 | |
STAR_DUST_MIDDLE_TO_LAST_CHAMBER | 5 | |
STAR_DUST_LAST_CHAMBER_TO_MIDDLE | 6 |
Definition at line 62 of file taopo_swamp.c.
TAOPO_SWAMP_MUD_ACTOR_ID
enum TAOPO_SWAMP_MUD_ACTOR_ID
The swamp's actors outside (SceneIdTaopoSwampMud).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FIRST_BUSH | ACTOR_FIRST_PLACED | The five bushes of weeds Whirlwind blows away (SPRITE_WEEDS), each kept gone by its flag, FLAG_TAOPO_SWAMP_BUSH_BLOWN plus its id. Three of them cover cave mouths at the foot of the cliffs, which open once they are gone. |
ACTOR_TEAR_STONES_WEST_BUSH | ACTOR_FIRST_BUSH | The westernmost bush, at metatile (13, 8), over the cave of the first Tear Stone; the next two, east of it, cover nothing. |
ACTOR_POOL_BUSH | ACTOR_FIRST_BUSH + 3 | The bush at metatile (37, 11), over the way to the pool. |
ACTOR_TEAR_STONES_EAST_BUSH | The bush at metatile | |
ACTOR_LAST_BUSH | ACTOR_TEAR_STONES_EAST_BUSH | (44, 16), over the stairs down to the vents room. |
ACTOR_MUD_SPROUT | The sprout at metatile (47, 17), east of the eastern cave, which Growth grows into a vine (SPRITE_SPROUT). | |
ACTOR_MUD_STUMP | The stump at the east end of the broken plank bridge, metatile (13, 16), which Move pulls into the mud (SPRITE_STUMP). |
Definition at line 88 of file taopo_swamp.c.
TAOPO_SWAMP_VENTS_ACTOR_ID
enum TAOPO_SWAMP_VENTS_ACTOR_ID
The vents room's pillars Move pushes over a vent (SceneIdTaopoSwampVents).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_WEST_VENT_PILLAR | ACTOR_FLOWER + 1 | |
ACTOR_EAST_VENT_PILLAR |
Definition at line 131 of file taopo_swamp.c.
TAOPO_SWAMP_ICE_PILLAR_ACTOR_ID
enum TAOPO_SWAMP_ICE_PILLAR_ACTOR_ID
The actors of the rooms past the pool (SceneIdTaopoSwampIcePillar): the round
spot in the north room, and the pillar by the gap in the south one.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_ICE_PILLAR_PUDDLE | ACTOR_FIRST_PLACED | The round spot in a vent's gust that Douse wets and Frost freezes (SPRITE_PUDDLE). |
ACTOR_GAP_PILLAR | The pillar Move drops into the gap. |
Definition at line 139 of file taopo_swamp.c.
TAOPO_SWAMP_ROPE_ACTOR_ID
enum TAOPO_SWAMP_ROPE_ACTOR_ID
The rope room's actors (SceneIdTaopoSwampRope).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_WEST_ROPE_POST | ACTOR_FIRST_PLACED | The two posts Lash ties a rope |
ACTOR_EAST_ROPE_POST | between (SPRITE_TIGHTROPE_POST). | |
ACTOR_DRIP_PUDDLE | The round spot the ceiling drips onto, in a vent's gust (SPRITE_PUDDLE). |
Definition at line 150 of file taopo_swamp.c.
TAOPO_SWAMP_LAVA_ROCKS_ACTOR_ID
enum TAOPO_SWAMP_LAVA_ROCKS_ACTOR_ID
The lava rocks' room's two glowing rocks (SceneIdTaopoSwampLavaRocks,
SPRITE_EMBER_STONE): on the way to the chest and by the way out.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_CHEST_ROCK | ACTOR_FIRST_PLACED | |
ACTOR_EXIT_ROCK |
Definition at line 163 of file taopo_swamp.c.
TAOPO_SWAMP_LAVA_STREAM_ACTOR_ID
enum TAOPO_SWAMP_LAVA_STREAM_ACTOR_ID
The lava stream room's actors (SceneIdTaopoSwampLavaStream).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_TREMOR_LAVA_ROCK | ACTOR_FIRST_PLACED + 1 | The glowing rock by the |
ACTOR_TREMOR_PILLAR_ROCK | lava, and the one Tremor knocks out of the pillar (SPRITE_EMBER_STONE). | |
ACTOR_TREMOR_PILLAR | The pillar Tremor | |
ACTOR_TREMOR_ROCK_PILE | ACTOR_FIRST_PLACED + 11 | shakes, and the rock pile on it that rolls off. |
Definition at line 170 of file taopo_swamp.c.
TAOPO_SWAMP_STAR_DUST_ACTOR_ID
enum TAOPO_SWAMP_STAR_DUST_ACTOR_ID
The glowing rocks that light the Star Dust's rooms, the first room's and the
last chamber's (SceneIdTaopoSwampStarDust, SPRITE_EMBER_STONE).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_DARK_ROCK | ACTOR_FIRST_PLACED | |
ACTOR_LAST_ROCK |
Definition at line 193 of file taopo_swamp.c.
MUD_FOOTING
enum MUD_FOOTING
Where Felix stands in the swamp outside (SCENE_STATE.footing).
| Enumerator | Value | Description |
|---|---|---|
FOOTING_FIRM_GROUND | 0 | |
FOOTING_MUD | 1 | sinking a little with each step |
FOOTING_BUBBLE | 2 | lifted out of the mud by a bubble |
Definition at line 260 of file taopo_swamp.c.
anonymous enum
enum { CUE_FIRST_GUST, CUE_PAST_SPOT_GUST, CUE_SPOT_GUST, CUE_EAST_PILLAR_GUST, … }
The vents' gusts: each vent blows south along a column of metatiles whose
step cue is CUE_FIRST_GUST plus its place in its room's list
(TaopoSwampVentsGustVents, TaopoSwampIcePillarGustVents), and walking south
off the end of one of the vents room's first seven, or the round spot's,
drops the leader to the room below by the exit of the same number.
| Enumerator | Value | Description |
|---|---|---|
CUE_FIRST_GUST | 10 | |
CUE_PAST_SPOT_GUST | CUE_FIRST_GUST | Past the pool, the gust's |
CUE_SPOT_GUST | CUE_FIRST_GUST + 2 | metatile beyond the round spot, and its metatiles from the vent to the spot, which an ice pillar on the spot stops. |
CUE_EAST_PILLAR_GUST | CUE_FIRST_GUST + 2 | In the vents room, the gusts |
CUE_WEST_PILLAR_GUST | CUE_FIRST_GUST + 8 | of the vents the east and west pillars can be moved over. |
CUE_FLOWER_IN_GUST | 100 | Raised while the vent beside the covered one blows on Flower's ledge. |
Definition at line 301 of file taopo_swamp.c.
anonymous enum
enum { VENT_BESIDE_WEST_PILLAR, VENT_BESIDE_EAST_PILLAR }
The vents room's vents beside the two its pillars can cover, as places in
TaopoSwampVentsVents: covering one makes the one beside it blow twice as far,
and the one beside the east pillar's then reaches Flower's ledge.
| Enumerator | Value | Description |
|---|---|---|
VENT_BESIDE_WEST_PILLAR | 2 | |
VENT_BESIDE_EAST_PILLAR | 8 |
Definition at line 321 of file taopo_swamp.c.
Functions in detail
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 332 and 2206 of file taopo_swamp.c.
scVentSetBlowing
void scVentSetBlowing(Sint32 index, Sint32 blowing)
scVentSetBlowing, defined below, is called with no prototype in scope.
Starts or stops vent index's gust.
References Sint32.
Referenced by scAquaRockInsideUpdateVents(), scTaopoSwampCycleLavaRocksVents() and scTaopoSwampCycleVentsRoomVents().
Definition at lines 339 and 2197 of file taopo_swamp.c.
scTaopoSwampShowMessage
void scTaopoSwampShowMessage(Sint32 msg)
Shows a message in a script; when someone in the party has Scoop, the field
menu then opens (fdScriptShowMessageAndOfferScoop, through the overlay's own
import row).
Referenced by scTaopoSwampShowSparkleMessage().
Definition at line 345 of file taopo_swamp.c.
scTaopoSwampFocusMapMiddle
void scTaopoSwampFocusMapMiddle()
void scTaopoSwampFocusMapMiddle(void)
Declared without its parameters: scInit passes it a 0 it does not take.
Shows the Star Dust rooms' light lit, from tile (100, 100).
References scTaopoSwampFocusMapOn().
Referenced by scInit().
Definition at lines 347 and 2023 of file taopo_swamp.c.
scTaopoSwampFocusMapOn
void scTaopoSwampFocusMapOn(Sint32 x, Sint32 z)
Shows the Star Dust rooms' light, the map's layer 2, from its 8-pixel tile (x, z) on, and the screen follows.
References fdMapGridCenterOnFollowedPoint(), MapGridMetatileBuffer, MapShapeGrid, Sint32 and sySynch().
Referenced by scTaopoSwampDarkenRoom() and scTaopoSwampFocusMapMiddle().
Definition at lines 348 and 1971 of file taopo_swamp.c.
scTaopoSwampDarkenRoom
void scTaopoSwampDarkenRoom(Sint32 fade)
The light goes out, over 50 ticks when fade is set, from tile (100, 50) on, and in the last chamber the Star Dust's sparkle starts.
References fdBlendScriptSuspend(), MainRoutineStateWork, scFieldSetTickEvent(), scTaopoSwampFocusMapOn(), scTaopoSwampSparkleStarDust(), Sint32 and sySynch().
Referenced by scInit(), scTaopoSwampCoolDarkRock() and scTaopoSwampCoolLastRock().
Definition at lines 349 and 2000 of file taopo_swamp.c.
scTaopoSwampSinkInMud
void scTaopoSwampSinkInMud(void)
Each step Felix takes through the swamp's mud sinks him a little deeper. Sunk all the way, he goes under, two rings spread on the mud, and he comes back up on the last of the mud's firm metatiles he crossed.
References fdActorGet(), fdActorStartScript(), fdScriptEnd(), fdScriptStart(), fdSpriteStartAnimation(), PerWork, scFieldActorCreate(), scFieldPartyGetLeaderActor(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), Sint32, sySynch() and TaopoSwampSplashFades.
Referenced by TaopoSwampMudCues.
Definition at lines 350 and 2041 of file taopo_swamp.c.
scTaopoSwampRiseOnBubble
void scTaopoSwampRiseOnBubble(void)
Stepping onto one of the bubbles in the swamp's mud, Felix is drawn to its middle and lifted back out to full height.
References fdActorGet(), fdScriptEnd(), fdScriptStart(), scFieldActorSetMoveTargetFX(), scFieldActorWaitForMove(), scFieldPartyGetLeaderActor(), scFieldScriptEndLastingPsynergy() and sySynch().
Referenced by TaopoSwampMudCues.
Definition at lines 351 and 2104 of file taopo_swamp.c.
scTaopoSwampStepOnFirmGround
void scTaopoSwampStepOnFirmGround(void)
Stepping onto one of the four firm metatiles at the edges of the swamp's mud, (22, 9), (37, 14), (39, 19) and (8, 25), Felix stands at full height again, and the mud will bring him back here if he sinks.
References fdActorGet(), scFieldPartyGetLeaderActor() and scTaopoSwampSaveFirmGround().
Referenced by TaopoSwampMudCues.
Definition at lines 352 and 2139 of file taopo_swamp.c.
scTaopoSwampSaveFirmGround
void scTaopoSwampSaveFirmGround(void)
Keeps the metatile Felix stands on as the one the mud returns him to.
References fdActorGet() and scFieldPartyGetLeaderActor().
Referenced by scTaopoSwampStepOnFirmGround().
Definition at lines 353 and 2160 of file taopo_swamp.c.
scTaopoSwampJumpForward
void scTaopoSwampJumpForward(void)
Walking east from metatile (9, 21) in the lava rocks' room, Felix jumps two metatiles over the lava onto the rock sunk at metatile (11, 21), once it is there. The Japanese release has no such cue.
References fdTryJumpForward().
Referenced by TaopoSwampLavaRocksCues.
Definition at lines 354 and 1238 of file taopo_swamp.c.
scTaopoSwampGrowVine
void scTaopoSwampGrowVine(void)
Growth on the sprout beside the eastern cave, metatile (47, 17), grows it into a vine up the cliff, which Felix can then climb. Its two metatiles take the climbable metatiles kept at (50, 16).
References fdMapGridCopyMetatileAttributes() and fdScriptSetFlag().
Referenced by TaopoSwampMudCues.
Definition at lines 355 and 496 of file taopo_swamp.c.
scTaopoSwampUncoverBrambleSeed
void scTaopoSwampUncoverBrambleSeed(void)
Cyclone on the weeds at metatile (16, 41), in the room below the vents, scatters them and uncovers the Bramble Seed there, until it has been taken. Felix, if he stands on that metatile, hops a step north off it.
References fdActorGet(), fdActorSetAttachedEffect(), fdActorSetDestinationOffset(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), MainRoutineStateWork, scFieldActorWaitForMoveById() and scFieldScriptEndLastingPsynergy().
Referenced by TaopoSwampFlowerCues.
Definition at lines 356 and 619 of file taopo_swamp.c.
scTaopoSwampStartMadPlantBattle
void scTaopoSwampStartMadPlantBattle(void)
Cyclone on the weeds at metatile (21, 40), in the room below the vents, scatters them, and until it is beaten a Mad Plant leaps out of them at Felix and the party must fight it, with no escape.
References fdRequestBattleFromEncounterTable(), fdScriptGetFlag(), MainRoutineStateWork and scTaopoSwampLeapAtLeader().
Referenced by TaopoSwampFlowerCues.
Definition at lines 357 and 649 of file taopo_swamp.c.
scTaopoSwampFillDripSpot
void scTaopoSwampFillDripSpot(Sint32 caster, Sint32 id)
A drop from the ceiling, or Douse, on the round spot in the rope room, metatile (25, 27), shows a puddle there. Frost can freeze it once the spot has caught four drops, or at once when Jenna cast the Douse: with Felix leading, Douse leaves the puddle, but Frost on it only scatters its snowflakes and the puddle stays as it was. A drop passes no caster.
References fdActorGet(), fdActorSetAnimation(), fdScriptSetFlag(), scFieldActorSetSpritePriority(), scFieldGameFlagGetByte() and Sint32.
Referenced by scTaopoSwampLandDrip() and TaopoSwampRopeCues.
Definition at lines 358 and 934 of file taopo_swamp.c.
scTaopoSwampShatterIcePillar
void scTaopoSwampShatterIcePillar(Sint32 id)
DEFINE_TAOPO_SWAMP_SHATTER_ICE_PILLAR( scTaopoSwampShatterIcePillar, FALSE, 22, 8, 26, 8)
The ice pillar on the round spot past the pool, metatile (26, 8).
References Sint32.
Definition at lines 359 and 914 of file taopo_swamp.c.
scTaopoSwampBlowAwayPuddle
void scTaopoSwampBlowAwayPuddle(Sint32 id)
The next gust blows the puddle off the round spot past the pool.
References fdActorGet(), fdActorSetAnimation(), fdScriptClearFlag(), scFieldActorSetSpritePriority(), scVentSetId() and Sint32.
Definition at lines 360 and 918 of file taopo_swamp.c.
scTaopoSwampTremorPillar
void scTaopoSwampTremorPillar(void)
Tremor on the pillar with the huge rock pile on top, in the middle of the
lava stream room: the pile rolls off and lands with a thump, a glowing red
rock pops out of the pillar, clods burst out, the lava stream north of it
dries into a passage from its south end up, and the camera turns to the lava
pool to the south-west, which cools, steaming
(FLAG_TAOPO_SWAMP_PASSAGE_OPEN).
References DebrisScript, fdActorGet(), fdActorSetDestination(), fdActorSetSpriteFlags(), fdActorStartScript(), fdMapGridCopyMetatiles(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), scFieldActorCreate(), scFieldActorWaitForMoveById(), scFieldMapGridWaitForShakeToSettle(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), scTaopoSwampFlickerPool(), scTaopoSwampOpenPassage(), scTaopoSwampPuffSteam(), scTaopoSwampSpinRockPile(), Sint32, syCos(), syRandom(), sySetTickEvent(), sySin() and sySynch().
Referenced by TaopoSwampLavaStreamCues.
Definition at lines 361 and 1089 of file taopo_swamp.c.
scTaopoSwampPuffSteam
void scTaopoSwampPuffSteam(void)
An event: one puff of steam from the cooling pool each tick, until the count runs out.
References fdActorSetBlendMode(), fdActorSetSpriteFlags(), fdActorStartScript(), scFieldActorCreate(), scFieldCloseEvent(), Sint32, syRandom(), TaopoSwampPuffSteamScript and TaopoSwampSteamPuffs.
Referenced by scTaopoSwampTremorPillar().
Definition at lines 362 and 1039 of file taopo_swamp.c.
scTaopoSwampOpenPassage
void scTaopoSwampOpenPassage(void)
An event: the lava stream north of the pillar dries into a passage, from its south end up, a row of metatiles every eight ticks.
References fdMapGridCopyMetatiles(), scFieldCloseEvent(), Sint32 and TaopoSwampPassageTicks.
Referenced by scTaopoSwampTremorPillar().
Definition at lines 363 and 1060 of file taopo_swamp.c.
scTaopoSwampFlickerPool
void scTaopoSwampFlickerPool(void)
An event: the cooled pool's two pictures in turn, until the count runs out.
References fdMapGridCopyMetatiles(), scFieldCloseEvent(), Sint32 and TaopoSwampPoolTicks.
Referenced by scTaopoSwampTremorPillar().
Definition at lines 364 and 1072 of file taopo_swamp.c.
scTaopoSwampSparkleStarDust
void scTaopoSwampSparkleStarDust(void)
An event: the Star Dust's sparkle in the dark, a 3 by 3 picture of metatiles
that steps through four pictures and back every 60 ticks, until it is dug up
and the last picture stays (FLAG_TAOPO_SWAMP_STAR_DUST_DUG_UP). The pictures
are stacked at x 45 of the map from row 50.
References fdMapGridCopyMetatilesLayered(), fdScriptGetFlag(), Sint32 and TaopoSwampSparkleTick.
Referenced by scTaopoSwampDarkenRoom().
Definition at lines 365 and 1941 of file taopo_swamp.c.
scTaopoSwampCopyMetatileAttributes
static __inline__ void scTaopoSwampCopyMetatileAttributes( Sint32 srcX, Sint32 srcZ, Sint32 width, Sint32 height, Sint32 x, Sint32 z)
Copies what metatiles do and their flags, as the frozen spots do
(fdMapGridCopyMetatileAttributes).
References fdMapGridCopyMetatileAttributes() and Sint32.
Definition at line 381 of file taopo_swamp.c.
scTaopoSwampJumpDownLedge
static __inline__ void scTaopoSwampJumpDownLedge(Sint32 id, Sint32 pose, Sint32 param)
Actor id jumps down off the ledge before it (fdActorJumpDownLedge).
References fdActorJumpDownLedge() and Sint32.
Referenced by scTaopoSwampDropToLowerFloor().
Definition at line 388 of file taopo_swamp.c.
scTaopoSwampCopyTouchedMetatiles
static __inline__ void scTaopoSwampCopyTouchedMetatiles(Sint32 srcX, Sint32 srcZ, Sint32 width, Sint32 height, Sint32 x, Sint32 z, Sint32 layer)
Copies the map metatiles the leader's Psynergy touches
(fdTileCopiesCopyTouchedMetatiles).
References fdTileCopiesCopyTouchedMetatiles() and Sint32.
Definition at line 396 of file taopo_swamp.c.
scTaopoSwampCreateActor
static __inline__ ACTOR * scTaopoSwampCreateActor(Sint32 type, Sint32 x, Sint32 y, Sint32 z)
Creates an actor of sprite type at x, y, z.
References Sint32 and syImportActorCreate().
Referenced by scTaopoSwampLandDrip(), scTaopoSwampLandDrop() and scVentPuff().
Definition at line 414 of file taopo_swamp.c.
scTaopoSwampLeapAtLeader
static __inline__ void scTaopoSwampLeapAtLeader(Sint32 sprite, Sint32 x, Sint32 z)
The Mad Plant leaps out of the weeds at the leader (fdMadPlantLeapAtLeader).
References fdMadPlantLeapAtLeader() and Sint32.
Referenced by scTaopoSwampStartMadPlantBattle().
Definition at line 421 of file taopo_swamp.c.
scTaopoSwampFightFlower
void scTaopoSwampFightFlower(void)
Talking to Flower, the Venus Djinni, starts its battle.
References fdRequestDjinnBattle().
Referenced by TaopoSwampFlowerCues.
Definition at line 428 of file taopo_swamp.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 433 of file taopo_swamp.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 438 of file taopo_swamp.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 443 of file taopo_swamp.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References MainRoutineStateWork, TaopoSwampFlowerActorPlacements, TaopoSwampIcePillarActorPlacements, TaopoSwampLavaRocksActorPlacements, TaopoSwampLavaStreamActorPlacements, TaopoSwampMudActorPlacements, TaopoSwampPlacements, TaopoSwampRopeActorPlacements, TaopoSwampStarDustActorPlacements and TaopoSwampVentsActorPlacements.
Definition at line 458 of file taopo_swamp.c.
scTaopoSwampBlowAwayBush
void scTaopoSwampBlowAwayBush(Sint32 unused, Sint32 id)
Whirlwind on one of the five bushes of weeds at the foot of the swamp's
cliffs blows it away for good. Three hide cave mouths: the westernmost, at
metatile (13, 8), the way to the first Tear Stone; the one at metatile (37,
11), the way to the pool; and the one at metatile (44, 16), the stairs down
to the vents room. The two just east of the first, at (16, 7) and (18, 7),
hide nothing. The bush's flag, FLAG_TAOPO_SWAMP_BUSH_BLOWN plus its actor,
keeps it gone and opens the exit behind it.
References Sint32 and syGameFlagSet().
Referenced by TaopoSwampMudCues.
Definition at line 488 of file taopo_swamp.c.
scTaopoSwampSinkStump
void scTaopoSwampSinkStump(Sint32 unused, Sint32 id)
Move pulling the stump at the east end of the broken plank bridge west into
the gap at metatile (12, 16) drops it into the mud there: it slowly sinks,
throwing up mud, two rings spread where it went under, and it stays gone, so
Felix can hop across the gap. It sinks a row of its picture every three
ticks, and FLAG_TAOPO_SWAMP_STUMP_SUNK keeps it from being placed again.
References fdActorGetById(), fdActorStartScript(), fdScriptEnd(), fdScriptSetFlag(), fdScriptStart(), fdSpriteSetAnimationColorModes(), fdSpriteSetAnimationSpeed(), fdSpriteStartAnimation(), scFieldActorCreate(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), Sint32, syRandom(), sySynch() and TaopoSwampSplashFades.
Referenced by TaopoSwampMudCues.
Definition at line 509 of file taopo_swamp.c.
scTaopoSwampScoopSecondTearStone
void scTaopoSwampScoopSecondTearStone(Sint32 mode)
Scoop on the ring of small stones in the middle of the cave at the end of the passage north of the vents room, metatile (25, 43), digs up a Tear Stone.
References fdScriptDigUpTreasure() and Sint32.
Referenced by TaopoSwampTearStonesCues.
Definition at line 595 of file taopo_swamp.c.
scTaopoSwampScoopFirstTearStone
void scTaopoSwampScoopFirstTearStone(Sint32 mode)
Scoop on the ring of small stones in the middle of the small cave behind the westernmost bush of weeds, metatile (25, 7), digs up a Tear Stone.
References fdScriptDigUpTreasure() and Sint32.
Referenced by TaopoSwampTearStonesCues.
Definition at line 603 of file taopo_swamp.c.
scTaopoSwampScatterWeeds
void scTaopoSwampScatterWeeds(void)
Cyclone on the green weeds dotting the west of the room below the vents scatters their leaves and clears the weeds it touched.
Referenced by TaopoSwampFlowerCues.
Definition at line 611 of file taopo_swamp.c.
scTaopoSwampDropToLowerFloor
void scTaopoSwampDropToLowerFloor(Sint32 exit)
Walking south off the ledge at the foot of a vent's gust, or blown off it, Felix springs down and lands in the room below: from the vents room's seven gusts (their ends from metatile (12, 16) in the west to (39, 16) in the east) into the room of the weeds below the vents, and from the round spot's gust, metatile (26, 10), into the rope room. Each gust's metatiles and the exit it leaves by share their number.
References fdScriptPlaySound(), fdScriptSetFlag(), MainRoutineStateWork, scFieldActorSetSpritePriority(), scFieldScriptSetExitRequest(), scTaopoSwampJumpDownLedge() and Sint32.
Referenced by scTaopoSwampStepIntoGust(), TaopoSwampIcePillarCues and TaopoSwampVentsCues.
Definition at line 668 of file taopo_swamp.c.
scTaopoSwampPushPillarOverVent
void scTaopoSwampPushPillarOverVent(Sint32 unused, Sint32 id)
Move pushing one of the vents room's two stone pillars in front of the vent beside it, the west one to metatile (17, 14) or the east one to metatile (29, 15), blocks that vent's gust and makes the next vent blow twice as hard; from the east pillar's, the gust then reaches Flower's ledge. The pillar's flag keeps it there.
References fdActorGet(), fdScriptSetFlag(), scVentSetGust() and Sint32.
Referenced by TaopoSwampVentsCues.
Definition at line 684 of file taopo_swamp.c.
scTaopoSwampStepIntoGust
void scTaopoSwampStepIntoGust(Sint32 gust)
Stepping into the gust in front of a vent while it puffs (in the vents room, the ice pillar room, the rope room or the lava rocks' room), Felix is blown south, spinning, until a wall stops him or off the ledge into the room below. An ice pillar on a round spot, or a pillar Moved before a vent, stops the gust.
References fdActorGet(), fdMapGridCheckCollision(), fdScriptGetFlag(), fdScriptStart(), MainRoutineStateWork, result, scFieldScriptEndLastingPsynergy(), scTaopoSwampDropToLowerFloor(), scVentIsBlowing(), Sint32, sySynch(), TaopoSwampIcePillarGustVents and TaopoSwampVentsGustVents.
Referenced by TaopoSwampIcePillarCues, TaopoSwampLavaRocksCues, TaopoSwampRopeCues and TaopoSwampVentsCues.
Definition at line 716 of file taopo_swamp.c.
scTaopoSwampBlowFlowerOffLedge
void scTaopoSwampBlowFlowerOffLedge(void)
Once the east pillar covers its vent, the next gust of the vent beside it
reaches Flower, the Venus Djinni, on its ledge at metatile (25, 19): Felix
turns to it with a start, the camera moves to Flower, and it hops three times
and falls off the ledge into the room below, where it waits
(FLAG_TAOPO_SWAMP_FLOWER_OFF_LEDGE).
References fdActorFaceActor(), fdActorGet(), fdActorSetAttachedEffect(), fdActorWalkByAndWait(), fdCameraWaitForArrival(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, scFieldActorShowEmote(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait() and Sint32.
Referenced by TaopoSwampVentsCues.
Definition at line 791 of file taopo_swamp.c.
scTaopoSwampDropPillarIntoGap
void scTaopoSwampDropPillarIntoGap(Sint32 unused, Sint32 id)
Move pushing the stone pillar on the ledge in the south room past the pool,
metatile (15, 26), east off it drops the pillar into the gap at metatile (16,
26), and its top becomes a stepping stone Felix hops across the gap on
(FLAG_TAOPO_SWAMP_PILLAR_IN_GAP). The gap's metatile takes the hop of the
pillar's old one.
References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdScriptSetFlag(), scActorWaitToLand() and Sint32.
Referenced by TaopoSwampIcePillarCues.
Definition at line 832 of file taopo_swamp.c.
scTaopoSwampDouseVentSpot
void scTaopoSwampDouseVentSpot(Sint32 unused, Sint32 id)
Douse on the round spot at the dead end in the north room past the pool, metatile (26, 8), in the gust of the vent above it, leaves a puddle there, which the next gust blows away unless Frost turns it to an ice pillar first.
References fdActorGet(), fdActorSetAnimation(), fdScriptSetFlag(), scFieldActorSetSpritePriority() and Sint32.
Referenced by TaopoSwampIcePillarCues.
Definition at line 847 of file taopo_swamp.c.
scTaopoSwampFreezeVentSpot
DEFINE_TAOPO_SWAMP_FREEZE_SPOT(scTaopoSwampFreezeVentSpot, 28, 8, 26)
Frost on the puddle on the round spot past the pool, metatile (26, 8).
Referenced by TaopoSwampIcePillarCues.
Definition at line 872 of file taopo_swamp.c.
scTaopoSwampFreezeDripSpot
DEFINE_TAOPO_SWAMP_FREEZE_SPOT(scTaopoSwampFreezeDripSpot, 23, 27, 25)
Frost on the puddle on the rope room's round spot, metatile (25, 27).
Referenced by TaopoSwampRopeCues.
Definition at line 948 of file taopo_swamp.c.
scTaopoSwampShatterDripIcePillar
DEFINE_TAOPO_SWAMP_SHATTER_ICE_PILLAR( scTaopoSwampShatterDripIcePillar, TRUE, 1, 1, 25, 27)
The ice pillar on the rope room's round spot, metatile (25, 27): the tall pillar breaks into a lump of ice that is gone a moment later, leaving the spot bare for the drops to fill again. The vents blow and the ceiling drips only while the party is in the round spot's part of the room.
Definition at line 954 of file taopo_swamp.c.
scTaopoSwampBlowAwayDripPuddle
void scTaopoSwampBlowAwayDripPuddle(Sint32 id)
The next gust blows the puddle off the rope room's round spot, and the drops
it has caught start again from none. Kept apart from
scTaopoSwampBlowAwayPuddle: this spot's puddle flag stays set.
References fdActorGet(), fdActorSetAnimation(), fdScriptClearFlag(), scFieldActorSetSpritePriority(), scVentSetId(), Sint32 and syGameFlagSetByte().
Definition at line 960 of file taopo_swamp.c.
scTaopoSwampCoolLavaRock
void scTaopoSwampCoolLavaRock(Sint32 unused, Sint32 id)
Douse on the glowing red rock at the edge of the lava in the lava stream room's west, metatile (8, 15), cools it, and Move can push it.
References fdActorSetAnimation(), fdScriptClearFlag(), fdScriptSetFlag() and Sint32.
Referenced by TaopoSwampLavaStreamCues.
Definition at line 973 of file taopo_swamp.c.
scTaopoSwampPushLavaRockIn
void scTaopoSwampPushLavaRockIn(Sint32 unused, Sint32 id)
Move pushing the cooled rock in the lava stream room's west into the lava at metatile (7, 15) sinks it there as a stepping stone, which Felix hops across on to reach the bottom of the room.
References fdActorGet(), fdActorSetAnimation(), fdMapGridCopyMetatileAttributes(), fdScriptSetFlag() and Sint32.
Referenced by TaopoSwampLavaStreamCues.
Definition at line 983 of file taopo_swamp.c.
scTaopoSwampCoolPillarRock
void scTaopoSwampCoolPillarRock(Sint32 unused, Sint32 id)
Douse on the red rock Tremor knocked out of the pillar, where it landed west of it at metatile (27, 14), cools it, and Move can push it.
References fdActorSetAnimation(), fdMapGridCopyMetatileAttributes(), fdScriptClearFlag(), fdScriptSetFlag() and Sint32.
Referenced by TaopoSwampLavaStreamCues.
Definition at line 1000 of file taopo_swamp.c.
scTaopoSwampPushPillarRockIn
void scTaopoSwampPushPillarRockIn(Sint32 unused, Sint32 id)
Move pushing the cooled rock from the pillar south to metatile (27, 16) sends it sliding two metatiles west, to metatile (25, 16), where it sinks as a stepping stone.
References fdActorGet(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdMapGridCopyMetatileAttributes(), fdScriptSetFlag(), scFieldActorWaitForMoveById() and Sint32.
Referenced by TaopoSwampLavaStreamCues.
Definition at line 1011 of file taopo_swamp.c.
scTaopoSwampSpinRockPile
void scTaopoSwampSpinRockPile(ACTOR *actor)
The update of the rock pile Tremor knocks off the pillar: it turns back a thirty-second of a turn each tick as it rolls.
Referenced by scTaopoSwampTremorPillar().
Definition at line 1032 of file taopo_swamp.c.
scTaopoSwampCoolChestRock
void scTaopoSwampCoolChestRock(Sint32 unused, Sint32 id)
Douse on the glowing red rock in the lava rocks' room's lower left corner, metatile (11, 22), on the way to the Vial's chest, cools it, and Move can push it.
References fdActorSetAnimation(), fdScriptClearFlag(), fdScriptSetFlag() and Sint32.
Referenced by TaopoSwampLavaRocksCues.
Definition at line 1176 of file taopo_swamp.c.
scTaopoSwampPushChestRockIn
void scTaopoSwampPushChestRockIn(Sint32 unused, Sint32 id)
Move pushing the cooled rock in the lava rocks' room's lower left corner north into the lava at metatile (11, 21) sinks it there as a stepping stone on the way to the Vial's chest.
References fdActorGet(), fdActorSetAnimation(), fdMapGridCopyMetatileAttributes(), fdScriptSetFlag() and Sint32.
Referenced by TaopoSwampLavaRocksCues.
Definition at line 1186 of file taopo_swamp.c.
scTaopoSwampCoolExitRock
void scTaopoSwampCoolExitRock(Sint32 unused, Sint32 id)
Douse on the glowing red rock in the lava rocks' room's upper right corner, metatile (32, 13), by the way back to the lava stream room, cools it, and Move can push it.
References fdActorSetAnimation(), fdScriptClearFlag(), fdScriptSetFlag() and Sint32.
Referenced by TaopoSwampLavaRocksCues.
Definition at line 1204 of file taopo_swamp.c.
scTaopoSwampPushExitRockIn
void scTaopoSwampPushExitRockIn(Sint32 unused, Sint32 id)
Move pushing the cooled rock in the lava rocks' room's upper right corner west into the lava stream at metatile (31, 13) sends it sliding two metatiles north to metatile (31, 11), where it sinks as a stepping stone across the stream, the way back to the lava stream room.
References fdActorGet(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdMapGridCopyMetatileAttributes(), fdScriptSetFlag(), scFieldActorWaitForMoveById() and Sint32.
Referenced by TaopoSwampLavaRocksCues.
Definition at line 1215 of file taopo_swamp.c.
scTaopoSwampCoolDarkRock
void scTaopoSwampCoolDarkRock(Sint32 unused, Sint32 id)
Douse on the glowing rock lighting the first dark room below the lava stream room, metatile (7, 39), puts its light out, the room going dark, and Move can push it aside.
References fdActorSetAnimation(), fdMapGridCopyMetatileAttributes(), fdScriptClearFlag(), fdScriptSetFlag(), scTaopoSwampDarkenRoom() and Sint32.
Referenced by TaopoSwampStarDustCues.
Definition at line 1247 of file taopo_swamp.c.
scTaopoSwampCoolLastRock
void scTaopoSwampCoolLastRock(Sint32 unused, Sint32 id)
Douse on the glowing rock in the last chamber, metatile (32, 39), puts its light out, and in the dark a light shows on the ground where the Star Dust is buried.
References fdActorSetAnimation(), fdScriptClearFlag(), fdScriptSetFlag(), scTaopoSwampDarkenRoom() and Sint32.
Referenced by TaopoSwampStarDustCues.
Definition at line 1259 of file taopo_swamp.c.
scTaopoSwampScoopStarDust
void scTaopoSwampScoopStarDust(Sint32 mode)
Scoop on the light on the ground in the last chamber, metatile (27, 37), digs
up the Star Dust (FLAG_TAOPO_SWAMP_STAR_DUST_DUG_UP).
References fdScriptDigUpTreasure() and Sint32.
Referenced by TaopoSwampStarDustCues.
Definition at line 1269 of file taopo_swamp.c.
scTaopoSwampShowSparkleMessage
void scTaopoSwampShowSparkleMessage(void)
Searching the ground at the Star Dust's spot in the last chamber, metatile (27, 37), before it is dug up: "I thought I saw something sparkling in the ground!"
References MsgIThoughtI, scTaopoSwampShowMessage() and Sint32.
Referenced by TaopoSwampStarDustCues.
Definition at line 1278 of file taopo_swamp.c.
scGetCues
const CUE *scGetCues(void)
References MainRoutineStateWork, TaopoSwampCues, TaopoSwampEntranceCues, TaopoSwampFlowerCues, TaopoSwampIcePillarCues, TaopoSwampLavaRocksCues, TaopoSwampLavaStreamCues, TaopoSwampMudCues, TaopoSwampPoolCues, TaopoSwampRopeCues, TaopoSwampStarDustCues, TaopoSwampTearStonesCues and TaopoSwampVentsCues.
Definition at line 1296 of file taopo_swamp.c.
scTaopoSwampLandDrop
Bool scTaopoSwampLandDrop(ACTOR *actor)
A falling drop splashes where it lands.
References fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdActorStartScript(), fdScriptPlaySound(), scTaopoSwampCreateActor() and TaopoSwampDropRingFades.
Referenced by TaopoSwampDripAtRandomScript.
Definition at line 1326 of file taopo_swamp.c.
scTaopoSwampDripAtRandom
void scTaopoSwampDripAtRandom(void)
An event: on one in four of every eighth tick, a drop falls into the swamp's water at a random place near its east end.
References fdActorSetSpriteFlags(), fdActorSetSpritePriorityDirect(), fdActorStartScript(), scFieldActorCreate(), Sint32, syRandom(), TaopoSwampDripAtRandomScript and TickCount.
Referenced by scInit().
Definition at line 1355 of file taopo_swamp.c.
scTaopoSwampCycleVentsRoomVents
void scTaopoSwampCycleVentsRoomVents(void)
The vents room's cycle of VENT_CYCLE_TICKS: two sets of vents blow in turn,
and while the second blows with the east pillar over its vent, Flower is
blown off its ledge.
References fdQueueMusic(), fdScriptGetFlag(), scVentAdvanceCounter(), scVentGetCounter(), scVentSetBlowing() and Sint32.
Referenced by scInit().
Definition at line 1390 of file taopo_swamp.c.
scTaopoSwampCycleSpotVent
DEFINE_TAOPO_SWAMP_CYCLE_SPOT_VENT(scTaopoSwampCycleSpotVent, ACTOR_ICE_PILLAR_PUDDLE, scTaopoSwampShatterIcePillar, scTaopoSwampBlowAwayPuddle)
The round spot's past the pool.
Referenced by scInit().
Definition at line 1472 of file taopo_swamp.c.
scTaopoSwampCycleDripVent
DEFINE_TAOPO_SWAMP_CYCLE_SPOT_VENT(scTaopoSwampCycleDripVent, ACTOR_DRIP_PUDDLE, scTaopoSwampShatterDripIcePillar, scTaopoSwampBlowAwayDripPuddle)
The rope room's, for the spot the ceiling drips onto.
Referenced by scInit().
Definition at line 1478 of file taopo_swamp.c.
scTaopoSwampCycleLavaRocksVents
void scTaopoSwampCycleLavaRocksVents(void)
The lava rocks' room's vents' cycle.
References fdQueueMusic(), scVentAdvanceCounter(), scVentGetCounter() and scVentSetBlowing().
Referenced by scInit().
Definition at line 1484 of file taopo_swamp.c.
scTaopoSwampLandDrip
Bool scTaopoSwampLandDrip(ACTOR *actor)
A drop from the ceiling lands: it splashes and grows the puddle below by one, up to four.
References fdActorGet(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdActorStartScript(), fdScriptGetFlag(), fdScriptPlaySound(), scFieldGameFlagGetByte(), scTaopoSwampCreateActor(), scTaopoSwampFillDripSpot(), Sint32, syGameFlagSetByte() and TaopoSwampDropRingFades.
Referenced by TaopoSwampDripFromCeilingScript.
Definition at line 1504 of file taopo_swamp.c.
scTaopoSwampDripFromCeiling
void scTaopoSwampDripFromCeiling(void)
An event: every 64 ticks a drop falls from the ceiling onto the rope room's spot.
References fdActorSetSpriteFlags(), fdActorStartScript(), scFieldActorCreate(), TaopoSwampDripFromCeilingScript and TickCount.
Referenced by scInit().
Definition at line 1554 of file taopo_swamp.c.
scTaopoSwampIsDropFalling
Bool scTaopoSwampIsDropFalling(ACTOR *actor)
A drop's script test: whether it is still above the floor.
Referenced by TaopoSwampDropFallScript.
Definition at line 1576 of file taopo_swamp.c.
scTaopoSwampDripInIcePillarRoom
DEFINE_DRIP_AT_RANDOM(scTaopoSwampDripInIcePillarRoom, toFIXED(384), toFIXED(400))
The drops falling in the ice pillar room, from (384, 400).
Referenced by scInit().
Definition at line 1610 of file taopo_swamp.c.
scTaopoSwampDripInRopeRoom
DEFINE_DRIP_AT_RANDOM(scTaopoSwampDripInRopeRoom, toFIXED(416), toFIXED(352))
The drops falling in the rope room, from (416, 352).
Referenced by scInit().
Definition at line 1615 of file taopo_swamp.c.
scTaopoSwampResetMud
void scTaopoSwampResetMud(void)
Entering the swamp outside afresh (not back from a menu or battle), Felix starts out of the mud.
References fdScriptGetFlag().
Referenced by scInit().
Definition at lines 1622 and 2030 of file taopo_swamp.c.
scInit
Sint32 scInit(void)
Sets up the room the party arrives in as its flags left it: the mud's bushes, vine and stump, the vents and their cycles, the spots, the rope, the glowing rocks and the passage.
References Call4(), DecodeFillByte, fdActorGetById(), fdActorSelectAnimation(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorSetWideSprite(), fdBlendScriptSuspend(), fdEffectStartBlankOverlay(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatiles(), fdRopeInit(), fdRopePlace(), fdScriptGetFlag(), fdScriptSetFlag(), MainRoutineStateWork, scFieldSetTickEvent(), scTaopoSwampCycleDripVent(), scTaopoSwampCycleLavaRocksVents(), scTaopoSwampCycleSpotVent(), scTaopoSwampCycleVentsRoomVents(), scTaopoSwampDarkenRoom(), scTaopoSwampDripAtRandom(), scTaopoSwampDripFromCeiling(), scTaopoSwampDripInIcePillarRoom(), scTaopoSwampDripInRopeRoom(), scTaopoSwampFocusMapMiddle(), scTaopoSwampResetMud(), scVentsStart(), Sint32, sySetEvent(), TaopoSwampIcePillarVents, TaopoSwampLavaRocksVents, TaopoSwampRopeVents, TaopoSwampVentsPillars, TaopoSwampVentsVents and Value3().
Definition at line 1639 of file taopo_swamp.c.
scPrepareMap
Sint32 scPrepareMap(void)
References Sint32.
Definition at line 1932 of file taopo_swamp.c.
scVentPuff
void scVentPuff(Sint32 *pos, Sint32 base)
A puff of dust from a vent at position, as its gust blows.
References fdActorSetBlendMode(), scActorStartScripted(), scTaopoSwampCreateActor(), scVentBounce(), Sint32, syCos() and syRandom().
Referenced by scVentUpdate().
Definition at line 2173 of file taopo_swamp.c.
Variables in detail
TaopoSwampSteamPuffs
extern Sint32 TaopoSwampSteamPuffs
Sint32 TaopoSwampSteamPuffs
The cooled pool's countdowns: the steam puffs still to rise, one a tick
(scTaopoSwampPuffSteam); the ticks the passage takes to dry, eight to a row
(scTaopoSwampOpenPassage); and the pool's flickers (scTaopoSwampFlickerPool).
References Sint32.
Referenced by scTaopoSwampPuffSteam().
Definition at lines 367 and 2810 of file taopo_swamp.c.
TaopoSwampPassageTicks
extern Sint32 TaopoSwampPassageTicks
Sint32 TaopoSwampPassageTicks
References Sint32.
Referenced by scTaopoSwampOpenPassage().
Definition at lines 368 and 2811 of file taopo_swamp.c.
TaopoSwampPoolTicks
extern Sint32 TaopoSwampPoolTicks
Sint32 TaopoSwampPoolTicks
References Sint32.
Referenced by scTaopoSwampFlickerPool().
Definition at lines 369 and 2812 of file taopo_swamp.c.
TaopoSwampSparkleTick
extern Sint32 TaopoSwampSparkleTick
Sint32 TaopoSwampSparkleTick
The Star Dust's sparkle, in ticks from 0 to 59.
References Sint32.
Referenced by scTaopoSwampSparkleStarDust().
Definition at lines 370 and 2911 of file taopo_swamp.c.
TaopoSwampPuffSteamScript
extern Uint32 TaopoSwampPuffSteamScript[]
Uint32 TaopoSwampPuffSteamScript[]
Referenced by scTaopoSwampPuffSteam().
Definition at lines 371 and 2246 of file taopo_swamp.c.
TaopoSwampDripFromCeilingScript
extern Sint32 TaopoSwampDripFromCeilingScript[]
Sint32 TaopoSwampDripFromCeilingScript[]
References scTaopoSwampLandDrip() and Sint32.
Referenced by scTaopoSwampDripFromCeiling().
Definition at lines 373 and 2268 of file taopo_swamp.c.
TaopoSwampDripAtRandomScript
extern Sint32 TaopoSwampDripAtRandomScript[]
Sint32 TaopoSwampDripAtRandomScript[]
References scTaopoSwampLandDrop() and Sint32.
Referenced by scTaopoSwampDripAtRandom().
Definition at lines 374 and 2263 of file taopo_swamp.c.
TaopoSwampDropFallScript
extern Sint32 TaopoSwampDropFallScript[]
Sint32 TaopoSwampDropFallScript[]
References scTaopoSwampIsDropFalling() and Sint32.
Definition at lines 375 and 2273 of file taopo_swamp.c.
TaopoSwampDropRingFades
extern Uint32 TaopoSwampDropRingFades[]
Uint32 TaopoSwampDropRingFades[]
Referenced by scTaopoSwampLandDrip() and scTaopoSwampLandDrop().
Definition at lines 376 and 2258 of file taopo_swamp.c.
MsgIThoughtI
extern Uint8 MsgIThoughtI
Referenced by scTaopoSwampShowSparkleMessage().
Definition at line 377 of file taopo_swamp.c.
TaopoSwampPlacements
extern ACTOR_PLACE TaopoSwampPlacements[]
ACTOR_PLACE TaopoSwampPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 448 and 2480 of file taopo_swamp.c.
TaopoSwampMudActorPlacements
extern ACTOR_PLACE TaopoSwampMudActorPlacements[]
ACTOR_PLACE TaopoSwampMudActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 449 and 2484 of file taopo_swamp.c.
TaopoSwampFlowerActorPlacements
extern ACTOR_PLACE TaopoSwampFlowerActorPlacements[]
ACTOR_PLACE TaopoSwampFlowerActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 450 and 2502 of file taopo_swamp.c.
TaopoSwampVentsActorPlacements
extern ACTOR_PLACE TaopoSwampVentsActorPlacements[]
ACTOR_PLACE TaopoSwampVentsActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 451 and 2508 of file taopo_swamp.c.
TaopoSwampIcePillarActorPlacements
extern ACTOR_PLACE TaopoSwampIcePillarActorPlacements[]
ACTOR_PLACE TaopoSwampIcePillarActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 452 and 2518 of file taopo_swamp.c.
TaopoSwampRopeActorPlacements
extern ACTOR_PLACE TaopoSwampRopeActorPlacements[]
ACTOR_PLACE TaopoSwampRopeActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 453 and 2526 of file taopo_swamp.c.
TaopoSwampLavaStreamActorPlacements
extern ACTOR_PLACE TaopoSwampLavaStreamActorPlacements[]
ACTOR_PLACE TaopoSwampLavaStreamActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 454 and 2536 of file taopo_swamp.c.
TaopoSwampLavaRocksActorPlacements
extern ACTOR_PLACE TaopoSwampLavaRocksActorPlacements[]
ACTOR_PLACE TaopoSwampLavaRocksActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 455 and 2570 of file taopo_swamp.c.
TaopoSwampStarDustActorPlacements
extern ACTOR_PLACE TaopoSwampStarDustActorPlacements[]
ACTOR_PLACE TaopoSwampStarDustActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 456 and 2578 of file taopo_swamp.c.
TaopoSwampSplashFades
extern Uint32 TaopoSwampSplashFades[]
Uint32 TaopoSwampSplashFades[]
Referenced by scTaopoSwampSinkInMud() and scTaopoSwampSinkStump().
Definition at lines 502 and 2318 of file taopo_swamp.c.
TaopoSwampVentsGustVents
extern Uint8 TaopoSwampVentsGustVents[]
Uint8 TaopoSwampVentsGustVents[]
The vent whose gust each of the vents room's gust cues is, from
CUE_FIRST_GUST on, as places in TaopoSwampVentsVents.
Referenced by scTaopoSwampStepIntoGust().
Definition at lines 708 and 2222 of file taopo_swamp.c.
TaopoSwampIcePillarGustVents
extern Uint8 TaopoSwampIcePillarGustVents[]
Uint8 TaopoSwampIcePillarGustVents[]
The same for the ice pillar room, as places in TaopoSwampIcePillarVents.
Referenced by scTaopoSwampStepIntoGust().
Definition at lines 709 and 2235 of file taopo_swamp.c.
TaopoSwampCues
extern CUE TaopoSwampCues[]
CUE TaopoSwampCues[]
Referenced by scGetCues().
Definition at lines 1283 and 2586 of file taopo_swamp.c.
TaopoSwampEntranceCues
extern CUE TaopoSwampEntranceCues[]
CUE TaopoSwampEntranceCues[]
Referenced by scGetCues().
Definition at lines 1284 and 2590 of file taopo_swamp.c.
TaopoSwampMudCues
extern CUE TaopoSwampMudCues[]
CUE TaopoSwampMudCues[]
References scTaopoSwampBlowAwayBush(), scTaopoSwampGrowVine(), scTaopoSwampRiseOnBubble(), scTaopoSwampSinkInMud(), scTaopoSwampSinkStump() and scTaopoSwampStepOnFirmGround().
Referenced by scGetCues().
Definition at lines 1285 and 2597 of file taopo_swamp.c.
TaopoSwampTearStonesCues
extern CUE TaopoSwampTearStonesCues[]
CUE TaopoSwampTearStonesCues[]
References scTaopoSwampScoopFirstTearStone() and scTaopoSwampScoopSecondTearStone().
Referenced by scGetCues().
Definition at lines 1286 and 2636 of file taopo_swamp.c.
TaopoSwampFlowerCues
extern CUE TaopoSwampFlowerCues[]
CUE TaopoSwampFlowerCues[]
References scTaopoSwampFightFlower(), scTaopoSwampScatterWeeds(), scTaopoSwampStartMadPlantBattle() and scTaopoSwampUncoverBrambleSeed().
Referenced by scGetCues().
Definition at lines 1287 and 2656 of file taopo_swamp.c.
TaopoSwampVentsCues
extern CUE TaopoSwampVentsCues[]
CUE TaopoSwampVentsCues[]
References scTaopoSwampBlowFlowerOffLedge(), scTaopoSwampDropToLowerFloor(), scTaopoSwampPushPillarOverVent() and scTaopoSwampStepIntoGust().
Referenced by scGetCues().
Definition at lines 1288 and 2676 of file taopo_swamp.c.
TaopoSwampPoolCues
extern CUE TaopoSwampPoolCues[]
CUE TaopoSwampPoolCues[]
Referenced by scGetCues().
Definition at lines 1289 and 2732 of file taopo_swamp.c.
TaopoSwampIcePillarCues
extern CUE TaopoSwampIcePillarCues[]
CUE TaopoSwampIcePillarCues[]
References scTaopoSwampDouseVentSpot(), scTaopoSwampDropPillarIntoGap(), scTaopoSwampDropToLowerFloor(), scTaopoSwampFreezeVentSpot() and scTaopoSwampStepIntoGust().
Referenced by scGetCues().
Definition at lines 1290 and 2741 of file taopo_swamp.c.
TaopoSwampRopeCues
extern CUE TaopoSwampRopeCues[]
CUE TaopoSwampRopeCues[]
References scTaopoSwampFillDripSpot(), scTaopoSwampFreezeDripSpot() and scTaopoSwampStepIntoGust().
Referenced by scGetCues().
Definition at lines 1291 and 2780 of file taopo_swamp.c.
TaopoSwampLavaStreamCues
extern CUE TaopoSwampLavaStreamCues[]
CUE TaopoSwampLavaStreamCues[]
References scTaopoSwampCoolLavaRock(), scTaopoSwampCoolPillarRock(), scTaopoSwampPushLavaRockIn(), scTaopoSwampPushPillarRockIn() and scTaopoSwampTremorPillar().
Referenced by scGetCues().
Definition at lines 1292 and 2814 of file taopo_swamp.c.
TaopoSwampLavaRocksCues
extern CUE TaopoSwampLavaRocksCues[]
CUE TaopoSwampLavaRocksCues[]
References scTaopoSwampCoolChestRock(), scTaopoSwampCoolExitRock(), scTaopoSwampJumpForward(), scTaopoSwampPushChestRockIn(), scTaopoSwampPushExitRockIn() and scTaopoSwampStepIntoGust().
Referenced by scGetCues().
Definition at lines 1293 and 2848 of file taopo_swamp.c.
TaopoSwampStarDustCues
extern CUE TaopoSwampStarDustCues[]
CUE TaopoSwampStarDustCues[]
References scTaopoSwampCoolDarkRock(), scTaopoSwampCoolLastRock(), scTaopoSwampScoopStarDust() and scTaopoSwampShowSparkleMessage().
Referenced by scGetCues().
Definition at lines 1294 and 2881 of file taopo_swamp.c.
TaopoSwampVentsVents
extern Uint16 TaopoSwampVentsVents[]
Uint16 TaopoSwampVentsVents[]
Each room's vents for scVentsStart: a vent's x and z in pixels and the speed of its gust, ended
by 0.
Referenced by scInit().
Definition at lines 1617 and 2280 of file taopo_swamp.c.
TaopoSwampVentsPillars
extern Uint16 TaopoSwampVentsPillars[]
Uint16 TaopoSwampVentsPillars[]
The actors the vents room's puffs land on, its two pillars, ended by 0.
Referenced by scInit().
Definition at lines 1618 and 2295 of file taopo_swamp.c.
TaopoSwampIcePillarVents
extern Uint16 TaopoSwampIcePillarVents[]
Uint16 TaopoSwampIcePillarVents[]
The ice pillar room's vents, as TaopoSwampVentsVents.
Referenced by scInit().
Definition at lines 1619 and 2298 of file taopo_swamp.c.
TaopoSwampRopeVents
extern Uint16 TaopoSwampRopeVents[]
Uint16 TaopoSwampRopeVents[]
The rope room's vents, as TaopoSwampVentsVents.
Referenced by scInit().
Definition at lines 1620 and 2305 of file taopo_swamp.c.
TaopoSwampLavaRocksVents
extern Uint16 TaopoSwampLavaRocksVents[]
Uint16 TaopoSwampLavaRocksVents[]
The lava rocks' room's vents, as TaopoSwampVentsVents.
Referenced by scInit().
Definition at lines 1621 and 2312 of file taopo_swamp.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 2327 of file taopo_swamp.c.