src/scene/tundaria_tower.c
Tundaria Tower, the frozen tower that holds the Center Prong, in seven maps that share this overlay (SceneIdTundariaTowerEntrance to SceneIdTundariaTowerBurstBrooch). More…
#include "item_ids.h"#include "macros.h"#include "edition.h"#include "field/actor_script.h"#include "field/call.h"#include "field/script_inline.h"#include "field/field_engine.h"#include "game/game.h"#include "scene/falling_rocks.h"#include "scene/scene.h"#include "text/msg_ids.h"#include "shared/actor_set_sprite_priority.c"#include "../field/field_effect_move.c"#include "shared/field_effect_spawn.c"#include "scene/tundaria_tower.h"#include "scene/script_check_spheres_overlap.h"#include "shared/actor_wait_until_landed.c"#include "shared/map_metatile_get.c"#include "shared/map_metatile_set.c"#include "../field/field_effect_advance_motion.c"#include "shared/actor_steer_by_pad.c"#include "shared/leader_stop_if_pending.c"#include "shared/leader_slide_on_ice.c"#include "shared/slide_on_ice_from_edge.c"#include "shared/leader_slide_on_ice_ahead.c"#include "shared/crumbling_pillar.c"#include "shared/field_effect_advance_motion_priority.c"#include "shared/actor_set_metatile_shape.c"#include "shared/leader_set_metatile_shape.c"#include "shared/particle_update_falling.c"#include "shared/rock_spawn.c"#include "shared/field_effect_duration_scripts.c"#include "shared/slide_on_ice_angles.c"#include "shared/dust_scatter_script.c"#include "shared/dust_burst_script.c"#include "shared/scene_entrances_default.c"
Macros
| Name | Description | |
|---|---|---|
#define | ACTOR_FROZEN_CENTER_PRONG ACTOR_FIRST_PLACED | The Center Prong frozen in the crystal (SceneIdTundariaTowerCenterProng), an item icon (ITEM_CENTER_PRONG) until the crystal breaks. |
#define | ACTOR_FALLEN_CENTER_PRONG (FIELD_TREASURE_ACTOR + 4) | The Center Prong where it falls when the crystal breaks, glinting (scTundariaTowerSparkleCenterProng). |
#define | ACTOR_REFLUX ACTOR_FIRST_PLACED | Reflux, the Mars Djinni (SceneIdTundariaTowerReflux). |
#define | ACTOR_SECOND_LEDGE_PILLAR (ACTOR_FIRST_PLACED + 4) | The two stone pillars on the ledge in the room of pillars (SceneIdTundariaTowerPillars), which Move pulls down and a push sets against the ledge as steps; the second is first in the table. |
#define | ACTOR_FIRST_LEDGE_PILLAR (ACTOR_FIRST_PLACED + 5) | |
#define | ACTOR_FIRST_SLIDING_PILLAR (ACTOR_FIRST_PLACED + 3) | |
#define | ACTOR_SECOND_SLIDING_PILLAR (ACTOR_FIRST_PLACED + 6) | |
#define | ACTOR_FIRST_ICE_COLUMN ACTOR_FIRST_PLACED | |
#define | ACTOR_BROOCH_ROOM_PILLAR ACTOR_FIRST_PLACED | The stone pillar in the Burst Brooch's room. |
#define | EFFECT_SET_MODE fdActorSelectAnimation | |
#define | EFFECT_SET_SCRIPT scTundariaTowerStartEffectScript | |
#define | FLAG_LEFT_WATER_PARCHED 0x942 | Parch dried the pool left of the middle way. |
#define | FLAG_RIGHT_WATER_PARCHED 0x943 | Parch dried the pool right of the middle way. |
#define | FLAG_CRYSTAL_BROKEN 0x944 | Burst broke the crystal round the Center Prong. |
#define | FLAG_SECOND_LEDGE_PILLAR_SET 0x946 | The second ledge pillar dropped beside the first: the steps are made. |
#define | FLAG_FIRST_LEDGE_PILLAR_SET 0x947 | A ledge pillar dropped to the ledge's foot. |
#define | FLAG_BROWN_WALL_BURST 0x948 | Burst opened the brown wall outside, in the Burst Brooch's room. |
#define | FLAG_MIRROR_WALL_BURST 0x94b | Burst broke the icy wall at the end of the left door's way, in the room whose ice floor reflects Felix. |
#define | FLAG_REFLUX_APPEARED FLAG_SCENE_TEMP(0x00) | |
#define | FLAG_FIGHTING_REFLUX FLAG_SCENE_TEMP(0x01) | |
#define | FLAG_ICE_COLUMN_POUNDED FLAG_SCENE_TEMP(0x00) | The first of four: Pound flattened ice column n. |
#define | FLAG_HIDDEN_WAY_REVEALED FLAG_SCENE_TEMP(0x12) | Reveal shows the hidden way through the icy wall at the dead end beyond the room of pillars. |
#define | ICE_COLUMN_HEIGHT_STEPS 4 | How far a standing ice column's top rises over the ground under it, in height steps of 8 pixels. |
#define | START_METATILE_ROW_MASK 0xff | A pillar's starting metatile, kept in its startMetatile while it slides: its column over its row's byte. |
Enumerations
| Name | Description | |
|---|---|---|
enum | TUNDARIA_TOWER_WAY { CENTER_PRONG_HALL_NORTH_DOORWAY, CENTER_PRONG_LEFT_POOL_DOOR … } | The ways between two parts of one map: each leads to its partner's entrance and back. |
enum | TUNDARIA_TOWER_METATILE_BEHAVIOR { METATILE_BEHAVIOR_TUNDARIA_TOWER_PAST_HIDDEN_WAY, METATILE_B … } | The tower's own metatile behaviors, the metatiles its step and Psynergy cues name; a metatile's attributes hold its behavior in their high byte (scMapMetatileSetAttributes). |
Functions
| Name | Description | |
|---|---|---|
void | fdLeaderSlideOnIce (void) | The leader slides metatile by metatile over ice until something stops them: a wall, ground more than 8 pixels up, a solid actor, or the end of the ice. |
void | fdActorSetMetatileShape (Sint32 level, Sint32 layer, Sint32 owner) | Gives the metatile of layer under an actor the shape of the ground there, level steps of 8 pixels (METATILE_HEIGHT_STEPS) higher, or lower when negative, as a crumbling pillar sinks 4. |
void | scTundariaTowerStartEffectScript (struct FIELD_EFFECT *effect, const Sint32 *script) | fdActorStartScript, through the stub this overlay's import table names for it. |
void | scTundariaTowerAdvanceIceChip (FIELD_OBJECT *object) | Each tick of a chip of ice: it moves and scales by its rates and falls. |
void | scTundariaTowerScatterIceChips (VECTOR3 *pos, Sint32 count, FIXED scale) | Throws chips of ice (SPRITE_BLUE_CRYSTAL) off a point, each turned at random, to fall under scTundariaTowerAdvanceIceChip. |
void | scParticleUpdateFalling (void) | Each tick, the falling rocks in flight: each falls, damped and pulled down, for FALLING_ROCK_TICKS ticks, keeping all but a sixty-fourth of its speed each tick, and shows the five pictures of falling_rock.png in turn, four ticks apiece, shrinking as it goes. |
void | scTundariaTowerStartFallingRocks (void) | The falling rocks' setup: loads their picture, sets up ROCK_COUNT small sprites, marks each rock idle and starts the event that spawns them. |
void | scTundariaTowerEndFallingRocks (void) | Stops the falling rocks and frees their pictures and state. |
void | scTundariaTowerUpdateBrownWallMetatile (void) | Each tick in the Burst Brooch's room, the metatile before the brown wall answers Burst only while Felix stands on the ground below it, not on the ladders above. |
void | scTundariaTowerSparkleCenterProng (ACTOR *actor) | The fallen Center Prong's update: a sparkle near it every eighth tick. |
void | scTundariaTowerFightReflux (void) | Talking to Reflux, once he has hopped down before the party, starts his battle. |
void | scTundariaTowerSetColumnMetatile (ACTOR *actor) | Makes the ground under an ice column match it, by its Pound flag (ACTOR.flag): a standing column blocks the way and Felix can jump onto its top, ICE_COLUMN_HEIGHT_STEPS up; one pounded flat is walked over and drawn beneath him. |
void | scTundariaTowerSetUpIceColumns (Uint16 *table) | Sets each listed ice column, by its row of (actor, animation, flag), standing or pounded flat as its flag says (scTundariaTowerSetColumnMetatile). |
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 | scTundariaTowerParchLeftWater (void) | Parch on the pool left of the first hall's middle way dries it, uncovering a green door in the wall behind it. |
void | scTundariaTowerParchRightWater (void) | Parch on the pool right of the first hall's middle way dries it, uncovering a door in the wall behind it. |
void | scTundariaTowerOpenDoor (void) | Walking north into the door behind one of the first hall's dried pools opens it, and Felix walks through: the left door leads to the way that ends at an icy wall, the right one to the black ice fields. |
void | scTundariaTowerBurstCrystal (Sint32 stage) | Burst on the ice crystal in the Center Prong's chamber, metatile (21, 23): a chip of ice flies at each small blast, and at the great blast it cracks open in a shower of them. |
void | scTundariaTowerFreeCenterProng (void) | As Burst ends, the crystal is broken and the Center Prong drops from it to the floor, where it glints until Felix picks it up. |
void | scTundariaTowerExamineCrystal (void) | Searching the ice crystal in the Center Prong's chamber, metatile (21, 23), says "There's something inside the cracked ice...". |
void | scTundariaTowerSlideOnIce (void) | Stepping onto black ice sets Felix sliding straight on until something stops him. |
void | scTundariaTowerRefluxAppears (void) | Sliding onto metatile (21, 33) in Reflux's sliding puzzle: the screen flashes white with a splash and a shake, and Reflux hops down before the party and waits to be talked to. |
void | scTundariaTowerShrinkIceColumn (Sint32 stage, Sint32 tick) | Each tick of Pound on an ice column: for the eight ticks the fist falls, a chip of ice flies off, lower each time, as the column is squashed; once the fist lands it is flat in the floor, to be walked over. |
void | scTundariaTowerPoundIceColumn (Sint32 stage, Sint32 tick) | Pound on one of the ice columns, on the hall's left way or in the room of pillars, flattens it into the floor. |
void | scTundariaTowerJumpDownSlide (void) | Stepping onto the top of the black ice slide on the lower way from the hall of three ways, metatile (19, 57): Felix leans back, then runs and goes down the slide to Reflux's sliding puzzle. |
void | scTundariaTowerStartPillarMove (void) | As Felix starts to push or Move a stone pillar in the room of pillars or the Burst Brooch's room, it is taken off the map grid; in the room of pillars the metatile it started from is kept, so that Move can send it on sliding the same way. |
void | scTundariaTowerSlidePillar (Sint32 casterId, Sint32 targetId) | Move on one of the two stone pillars on the ice in the room of pillars sends it sliding on, a metatile at a time, until the ice ends or a wall stops it, the camera following. |
void | scTundariaTowerSetDownPillar (void) | A pillar pushed or Moved off the edge of a ledge drops to the floor below with a thump. |
void | scTundariaTowerEndRevealHiddenWay (void) | When Reveal wears off, the way through the icy wall at the dead end beyond the room of pillars closes again; Felix, if he stands in it, is put out on the side he faces. |
void | scTundariaTowerRevealHiddenWay (void) | Reveal at the icy wall at the dead end beyond the room of pillars shows a way through it, metatiles (53, 37) to (55, 39), and marks the metatile just past it on the side away from Felix. |
void | scTundariaTowerLeaveHiddenWay (void) | Stepping out on the far side of the hidden way ends Reveal, and the way closes behind Felix (scTundariaTowerEndRevealHiddenWay). |
void | scTundariaTowerBurstMirrorWall (Sint32 stage) | Burst on the icy wall at the end of the left door's way, metatile (7, 35), in the room whose ice floor reflects Felix: chips of ice fly at the blasts and it breaks open onto the rooms of chests beyond as they die down. |
void | scTundariaTowerEndLastingPsynergy (void) | As Felix starts to cast Move on a sliding pillar or Burst on the icy wall, a lasting Psynergy still on, such as Reveal, ends first. |
void | scTundariaTowerBurstBrownWall (Sint32 stage, Sint32 tick) | Burst on the brown part of the outer wall in the Burst Brooch's room, from the ground below it: rocks fall at the blasts, two at each small one and thirty at the great one, and the wall breaks open into a shortcut as they die down. |
const CUE * | scGetCues (void) | The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's. |
void | scTundariaTowerReflectLeader (ACTOR *actor) | Felix's reflection in the ice floor of two rooms, the one before the icy wall Burst breaks and the one before the icy wall Reveal opens, mirrored across the floor's edge. |
void | fdLeaderStopIfPending (void) | Stops the leader while an action waits. |
void | fdActorSetMetatileOpen (Sint32 id, Uint32 kind, Sint32 flag, Sint32 layer) | A stake as its flag leaves it: driven down by Pound, its metatile is open ground and it is drawn underfoot, sunk to its top; still standing, its metatile is a wall. |
void | scDustScatter (Sint32 spread) | Eight clouds of dust rise in a row across the leader, 2 pixels apart, and fly out from him in eight directions when spread is set. |
void | fdLeaderSetMetatileShapeAt (Sint32 level, Sint32 layer) | Sets the shape of the metatile under the leader level steps above its ground. |
void | scDustBurst (void) | Throws a ring of dust clouds out from the leader as something lands. |
void | scFieldEffectSpawn (Sint32 x, Sint32 y, Sint32 z, Sint32 velocityX, Sint32 velocityY, Sint32 velocityZ, Uint32 flags, const EFFECT_OPTIONS *options) | Spawns a field effect at x, y, z moving at the velocity given, its type, scale, palette, priority, script, rotation, spin and update chosen by the EFFECT_USE_ flags from the options. |
void | scTundariaTowerLandFromSlide (void) | At the foot of a black ice slide, Felix drops in from above and lands in a puff of dust with a thump that shakes the screen. |
Sint32 | scInit (void) | Opens the room through the window transition, and in the debug room draws the cat 1.7 times its size. |
Sint32 | scPrepareMap (void) | Once Briggs is caught the pool has dried up: its colours take the dry ground's. |
void | fdActorSteerByPad (ACTOR *actor) | While the leader slides on ice, turns him toward the held direction, at most a sixteenth of a turn a tick; with none held, or a menu open, he looks around. |
void | scLeaderSetSlideStopped (Sint32 stopped) | Stops the leader's slide on the ice where it is (nonzero), or lets it run. |
Variables
| Name | Description | |
|---|---|---|
extern Sint16 | TundariaTowerPillarsBlocks [] | The blocks Move pushes, ended by -1: the room of pillars' four, and the one in the Burst Brooch's room. |
extern Sint16 | TundariaTowerBurstBroochPillar [] | |
extern CUE | TundariaTowerEntranceCues [] | |
extern CUE | TundariaTowerCenterProngCues [] | |
extern CUE | TundariaTowerBlackIceCues [] | |
extern CUE | TundariaTowerRefluxCues [] | |
extern CUE | TundariaTowerIceColumnsCues [] | |
extern CUE | TundariaTowerPillarsCues [] | |
extern CUE | TundariaTowerBurstBroochCues [] | |
extern SCENE_REGION | TundariaTowerPillarsExitRegions [] | |
extern SCENE_REGION | TundariaTowerBurstBroochExitRegions [] | |
extern ACTOR_PLACE | TundariaTowerCenterProngActorPlacements [] | |
extern ACTOR_PLACE | TundariaTowerBlackIceActorPlacements [] | |
extern ACTOR_PLACE | TundariaTowerRefluxActorPlacements [] | |
extern ACTOR_PLACE | TundariaTowerIceColumnsActorPlacements [] | The ice columns wear the sheet of stakes and pillars (SPRITE_STAKE), whose last animation is the ice pillar; scTundariaTowerSetUpIceColumns picks it. |
extern ACTOR_PLACE | TundariaTowerPillarsActorPlacements [] | |
extern ACTOR_PLACE | TundariaTowerBurstBroochActorPlacements [] | |
extern Sint32 | TundariaTowerRefluxSpinScript [] | Reflux turning round a sixteenth of a turn each tick as he comes down. |
volatile Sint16 | SlideOnIceStopped | |
extern Sint16 | SlideOnIceSteerAngles [] | The heading fdActorSteerByPad turns toward, diagonals included; a second row of sixteen keeps only the four straight headings. |
extern Sint16 | SlideOnIceAnglesByKey [] | The heading a slide sets off in: a diagonal goes the way of its left or right key. |
extern Uint32 | DustScatterScript [] | It lasts 33 ticks, then stops and is gone. |
extern Uint32 | DustBurstScript [] | It lasts 44 ticks, then stops and is gone. |
extern Sint16 | TundariaTowerIceColumnsColumns [] | The ice columns of the room of ice columns: each one's actor, its standing column's animation (7, the ice pillar of stake.tsv) and its Pound flag, ending -1. |
extern Sint16 | TundariaTowerPillarsColumns [] | The ice columns of the room of pillars, as TundariaTowerIceColumnsColumns. |
const Sint32 * | FieldEffectDurationScripts [] | The field effects' three scripts by how long an effect lasts: short, medium and long. |
Uint32 | SceneExits [] | The room has no exits of its own. |
Description
Tundaria Tower, the frozen tower that holds the Center Prong, in seven maps
that share this overlay (SceneIdTundariaTowerEntrance to
SceneIdTundariaTowerBurstBrooch).
In the first hall the middle way leads to an ice crystal with something frozen inside, and Parch dries the pools left and right of it, uncovering a door in each. The right door leads to fields of black ice to slide across and up to a hall with three ways: Pound flattens the ice columns on the left way for its chests, a black ice slide on the lower way drops to the sliding puzzle where the Mars Djinni Reflux appears, and the right way leads to a room where Pound and Move set two pillars against a ledge to climb. Beyond it Reveal opens a way through an icy wall, and outside Felix finds the Burst Brooch; Burst on the brown part of the outer wall brings its rocks down for a shortcut. With Burst the crystal breaks to free the Center Prong, and the icy wall at the end of the left door's way breaks to reach four more chests.
Macros in detail
ACTOR_FROZEN_CENTER_PRONG
#define ACTOR_FROZEN_CENTER_PRONG ACTOR_FIRST_PLACED
The Center Prong frozen in the crystal (SceneIdTundariaTowerCenterProng), an
item icon (ITEM_CENTER_PRONG) until the crystal breaks.
Referenced by scInit() and scTundariaTowerFreeCenterProng().
Definition at line 40 of file tundaria_tower.c.
ACTOR_FALLEN_CENTER_PRONG
#define ACTOR_FALLEN_CENTER_PRONG (FIELD_TREASURE_ACTOR + 4)
The Center Prong where it falls when the crystal breaks, glinting
(scTundariaTowerSparkleCenterProng).
Referenced by scInit() and scTundariaTowerFreeCenterProng().
Definition at line 43 of file tundaria_tower.c.
ACTOR_REFLUX
#define ACTOR_REFLUX ACTOR_FIRST_PLACED
Reflux, the Mars Djinni (SceneIdTundariaTowerReflux).
Referenced by scInit(), scTundariaTowerFightReflux(), scTundariaTowerRefluxAppears() and TundariaTowerRefluxCues.
Definition at line 45 of file tundaria_tower.c.
ACTOR_SECOND_LEDGE_PILLAR
#define ACTOR_SECOND_LEDGE_PILLAR (ACTOR_FIRST_PLACED + 4)
The two stone pillars on the ledge in the room of pillars
(SceneIdTundariaTowerPillars), which Move pulls down and a push sets against
the ledge as steps; the second is first in the table. The two that slide over
the ice there, and the ice columns before them.
Referenced by AirsRockCliffCues, AirsRockCliffPillars, scInit(), TundariaTowerPillarsBlocks and TundariaTowerPillarsCues.
Definition at line 50 of file tundaria_tower.c.
ACTOR_FIRST_LEDGE_PILLAR
#define ACTOR_FIRST_LEDGE_PILLAR (ACTOR_FIRST_PLACED + 5)
Referenced by AirsRockCliffCues, AirsRockCliffPillars, scInit(), TundariaTowerPillarsBlocks and TundariaTowerPillarsCues.
Definition at line 51 of file tundaria_tower.c.
ACTOR_FIRST_SLIDING_PILLAR
#define ACTOR_FIRST_SLIDING_PILLAR (ACTOR_FIRST_PLACED + 3)
Referenced by TundariaTowerPillarsBlocks and TundariaTowerPillarsCues.
Definition at line 52 of file tundaria_tower.c.
ACTOR_SECOND_SLIDING_PILLAR
#define ACTOR_SECOND_SLIDING_PILLAR (ACTOR_FIRST_PLACED + 6)
Referenced by TundariaTowerPillarsBlocks and TundariaTowerPillarsCues.
Definition at line 53 of file tundaria_tower.c.
ACTOR_FIRST_ICE_COLUMN
#define ACTOR_FIRST_ICE_COLUMN ACTOR_FIRST_PLACED
Referenced by TundariaTowerIceColumnsColumns, TundariaTowerIceColumnsCues, TundariaTowerPillarsColumns and TundariaTowerPillarsCues.
Definition at line 54 of file tundaria_tower.c.
ACTOR_BROOCH_ROOM_PILLAR
#define ACTOR_BROOCH_ROOM_PILLAR ACTOR_FIRST_PLACED
The stone pillar in the Burst Brooch's room.
Referenced by TundariaTowerBurstBroochCues and TundariaTowerBurstBroochPillar.
Definition at line 56 of file tundaria_tower.c.
EFFECT_SET_MODE
#define EFFECT_SET_MODE fdActorSelectAnimation
Referenced by EFFECT_SPAWN.
Definition at line 122 of file tundaria_tower.c.
EFFECT_SET_SCRIPT
#define EFFECT_SET_SCRIPT scTundariaTowerStartEffectScript
Referenced by EFFECT_SPAWN.
Definition at line 123 of file tundaria_tower.c.
FLAG_LEFT_WATER_PARCHED
#define FLAG_LEFT_WATER_PARCHED 0x942
Parch dried the pool left of the middle way.
Referenced by scInit(), scTundariaTowerParchLeftWater() and TundariaTowerCenterProngCues.
Definition at line 132 of file tundaria_tower.c.
FLAG_RIGHT_WATER_PARCHED
#define FLAG_RIGHT_WATER_PARCHED 0x943
Parch dried the pool right of the middle way.
Referenced by scInit(), scTundariaTowerParchRightWater() and TundariaTowerCenterProngCues.
Definition at line 134 of file tundaria_tower.c.
FLAG_CRYSTAL_BROKEN
#define FLAG_CRYSTAL_BROKEN 0x944
Burst broke the crystal round the Center Prong.
Referenced by scInit(), scTundariaTowerFreeCenterProng() and TundariaTowerCenterProngCues.
Definition at line 136 of file tundaria_tower.c.
FLAG_SECOND_LEDGE_PILLAR_SET
#define FLAG_SECOND_LEDGE_PILLAR_SET 0x946
The second ledge pillar dropped beside the first: the steps are made.
Referenced by scInit(), scTundariaTowerSetDownPillar() and TundariaTowerPillarsCues.
Definition at line 138 of file tundaria_tower.c.
FLAG_FIRST_LEDGE_PILLAR_SET
#define FLAG_FIRST_LEDGE_PILLAR_SET 0x947
A ledge pillar dropped to the ledge's foot.
Referenced by scInit(), scTundariaTowerSetDownPillar() and TundariaTowerPillarsCues.
Definition at line 140 of file tundaria_tower.c.
FLAG_BROWN_WALL_BURST
#define FLAG_BROWN_WALL_BURST 0x948
Burst opened the brown wall outside, in the Burst Brooch's room.
Referenced by scInit(), scTundariaTowerBurstBrownWall() and TundariaTowerBurstBroochCues.
Definition at line 142 of file tundaria_tower.c.
FLAG_MIRROR_WALL_BURST
#define FLAG_MIRROR_WALL_BURST 0x94b
Burst broke the icy wall at the end of the left door's way, in the room whose ice floor reflects Felix.
Referenced by scInit(), scTundariaTowerBurstMirrorWall() and TundariaTowerPillarsCues.
Definition at line 145 of file tundaria_tower.c.
FLAG_REFLUX_APPEARED
#define FLAG_REFLUX_APPEARED FLAG_SCENE_TEMP(0x00)
Referenced by scInit(), scTundariaTowerRefluxAppears() and TundariaTowerRefluxCues.
Definition at line 146 of file tundaria_tower.c.
FLAG_FIGHTING_REFLUX
#define FLAG_FIGHTING_REFLUX FLAG_SCENE_TEMP(0x01)
Referenced by scInit() and scTundariaTowerFightReflux().
Definition at line 147 of file tundaria_tower.c.
FLAG_ICE_COLUMN_POUNDED
#define FLAG_ICE_COLUMN_POUNDED FLAG_SCENE_TEMP(0x00)
The first of four: Pound flattened ice column n.
Referenced by TundariaTowerIceColumnsColumns, TundariaTowerIceColumnsCues, TundariaTowerPillarsColumns and TundariaTowerPillarsCues.
Definition at line 149 of file tundaria_tower.c.
FLAG_HIDDEN_WAY_REVEALED
#define FLAG_HIDDEN_WAY_REVEALED FLAG_SCENE_TEMP(0x12)
Reveal shows the hidden way through the icy wall at the dead end beyond the room of pillars.
Referenced by scTundariaTowerEndRevealHiddenWay(), scTundariaTowerReflectLeader() and scTundariaTowerRevealHiddenWay().
Definition at line 152 of file tundaria_tower.c.
ICE_COLUMN_HEIGHT_STEPS
#define ICE_COLUMN_HEIGHT_STEPS 4
How far a standing ice column's top rises over the ground under it, in height steps of 8 pixels.
Referenced by scTundariaTowerSetColumnMetatile().
Definition at line 156 of file tundaria_tower.c.
START_METATILE_ROW_MASK
#define START_METATILE_ROW_MASK 0xff
A pillar's starting metatile, kept in its startMetatile while it slides: its column over its row's byte.
Referenced by scTundariaTowerSlidePillar() and scTundariaTowerStartPillarMove().
Definition at line 160 of file tundaria_tower.c.
Enumerations in detail
TUNDARIA_TOWER_WAY
enum TUNDARIA_TOWER_WAY
The ways between two parts of one map: each leads to its partner's entrance and back.
| Enumerator | Value | Description |
|---|---|---|
CENTER_PRONG_HALL_NORTH_DOORWAY | 2 | The Center Prong's first hall: its north doorway to the crystal's chamber, and the doors behind its left and right pools (scTundariaTowerOpenDoor), to the ends of the west and east rooms. |
CENTER_PRONG_LEFT_POOL_DOOR | 3 | |
CENTER_PRONG_RIGHT_POOL_DOOR | 4 | |
CENTER_PRONG_WEST_ROOM_NORTH_DOORWAY | 6 | |
CENTER_PRONG_WEST_ROOM_EAST_END | 7 | |
CENTER_PRONG_EAST_ROOM_WEST_END | 8 | |
CENTER_PRONG_EAST_ROOM_NORTH_DOORWAY | 9 | |
CENTER_PRONG_CRYSTAL_CHAMBER | 11 | |
CENTER_PRONG_CORRIDOR_MIDDLE_PASSAGE | 13 | The north corridor's two passages south, into the back of the two chest rooms, whose front halves the west and east rooms' doorways reach. |
CENTER_PRONG_CORRIDOR_EAST_PASSAGE | 14 | |
CENTER_PRONG_WEST_CHESTS_BACK | 15 | |
CENTER_PRONG_WEST_CHESTS_FRONT | 16 | |
CENTER_PRONG_EAST_CHESTS_BACK | 17 | |
CENTER_PRONG_EAST_CHESTS_FRONT | 18 | |
BLACK_ICE_HALL_WEST_FOOT | 1 | The black ice: the feet of the icy hall west and east, to the north doorways of the rooms below, whose feet lead up the three ladders of the ice floor at the bottom. |
BLACK_ICE_HALL_EAST_FOOT | 2 | |
BLACK_ICE_WEST_ROOM_DOORWAY | 3 | |
BLACK_ICE_WEST_ROOM_FOOT | 4 | |
BLACK_ICE_STAIR_ROOM_FOOT | 6 | |
BLACK_ICE_EAST_ROOM_DOORWAY | 7 | |
BLACK_ICE_EAST_ROOM_FOOT | 8 | |
BLACK_ICE_ICE_FLOOR_WEST_LADDER | 10 | |
BLACK_ICE_ICE_FLOOR_MIDDLE_LADDER | 11 | |
BLACK_ICE_ICE_FLOOR_EAST_LADDER | 12 | |
REFLUX_HALL_SOUTHWEST_FOOT | 5 | Reflux's floor: the south-west |
REFLUX_PUZZLE_ROOM_DOORWAY | 6 | foot of the hall of stairs, to the north doorway of the sliding puzzle's room, where Reflux waits. |
REFLUX_FROM_SLIDE | 7 | Where the party lands in the sliding puzzle's room from the slide. |
ICE_COLUMNS_CHEST_ROOM_FOOT | 1 | The ice columns' floor: the foot of the room of chests and ice columns, to the north room's east doorway; the great hall's west doorway, to the corridor's south one. |
ICE_COLUMNS_NORTH_ROOM_EAST_DOORWAY | 3 | |
ICE_COLUMNS_HALL_WEST_DOORWAY | 4 | |
ICE_COLUMNS_CORRIDOR_SOUTH_DOORWAY | 8 | |
PILLARS_MIRROR_ROOM_FOOT | 7 | The room of pillars' floor: the foot of the room whose ice floor reflects Felix, to the lower corridor's middle doorway; and the hole in the floor of the room by the Burst Brooch's south door, metatile (29, 7), down a black ice slide to the lower corridor's west end. |
PILLARS_CORRIDOR_DOORWAY | 8 | |
PILLARS_FROM_SLIDE | 10 | |
PILLARS_SLIDE_HOLE | 30 |
Definition at line 60 of file tundaria_tower.c.
TUNDARIA_TOWER_METATILE_BEHAVIOR
enum TUNDARIA_TOWER_METATILE_BEHAVIOR
The tower's own metatile behaviors, the metatiles its step and Psynergy cues
name; a metatile's attributes hold its behavior in their high byte
(scMapMetatileSetAttributes).
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_TUNDARIA_TOWER_PAST_HIDDEN_WAY | 31 | While Reveal shows the hidden way through the icy wall, the metatile just past it on the far side, where stepping ends Reveal (scTundariaTowerLeaveHiddenWay). |
METATILE_BEHAVIOR_TUNDARIA_TOWER_ICE | 50 | Black ice, slid across |
METATILE_BEHAVIOR_TUNDARIA_TOWER_BROWN_WALL | 50 | (scTundariaTowerSlideOnIce). In the Burst Brooch's room, the metatile where Burst opens the brown wall |
METATILE_BEHAVIOR_TUNDARIA_TOWER_REFLUX_APPEARS | 51 | (scTundariaTowerBurstBrownWall). The step on which |
METATILE_BEHAVIOR_TUNDARIA_TOWER_LEFT_DOOR | CENTER_PRONG_LEFT_POOL_DOOR | Reflux appears (scTundariaTowerRefluxAppears). The |
METATILE_BEHAVIOR_TUNDARIA_TOWER_RIGHT_DOOR | CENTER_PRONG_RIGHT_POOL_DOOR | first hall's doors behind the left and right pools, each the number of the exit it leads through (scTundariaTowerOpenDoor). |
METATILE_BEHAVIOR_TUNDARIA_TOWER_LEFT_POOL | 50 | The first hall's left |
METATILE_BEHAVIOR_TUNDARIA_TOWER_RIGHT_POOL | 51 | and right pools, which Parch dries. |
METATILE_BEHAVIOR_TUNDARIA_TOWER_CRYSTAL | 52 | The crystal holding the |
METATILE_BEHAVIOR_TUNDARIA_TOWER_ICY_WALL | 52 | Center Prong, and the icy wall Burst breaks at the end of the left door's way. |
METATILE_BEHAVIOR_TUNDARIA_TOWER_SLIDE_TOP | 11 | The top of the black ice slide down to Reflux's sliding puzzle (scTundariaTowerJumpDownSlide). |
Definition at line 165 of file tundaria_tower.c.
Functions in detail
scTundariaTowerStartEffectScript
void scTundariaTowerStartEffectScript(struct FIELD_EFFECT *effect, const Sint32 *script)
fdActorStartScript, through the stub this overlay's import table names for
it.
Referenced by scDustBurst(), scDustScatter() and scTundariaTowerRefluxAppears().
Definition at line 35 of file tundaria_tower.c.
scTundariaTowerAdvanceIceChip
void scTundariaTowerAdvanceIceChip(FIELD_OBJECT *object)
Each tick of a chip of ice: it moves and scales by its rates and falls.
Referenced by scTundariaTowerScatterIceChips().
Definition at lines 219 and 426 of file tundaria_tower.c.
scTundariaTowerScatterIceChips
void scTundariaTowerScatterIceChips(VECTOR3 *pos, Sint32 count, FIXED scale)
Throws chips of ice (SPRITE_BLUE_CRYSTAL) off a point, each turned at random,
to fall under scTundariaTowerAdvanceIceChip.
References scFieldEffectSpawn(), scTundariaTowerAdvanceIceChip(), Sint32 and syRandom().
Referenced by scTundariaTowerBurstCrystal() and scTundariaTowerBurstMirrorWall().
Definition at lines 220 and 438 of file tundaria_tower.c.
scTundariaTowerStartFallingRocks
void scTundariaTowerStartFallingRocks(void)
The falling rocks' setup: loads their picture, sets up ROCK_COUNT small
sprites, marks each rock idle and starts the event that spawns them.
References fdEffectSpriteInit(), mnVRAMLoad(), scParticleUpdateFalling(), Sint32, syDecompressTaggedLZ(), syHeapSlotAllocate(), syResourceGetTableEntry(), sySetTickEvent() and syVRAMCacheFindFreeEntry().
Referenced by scTundariaTowerBurstBrownWall().
Definition at lines 222 and 1450 of file tundaria_tower.c.
scTundariaTowerEndFallingRocks
void scTundariaTowerEndFallingRocks(void)
Stops the falling rocks and frees their pictures and state.
References scParticleUpdateFalling(), syCloseEvent(), syHeapSlotRelease() and syVRAMCacheFreeEntry().
Referenced by scTundariaTowerBurstBrownWall().
Definition at lines 223 and 1481 of file tundaria_tower.c.
scTundariaTowerUpdateBrownWallMetatile
void scTundariaTowerUpdateBrownWallMetatile(void)
Each tick in the Burst Brooch's room, the metatile before the brown wall answers Burst only while Felix stands on the ground below it, not on the ladders above.
References fdActorGetById(), MainRoutineStateWork and scMapMetatileSetAttributes().
Referenced by scInit() and scTundariaTowerBurstBrownWall().
Definition at lines 224 and 1104 of file tundaria_tower.c.
scTundariaTowerSparkleCenterProng
void scTundariaTowerSparkleCenterProng(ACTOR *actor)
The fallen Center Prong's update: a sparkle near it every eighth tick.
References scFieldEffectSpawn(), Sint32, syRandom() and TickCount.
Referenced by scInit() and scTundariaTowerFreeCenterProng().
Definition at lines 225 and 503 of file tundaria_tower.c.
scTundariaTowerFightReflux
void scTundariaTowerFightReflux(void)
Talking to Reflux, once he has hopped down before the party, starts his battle.
References fdScriptRequestDjinnBattle() and syGameFlagSet().
Referenced by TundariaTowerRefluxCues.
Definition at line 238 of file tundaria_tower.c.
scTundariaTowerSetColumnMetatile
void scTundariaTowerSetColumnMetatile(ACTOR *actor)
Makes the ground under an ice column match it, by its Pound flag
(ACTOR.flag): a standing column blocks the way and Felix can jump onto its
top, ICE_COLUMN_HEIGHT_STEPS up; one pounded flat is walked over and drawn
beneath him.
References fdMapGetTerrainHeight(), fdMapGridSetMetatileHeight(), scMapMetatileGetAttributes(), scMapMetatileSetAttributes(), scSetActorSpritePriority(), Sint32 and syGameFlagGet().
Referenced by scTundariaTowerSetUpIceColumns() and scTundariaTowerShrinkIceColumn().
Definition at line 252 of file tundaria_tower.c.
scTundariaTowerSetUpIceColumns
void scTundariaTowerSetUpIceColumns(Uint16 *table)
Sets each listed ice column, by its row of (actor, animation, flag), standing
or pounded flat as its flag says (scTundariaTowerSetColumnMetatile).
References fdActorGetById(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), scTundariaTowerSetColumnMetatile() and syGameFlagGet().
Referenced by scInit().
Definition at line 291 of file tundaria_tower.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 316 of file tundaria_tower.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
References MainRoutineStateWork, TundariaTowerBurstBroochExitRegions and TundariaTowerPillarsExitRegions.
Definition at line 324 of file tundaria_tower.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 333 of file tundaria_tower.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References MainRoutineStateWork, TundariaTowerBlackIceActorPlacements, TundariaTowerBurstBroochActorPlacements, TundariaTowerCenterProngActorPlacements, TundariaTowerIceColumnsActorPlacements, TundariaTowerPillarsActorPlacements and TundariaTowerRefluxActorPlacements.
Definition at line 345 of file tundaria_tower.c.
scTundariaTowerParchLeftWater
void scTundariaTowerParchLeftWater(void)
Parch on the pool left of the first hall's middle way dries it, uncovering a green door in the wall behind it.
References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptStart() and syGameFlagSet().
Referenced by scInit() and TundariaTowerCenterProngCues.
Definition at line 364 of file tundaria_tower.c.
scTundariaTowerParchRightWater
void scTundariaTowerParchRightWater(void)
Parch on the pool right of the first hall's middle way dries it, uncovering a door in the wall behind it.
References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptStart() and syGameFlagSet().
Referenced by scInit() and TundariaTowerCenterProngCues.
Definition at line 375 of file tundaria_tower.c.
scTundariaTowerOpenDoor
void scTundariaTowerOpenDoor(void)
Walking north into the door behind one of the first hall's dried pools opens it, and Felix walks through: the left door leads to the way that ends at an icy wall, the right one to the black ice fields.
References fdActorGetById(), fdActorWaitForMoveById(), fdActorWalkTo(), fdActorWalkToAndWait(), fdMapGridCopyMetatilesTo(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), Sint32 and syImportScriptSetExitRequest().
Referenced by TundariaTowerCenterProngCues.
Definition at line 387 of file tundaria_tower.c.
scTundariaTowerBurstCrystal
void scTundariaTowerBurstCrystal(Sint32 stage)
Burst on the ice crystal in the Center Prong's chamber, metatile (21, 23): a chip of ice flies at each small blast, and at the great blast it cracks open in a shower of them.
References fdMapGridCopyMetatileTilesIndicesRect(), scTundariaTowerScatterIceChips() and Sint32.
Referenced by TundariaTowerCenterProngCues.
Definition at line 479 of file tundaria_tower.c.
scTundariaTowerFreeCenterProng
void scTundariaTowerFreeCenterProng(void)
As Burst ends, the crystal is broken and the Center Prong drops from it to the floor, where it glints until Felix picks it up.
References fdActorGetById(), fdMapGridCopyMetatileAttributes(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), scActorWaitUntilLanded(), scTundariaTowerSparkleCenterProng() and syGameFlagSet().
Referenced by TundariaTowerCenterProngCues.
Definition at line 528 of file tundaria_tower.c.
scTundariaTowerExamineCrystal
void scTundariaTowerExamineCrystal(void)
Searching the ice crystal in the Center Prong's chamber, metatile (21, 23),
says "There's something inside the cracked ice...". Once
FLAG_TUNDARIA_TOWER_BURST_BROOCH is set, the ordinary field menu opens by
itself as the message closes (fieldMenu): the party's HP and PP at the top
right and the command icons at the bottom, Psynergy picked, waiting for the
player.
References fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), mnFieldMessageShow() and syGameFlagGet().
Referenced by TundariaTowerCenterProngCues.
Definition at line 552 of file tundaria_tower.c.
scTundariaTowerSlideOnIce
void scTundariaTowerSlideOnIce(void)
Stepping onto black ice sets Felix sliding straight on until something stops him.
References fdLeaderSlideOnIce().
Referenced by TundariaTowerBlackIceCues, TundariaTowerIceColumnsCues and TundariaTowerRefluxCues.
Definition at line 568 of file tundaria_tower.c.
scTundariaTowerRefluxAppears
void scTundariaTowerRefluxAppears(void)
Sliding onto metatile (21, 33) in Reflux's sliding puzzle: the screen flashes white with a splash and a shake, and Reflux hops down before the party and waits to be talked to.
References fdActorGetById(), fdActorSetDestination(), fdActorWaitForMoveById(), fdActorWatchAndSetScript(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scMapMetatileSetAttributes(), scTundariaTowerFadeFrom(), scTundariaTowerStartEffectScript(), syGameFlagSet(), sySoundPlay() and TundariaTowerRefluxSpinScript.
Referenced by TundariaTowerRefluxCues.
Definition at line 578 of file tundaria_tower.c.
scTundariaTowerShrinkIceColumn
void scTundariaTowerShrinkIceColumn(Sint32 stage, Sint32 tick)
Each tick of Pound on an ice column: for the eight ticks the fist falls, a chip of ice flies off, lower each time, as the column is squashed; once the fist lands it is flat in the floor, to be walked over.
References fdActorGetById(), fdMapGridCopyMetatileTilesIndicesRect(), scFieldEffectSpawn(), scTundariaTowerSetColumnMetatile(), Sint32, syGameFlagSet() and syRandom().
Referenced by scTundariaTowerPoundIceColumn().
Definition at line 620 of file tundaria_tower.c.
scTundariaTowerPoundIceColumn
void scTundariaTowerPoundIceColumn(Sint32 stage, Sint32 tick)
Pound on one of the ice columns, on the hall's left way or in the room of pillars, flattens it into the floor.
References scTundariaTowerShrinkIceColumn() and Sint32.
Referenced by TundariaTowerIceColumnsCues and TundariaTowerPillarsCues.
Definition at line 668 of file tundaria_tower.c.
scTundariaTowerJumpDownSlide
void scTundariaTowerJumpDownSlide(void)
Stepping onto the top of the black ice slide on the lower way from the hall of three ways, metatile (19, 57): Felix leans back, then runs and goes down the slide to Reflux's sliding puzzle.
References fdActorGetById(), fdActorRunRepeatedMotion(), fdActorSetAnimationById(), fdActorSetAnimationSpeedById(), fdActorSetSpriteFlags(), fdEffectSetAttached(), fdMapGridSetMetatileHeight(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork and syImportScriptSetExitRequest().
Referenced by TundariaTowerIceColumnsCues.
Definition at line 676 of file tundaria_tower.c.
scTundariaTowerStartPillarMove
void scTundariaTowerStartPillarMove(void)
As Felix starts to push or Move a stone pillar in the room of pillars or the Burst Brooch's room, it is taken off the map grid; in the room of pillars the metatile it started from is kept, so that Move can send it on sliding the same way.
References fdActorLiftTargetBlock(), MainRoutineStateWork, TundariaTowerBurstBroochPillar and TundariaTowerPillarsBlocks.
Referenced by TundariaTowerBurstBroochCues and TundariaTowerPillarsCues.
Definition at line 712 of file tundaria_tower.c.
scTundariaTowerSlidePillar
void scTundariaTowerSlidePillar(Sint32 casterId, Sint32 targetId)
Move on one of the two stone pillars on the ice in the room of pillars sends it sliding on, a metatile at a time, until the ice ends or a wall stops it, the camera following.
References fdActorPlaceMovedBlock(), fdActorSetMoveTarget(), fdActorWaitForMove(), fdCameraFollowActor(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), scMapMetatileGetAttributes(), Sint32 and sySynch().
Referenced by TundariaTowerPillarsCues.
Definition at line 736 of file tundaria_tower.c.
scTundariaTowerSetDownPillar
void scTundariaTowerSetDownPillar(void)
A pillar pushed or Moved off the edge of a ledge drops to the floor below with a thump. In the room of pillars the two pillars from the ledge, set one beside the other at its foot, make the steps up it.
References fdActorPlaceMovedBlock(), fdMapGetTerrainHeight(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork, scActorWaitUntilLanded(), syGameFlagGet(), syGameFlagSet() and sySoundPlay().
Referenced by TundariaTowerBurstBroochCues and TundariaTowerPillarsCues.
Definition at line 782 of file tundaria_tower.c.
scTundariaTowerEndRevealHiddenWay
void scTundariaTowerEndRevealHiddenWay(void)
When Reveal wears off, the way through the icy wall at the dead end beyond the room of pillars closes again; Felix, if he stands in it, is put out on the side he faces.
References fdActorGetById(), fdBlendScriptResume(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatileTilesIndicesRect(), MainRoutineStateWork, Sint32 and syGameFlagClear().
Referenced by TundariaTowerPillarsCues.
Definition at line 818 of file tundaria_tower.c.
scTundariaTowerRevealHiddenWay
void scTundariaTowerRevealHiddenWay(void)
Reveal at the icy wall at the dead end beyond the room of pillars shows a way through it, metatiles (53, 37) to (55, 39), and marks the metatile just past it on the side away from Felix.
References fdActorGetById(), fdBlendScriptSuspend(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatileTilesIndicesRect(), MainRoutineStateWork, scMapMetatileSetAttributes() and syGameFlagSet().
Referenced by TundariaTowerPillarsCues.
Definition at line 847 of file tundaria_tower.c.
scTundariaTowerLeaveHiddenWay
void scTundariaTowerLeaveHiddenWay(void)
Stepping out on the far side of the hidden way ends Reveal, and the way
closes behind Felix (scTundariaTowerEndRevealHiddenWay).
References fdScriptEndLastingPsynergy().
Referenced by TundariaTowerPillarsCues.
Definition at line 878 of file tundaria_tower.c.
scTundariaTowerBurstMirrorWall
void scTundariaTowerBurstMirrorWall(Sint32 stage)
Burst on the icy wall at the end of the left door's way, metatile (7, 35), in the room whose ice floor reflects Felix: chips of ice fly at the blasts and it breaks open onto the rooms of chests beyond as they die down.
References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatileTilesIndicesRect(), scTundariaTowerScatterIceChips(), Sint32 and syGameFlagSet().
Referenced by TundariaTowerPillarsCues.
Definition at line 886 of file tundaria_tower.c.
scTundariaTowerEndLastingPsynergy
void scTundariaTowerEndLastingPsynergy(void)
As Felix starts to cast Move on a sliding pillar or Burst on the icy wall, a lasting Psynergy still on, such as Reveal, ends first.
References fdScriptEndLastingPsynergy().
Referenced by TundariaTowerPillarsCues.
Definition at line 915 of file tundaria_tower.c.
scTundariaTowerBurstBrownWall
void scTundariaTowerBurstBrownWall(Sint32 stage, Sint32 tick)
Burst on the brown part of the outer wall in the Burst Brooch's room, from the ground below it: rocks fall at the blasts, two at each small one and thirty at the great one, and the wall breaks open into a shortcut as they die down.
References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatileTilesIndicesRect(), scRockSpawn(), scTundariaTowerEndFallingRocks(), scTundariaTowerStartFallingRocks(), scTundariaTowerUpdateBrownWallMetatile(), Sint32, syCloseEvent() and syGameFlagSet().
Referenced by TundariaTowerBurstBroochCues.
Definition at line 924 of file tundaria_tower.c.
scGetCues
const CUE *scGetCues(void)
References MainRoutineStateWork, TundariaTowerBlackIceCues, TundariaTowerBurstBroochCues, TundariaTowerCenterProngCues, TundariaTowerEntranceCues, TundariaTowerIceColumnsCues, TundariaTowerPillarsCues and TundariaTowerRefluxCues.
Definition at line 945 of file tundaria_tower.c.
scTundariaTowerReflectLeader
void scTundariaTowerReflectLeader(ACTOR *actor)
Felix's reflection in the ice floor of two rooms, the one before the icy wall Burst breaks and the one before the icy wall Reveal opens, mirrored across the floor's edge.
References fdActorGetById(), MainRoutineStateWork and syGameFlagGet().
Referenced by scInit().
Definition at line 967 of file tundaria_tower.c.
scDustScatter
void scDustScatter(Sint32 spread)
Eight clouds of dust rise in a row across the leader, 2 pixels apart, and fly
out from him in eight directions when spread is set.
References DustScatterScript, fdActorGetById(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdSpriteShareVRAMCacheEntry(), MainRoutineStateWork, scEffectAdvanceMotionAtLeaderPriority(), scTundariaTowerStartEffectScript(), Sint32, syCos(), syImportActorCreate() and sySin().
Referenced by scCrumblingPillarCollapse(), scCrumblingPillarStep(), scCrumblingPillarStepWithStandIn(), scLeaderCheckCrumblingStep(), scMagmaRockCrumblePillar(), scMagmaRockInsideCrumblePillar(), scMagmaRockInsideStepOnTrap(), scMagmaRockStepOnCrumblingPillar(), scMagmaRockStepOnTrap(), scTrialRoadCrumblePillar() and scTrialRoadStepOnTrap().
Definition at lines 1011 and 1340 of file tundaria_tower.c.
scDustBurst
void scDustBurst(void)
Throws a ring of dust clouds out from the leader as something lands.
References DustBurstScript, fdActorGetById(), fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdSpriteShareVRAMCacheEntry(), MainRoutineStateWork, scEffectAdvanceMotionAtLeaderPriority(), scTundariaTowerStartEffectScript(), Sint32, syCos(), syImportActorCreate() and sySin().
Referenced by scCrumblingPillarCollapse(), scCrumblingPillarStep() and scCrumblingPillarStepWithStandIn().
Definition at lines 1013 and 1392 of file tundaria_tower.c.
scTundariaTowerLandFromSlide
void scTundariaTowerLandFromSlide(void)
At the foot of a black ice slide, Felix drops in from above and lands in a puff of dust with a thump that shakes the screen.
References fdActorGetById(), fdActorSetAnimationById(), fdEffectAdvanceMotion(), fdEffectSetAttached(), fdMapGridCenterOnFollowedPoint(), fdMapGridWaitForShakeToSettle(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldEffectSpawn(), Sint32, syCos(), sySin(), sySoundPlay() and sySynch().
Referenced by scInit().
Definition at line 1035 of file tundaria_tower.c.
scInit
Sint32 scInit(void)
References fdActorGetById(), fdActorPlaceBlocks(), fdActorSetBlendMode(), fdActorSetItemIcon(), fdActorSetSpriteColor(), fdActorSetSpriteFlags(), fdActorSetSpritePriority(), fdActorWatchAndSetScript(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), MainRoutineStateWork, scFieldActorCreate(), scMapMetatileSetAttributes(), scSetActorSpritePriority(), scTundariaTowerLandFromSlide(), scTundariaTowerParchLeftWater(), scTundariaTowerParchRightWater(), scTundariaTowerReflectLeader(), scTundariaTowerSetUpIceColumns(), scTundariaTowerSparkleCenterProng(), scTundariaTowerUpdateBrownWallMetatile(), Sint32, syGameFlagGet(), syGameFlagSet(), sySetEvent(), TundariaTowerBurstBroochPillar, TundariaTowerIceColumnsColumns, TundariaTowerPillarsBlocks and TundariaTowerPillarsColumns.
Definition at line 1122 of file tundaria_tower.c.
scPrepareMap
Sint32 scPrepareMap(void)
References Sint32.
Definition at line 1312 of file tundaria_tower.c.
scLeaderSetSlideStopped
void scLeaderSetSlideStopped(Sint32 stopped)
Stops the leader's slide on the ice where it is (nonzero), or lets it run.
References Sint32 and SlideOnIceStopped.
Referenced by scMarsLighthouseEntranceStopSlideWhileRiding() and scMarsLighthouseTowersStopSlideWhileHit().
Definition at line 1326 of file tundaria_tower.c.
Variables in detail
TundariaTowerPillarsBlocks
extern Sint16 TundariaTowerPillarsBlocks[]
Sint16 TundariaTowerPillarsBlocks[]
The blocks Move pushes, ended by -1: the room of pillars' four, and the one in the Burst Brooch's room.
Referenced by scInit() and scTundariaTowerStartPillarMove().
Definition at lines 226 and 1495 of file tundaria_tower.c.
TundariaTowerBurstBroochPillar
extern Sint16 TundariaTowerBurstBroochPillar[]
Sint16 TundariaTowerBurstBroochPillar[]
Referenced by scInit() and scTundariaTowerStartPillarMove().
Definition at lines 227 and 1499 of file tundaria_tower.c.
TundariaTowerEntranceCues
extern CUE TundariaTowerEntranceCues[]
CUE TundariaTowerEntranceCues[]
Referenced by scGetCues().
Definition at lines 228 and 1782 of file tundaria_tower.c.
TundariaTowerCenterProngCues
extern CUE TundariaTowerCenterProngCues[]
CUE TundariaTowerCenterProngCues[]
References scTundariaTowerBurstCrystal(), scTundariaTowerExamineCrystal(), scTundariaTowerFreeCenterProng(), scTundariaTowerOpenDoor(), scTundariaTowerParchLeftWater() and scTundariaTowerParchRightWater().
Referenced by scGetCues().
Definition at lines 229 and 1789 of file tundaria_tower.c.
TundariaTowerBlackIceCues
extern CUE TundariaTowerBlackIceCues[]
CUE TundariaTowerBlackIceCues[]
References scTundariaTowerSlideOnIce().
Referenced by scGetCues().
Definition at lines 230 and 1862 of file tundaria_tower.c.
TundariaTowerRefluxCues
extern CUE TundariaTowerRefluxCues[]
CUE TundariaTowerRefluxCues[]
References scTundariaTowerFightReflux(), scTundariaTowerRefluxAppears() and scTundariaTowerSlideOnIce().
Referenced by scGetCues().
Definition at lines 231 and 1905 of file tundaria_tower.c.
TundariaTowerIceColumnsCues
extern CUE TundariaTowerIceColumnsCues[]
CUE TundariaTowerIceColumnsCues[]
References scTundariaTowerJumpDownSlide(), scTundariaTowerPoundIceColumn() and scTundariaTowerSlideOnIce().
Referenced by scGetCues().
Definition at lines 232 and 1936 of file tundaria_tower.c.
TundariaTowerPillarsCues
extern CUE TundariaTowerPillarsCues[]
CUE TundariaTowerPillarsCues[]
References scTundariaTowerBurstMirrorWall(), scTundariaTowerEndLastingPsynergy(), scTundariaTowerEndRevealHiddenWay(), scTundariaTowerLeaveHiddenWay(), scTundariaTowerPoundIceColumn(), scTundariaTowerRevealHiddenWay(), scTundariaTowerSetDownPillar(), scTundariaTowerSlidePillar() and scTundariaTowerStartPillarMove().
Referenced by scGetCues().
Definition at lines 233 and 1991 of file tundaria_tower.c.
TundariaTowerBurstBroochCues
extern CUE TundariaTowerBurstBroochCues[]
CUE TundariaTowerBurstBroochCues[]
References scTundariaTowerBurstBrownWall(), scTundariaTowerSetDownPillar() and scTundariaTowerStartPillarMove().
Referenced by scGetCues().
Definition at lines 234 and 2078 of file tundaria_tower.c.
TundariaTowerPillarsExitRegions
extern SCENE_REGION TundariaTowerPillarsExitRegions[]
SCENE_REGION TundariaTowerPillarsExitRegions[]
Referenced by scGetExitRegions().
Definition at lines 321 and 1546 of file tundaria_tower.c.
TundariaTowerBurstBroochExitRegions
extern SCENE_REGION TundariaTowerBurstBroochExitRegions[]
SCENE_REGION TundariaTowerBurstBroochExitRegions[]
Referenced by scGetExitRegions().
Definition at lines 322 and 1552 of file tundaria_tower.c.
TundariaTowerCenterProngActorPlacements
extern ACTOR_PLACE TundariaTowerCenterProngActorPlacements[]
ACTOR_PLACE TundariaTowerCenterProngActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 338 and 1728 of file tundaria_tower.c.
TundariaTowerBlackIceActorPlacements
extern ACTOR_PLACE TundariaTowerBlackIceActorPlacements[]
ACTOR_PLACE TundariaTowerBlackIceActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 339 and 1734 of file tundaria_tower.c.
TundariaTowerRefluxActorPlacements
extern ACTOR_PLACE TundariaTowerRefluxActorPlacements[]
ACTOR_PLACE TundariaTowerRefluxActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 340 and 1738 of file tundaria_tower.c.
TundariaTowerIceColumnsActorPlacements
extern ACTOR_PLACE TundariaTowerIceColumnsActorPlacements[]
ACTOR_PLACE TundariaTowerIceColumnsActorPlacements[]
The ice columns wear the sheet of stakes and pillars (SPRITE_STAKE), whose last animation is the
ice pillar; scTundariaTowerSetUpIceColumns picks it.
Referenced by scGetActorPlacements().
Definition at lines 341 and 1746 of file tundaria_tower.c.
TundariaTowerPillarsActorPlacements
extern ACTOR_PLACE TundariaTowerPillarsActorPlacements[]
ACTOR_PLACE TundariaTowerPillarsActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 342 and 1758 of file tundaria_tower.c.
TundariaTowerBurstBroochActorPlacements
extern ACTOR_PLACE TundariaTowerBurstBroochActorPlacements[]
ACTOR_PLACE TundariaTowerBurstBroochActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 343 and 1776 of file tundaria_tower.c.
TundariaTowerRefluxSpinScript
extern Sint32 TundariaTowerRefluxSpinScript[]
Sint32 TundariaTowerRefluxSpinScript[]
Reflux turning round a sixteenth of a turn each tick as he comes down.
References Sint32.
Referenced by scTundariaTowerRefluxAppears().
Definition at lines 573 and 1536 of file tundaria_tower.c.
SlideOnIceStopped
volatile Sint16 SlideOnIceStopped
Referenced by scLeaderSetSlideStopped() and scLeaderSlideOnIceFromEdge().
Definition at line 1017 of file tundaria_tower.c.
TundariaTowerIceColumnsColumns
extern Sint16 TundariaTowerIceColumnsColumns[]
Sint16 TundariaTowerIceColumnsColumns[]
The ice columns of the room of ice columns: each one's actor, its standing column's animation
(7, the ice pillar of stake.tsv) and its Pound flag, ending -1. A pounded column takes the
animation after it, 8, which the sheet does not have; its flag is a scene flag, cleared as the
party walks in, but entered with it set the column stands there as a wooden stake.
Referenced by scInit().
Definition at lines 1119 and 1519 of file tundaria_tower.c.
TundariaTowerPillarsColumns
extern Sint16 TundariaTowerPillarsColumns[]
Sint16 TundariaTowerPillarsColumns[]
The ice columns of the room of pillars, as TundariaTowerIceColumnsColumns.
Referenced by scInit().
Definition at lines 1120 and 1528 of file tundaria_tower.c.
FieldEffectDurationScripts
const Sint32 *FieldEffectDurationScripts[]
References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.
Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().
Definition at line 1509 of file tundaria_tower.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 1558 of file tundaria_tower.c.