src/scene/mars_lighthouse_hall.c
The Mars Lighthouse's central hall, the four ledges in the rain that lead from it to the element towers, and the beacon ledge at the top of each tower, all sharing this overlay. More…
#include "graphics/palette_buffers.h"#include "item_ids.h"#include "scene/flame_throwers.h"#include "field/field_engine.h"#include "field/field_engine_script.h"#include "scene/scene.h"#include "field/script_inline.h"#include "field/call.h"#include "edition.h"#include "scene/script_check_spheres_overlap.h"#include "window/window.h"#include "field/field_sprite.h"#include "macros.h"#include "field/actor_script.h"#include "text/msg_ids.h"#include "shared/teleport_shimmer.c"#include "shared/actor_is_touching.c"#include "shared/actor_is_beside.c"#include "shared/flame_update_forward.c"#include "shared/actor_reset_scripted_for.c"#include "shared/flame_update_sideways.c"#include "shared/actor_setup_scripted_part.c"#include "shared/actor_is_above.c"#include "shared/flame_thrower_update_spark.c"#include "shared/actor_setup_scripted.c"#include "shared/flame_throwers_puff.c"#include "shared/flame_throwers_create.c"#include "shared/flame_throwers_release_flame.c"#include "shared/beam_start.c"#include "shared/flame_thrower_is_active.c"#include "shared/flame_thrower_set_active.c"#include "shared/flame_throwers_advance_counter.c"#include "shared/flame_thrower_set.c"#include "shared/flame_thrower_set_puffs_off_screen.c"#include "shared/flame_thrower_get_flags.c"#include "shared/flame_throwers_set_stop.c"#include "shared/party_take_fall_damage.c"#include "shared/field_effect_advance_spin.c"#include "shared/actor_blink.c"#include "shared/leader_knock_back.c"#include "shared/fireball_carry_leader_if_hit.c"#include "shared/actor_scatter_crumbs.c"#include "shared/ice_chips_spawn.c"#include "shared/actor_hold_during_script.c"#include "shared/actor_roll_and_crumble.c"#include "shared/actor_attach.c"#include "shared/actor_launch_ahead.c"#include "shared/actor_pop_up_slow.c"#include "shared/actor_pop_up.c"#include "shared/actor_park.c"#include "shared/mars_lighthouse_part_scripts.c"#include "shared/teleport_circle_palette.c"
Structures
| Name | Description | |
|---|---|---|
struct | HALL_COL | The colours of BG palettes 8 and 9. |
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_WAY_TO_AERIE_OPEN 0xa31 | All four flames lit: the floor before the statue has broken open. |
#define | FLAG_VENUS_FLAME_LIT 0xa32 | |
#define | FLAG_MERCURY_FLAME_LIT 0xa33 | |
#define | FLAG_MARS_FLAME_LIT 0xa34 | |
#define | FLAG_JUPITER_FLAME_LIT 0xa35 | |
#define | FLAG_TOLD_TO_LIGHT_FLAMES 0xa2e | "If you wish to scale the heavens, set the four spirits aflame!" |
#define | FLAG_TOLD_TO_BEGONE 0xa2f | "If you do not hold the star, you shall not ascend to the heavens... |
#define | METATILE_LEDGE_DOORWAY 1 | The beacon ledge's doorway back into its tower. |
#define | INSCRIPTION_FIRST_PALETTE 8 | The inscriptions' colours: BG palettes 8 and 9 hold six for each element, the hall's four inscriptions glowing in them once that element's flame is lit, and the ledge's inscription takes its tower's six into palette 13. |
#define | LEDGE_INSCRIPTION_PALETTE 13 | |
#define | UNLIT_INSCRIPTION_PALETTE 2 | The hall's palette whose last six colours are an unlit inscription's. |
#define | INSCRIPTION_GLOW_COLORS 6 | An inscription's glow: a run of INSCRIPTION_GLOW_COLORS colours that turns round, one colour on every INSCRIPTION_GLOW_STEP_TICKS ticks. |
#define | INSCRIPTION_GLOW_STEP_TICKS 8 | |
#define | TELEPORT_CIRCLE_FIRST_ENTRY 201 |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { ENTRANCE_THROUGH_VENUS_DOORWAY, ENTRANCE_THROUGH_MERCURY_DOO … } | The hall's own entrances, through its four doorways: arriving from the passage toward each element's tower, the party comes in under that doorway's arch with its light shown. |
enum | anonymous enum { METATILE_BEHAVIOR_VENUS_DOORWAY, METATILE_BEHAVIOR_MERCURY_D … } | The step metatiles before the hall's doorways, two to each in the doorways' order: the metatile under the arch, which fades its light in, then the metatiles beside it, which fade it out. |
enum | anonymous enum { DOORWAY_VENUS, DOORWAY_MERCURY, DOORWAY_MARS, DOORWAY_JUPITE … } | The hall's doorways, in the order of their step metatiles (MarsLighthouseHallDoorway). |
enum | anonymous enum { METATILE_AERIE_CARVING, METATILE_EARTH_INSCRIPTION, METATILE … } | The hall's other metatiles: the carving Teleport is cast on, the four inscriptions, and the steps up from the stairs where the dragon statue speaks. |
enum | anonymous enum { JUPITER_GLOW, VENUS_GLOW, MERCURY_GLOW, MARS_GLOW, LEDGE_GLO … } | The first of each element's six colours in palettes 8 and 9, and of the ledge inscription's in palette 13. |
enum | anonymous enum { FLAME_ANIMATION_MARS, FLAME_ANIMATION_JUPITER, FLAME_ANIMATI … } | Each element's flame among the flame sprite's animations. |
enum | anonymous enum { ACTOR_LEDGE_TORCH, ACTOR_LEDGE_FLAME, ACTOR_LEDGE_BLAZE_TARG … } | The beacon ledge: the torch Blaze is cast at, tinted to its tower's element, its flame, the point above it Blaze reaches, and two dragon statues. |
enum | anonymous enum { ACTOR_VENUS_FLAME, ACTOR_MERCURY_FLAME, ACTOR_MARS_FLAME, AC … } | The hall: four robed statues (actors 8 to 11), the four elements' flames on them, shown once lit, and the dragon statue's mouth, which lets fall the fireball that breaks the floor. |
Functions
| Name | Description | |
|---|---|---|
Sint32 | fdLeaderKnockBack (void) | The leader is thrown back by the flames that struck them (shared/leader_knock_back.c). |
Sint32 | scFireballCarryLeader (void) | Hit by a rolling fireball: the leader is hurt, blinks, and is carried along with it until it stops. |
void | fdActorLaunchAhead (ACTOR *self) | Launches the actor this one carries (scActorAttach) 32 pixels ahead of it, the way launchFacing faces, rolling at up to 8 pixels a tick (scActorRollAndCrumble), with the launch sound. |
void | scTeleportStartShimmer (void) | Starts the shimmer at its slow pace, as Teleport is cast: the first step after 16 ticks, each after a tick less, down to two. |
void | scMarsLighthouseHallFadeDoorway (void) | Each tick, the purple light in the arched doorway Felix last stepped up to fades one step in or out. |
void | scMarsLighthouseHallBreakFloorTile (Sint32 x, Sint32 z, Sint32 srcX, Sint32 srcY, Sint32 metatileX, Sint32 metatileY) | One floor tile before the statue breaks in a burst of flame with a clatter, showing its part of the round carving beneath: the metatile (metatileX, metatileY) takes the picture at (srcX, srcY). |
void | scMarsLighthouseHallCycleLedgeInscription (void) | Each tick on the beacon ledge: once its flame is lit, the inscription on the wall behind it glows in its element's colours, turning round. |
void | scMarsLighthouseHallCycleHallInscriptions (void) | Each tick in the hall: the inscription of each element whose flame is lit glows in its colours, turning round, and the others show unlit. |
void | scMarsLighthouseHallStartDoorways (Sint32 entrance) | On arriving in the hall through one of its arched doorways, that doorway is shown lit purple behind Felix (one step short of full, so the next fade opens its way); arriving any other way, all four are dark. |
void | scFlameThrowersCreate (void) | Clears the flame throwers' state (unless the party keeps its place) and makes the flame whose sprite the crumbs share, keeping its VRAM entry. |
void | scMarsLighthouseHallFlashDoorways (void) | As the dragon statue speaks, the four arched doorways light up purple together, flicker and fade away. |
void | fdActorBlink (ACTOR *actor) | Blinks an actor red, four ticks in every eight: the update of a leader a flame or a fireball has hurt. |
void | fdTeleportPlaySparks (void) | The leaving half of a teleport, fdTeleportPlayWhirl's companion in the same scenes: the leader raises both arms in changing colours, spins faster and faster as sparks burst from it, shrinks away and is hidden. |
BSS_DATA | ALIGNED (4) | The beacon ledge inscription's colours: the element palettes as loaded, the palette the glow is built in, and the inscription's own palette as loaded. |
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. |
void | scTeleportStopShimmer (void) | Stops the shimmer, leaving the next transition a backdrop fade. |
Sint32 | scMarsLighthouseHallSetUpTorch (ACTOR *actor) | A script call of the beacon ledge's torch and of Blaze's mark above it: they stand without a shadow. |
Sint32 | scMarsLighthouseHallShowFlame (Sint32 id, Sint32 animation) | Shows a flame on its torch, 14 pixels up, in its element's animation. |
void | scFlameUpdateForward (ACTOR *actor) | A flame's update as it flies along z, slowing, growing and turning as it goes: on reaching the leader where he stands it sets the way he is knocked back, passes under his feet and rises away, and raises the hit cue; on reaching a slot's actor it rises away the same, unless the slot is blocked, which marks the state blocked. |
void | scActorSetupScriptedPart (ACTOR *actor, Sint32 layer) | Stops an actor and starts its script, its sprite drawn at priority. |
void | scFlameUpdateSideways (ACTOR *actor) | scFlameUpdateForward for a flame flying east or west: it goes along x, and a leader it reaches is knocked back along x. |
Sint32 | scListCountEntries (Uint16 *list) | The number of entries in a list of palette slots ended by PALETTE_LIST_END, less one. |
void | fdPaletteCycleFade (void) | Steps a palette cycle that fades as it slows. |
void | scTeleportStartFastShimmer (void) | Starts the shimmer at a step every two ticks, as the party arrives. |
Bool | scActorIsAbove (ACTOR *a, ACTOR *b) | 1 when the first actor stands just above the second. |
void | scFlameThrowerUpdateSpark (ACTOR *actor) | A flame thrower's spark in flight: it drifts on, slowing, growing and spinning; just over the leader's head it stops going on and rises away. |
void | scActorSetupScripted (ACTOR *actor) | Readies a flame thrower's spark (FLAME_SPARK): it stops, shadowless and tinted SPRITE_COLOR_RED_TINT, and breaks up (the dust cloud's animation 2) without spinning or growing until ScriptedPartScript releases it, half a second on. |
void | scMarsLighthouseHallSpawnFlamePuff (Sint32 x, Sint32 z, Sint32 kind) | A puff of flame where the fireball breaks the floor: one that swells as it rises and shrinks back, or one thrown off at random. |
void | scActorHoldDuringScript (ACTOR *actor) | Holds the actor still while the field engine is handling requests. |
void | fdTeleportPlayWhirl (void) | The arriving half of a teleport: a whirl of sparks, the coloured orbs of RESOURCE_COLOURED_ORBS, falls in round the hidden leader with SE_SPARKLE_FALL, the leader spins and grows back to full size inside it, and the whirl dies away. |
const ACTOR_PLACE * | scGetActorPlacements (void) | The scene's actor placements: a room of names for its entrance, else the debug room's. |
void | scMarsLighthouseHallLeaveLedge (void) | Walking back into the doorway at the top of the beacon ledge's steps (metatile (31, 17)) takes Felix back into the tower he came up through. |
void | scMarsLighthouseHallStartBlazeOnTorch (void) | Nothing visible happens yet when Felix casts Blaze at the torch on the beacon ledge; the game only marks this cast's jet of flame as the long one, so that it carries past the torch up to the beacon flame. |
void | scMarsLighthouseHallWatchBlazeReachFlame (void) | As Felix's Blaze on the beacon ledge's torch flies on past it, the camera follows the fire up to the unlit beacon. |
void | scMarsLighthouseHallLightFlame (void) | Blaze reaches the beacon above the ledge's torch: the screen flashes white with a chime, and the beacon of the tower Felix came up through is lit. |
void | scMarsLighthouseHallStepTowardDoorway (Sint32 state) | Once the lighthouse has thawed, stepping under one of the hall's four arched doorways, two each side of the dragon statue, lights its opening purple with a hum, and stepping to the metatiles beside it fades it out again. |
void | scMarsLighthouseHallTeleportToAerie (void) | Felix casts Teleport on the round carving the dragon statue's fireball uncovered in the floor before it (metatiles (12, 12) to (15, 14)): the screen turns red, sparks swirl round the party, and they arrive on the carved octagon of the Mars Lighthouse Aerie in the storm. |
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 | scPaletteSetColorsFade (Uint16 *slots, Uint16 *colours, Uint16 *a, Uint16 *b) | Writes each listed background colour from its red, green and blue, keeps the lists for the shimmer, and saves the palettes as the fade's source; arriving by Teleport, the party then arrives on the circle. |
Sint32 | scInit (void) | Opens the room through the window transition, and in the debug room draws the cat 1.7 times its size. |
static __inline__ void | scMarsLighthouseHallStartRainWave (Sint32 mode, FIXED frequencyX, Sint32 stepX, FIXED ampX, FIXED frequencyY, Sint32 stepY, FIXED ampY) | The line scroll's wave across and down that the rain ledges start with the rain. |
Sint32 | scPrepareMap (void) | Once Briggs is caught the pool has dried up: its colours take the dry ground's. |
void | scMarsLighthouseHallReadEarthInscription (void) | Felix reads the inscription on the hall's gallery east of the dragon statue's head: the screen turns yellow-green and "Mankind... |
void | scMarsLighthouseHallReadWaterInscription (void) | Felix reads the inscription on the hall's floor west of the dragon statue's chin: the screen turns yellow-green and "Fish... |
void | scMarsLighthouseHallReadFireInscription (void) | Felix reads the inscription on the hall's floor east of the dragon statue's chin: the screen turns yellow-green and "Dragons... |
void | scMarsLighthouseHallReadWindInscription (void) | Felix reads the inscription on the hall's gallery west of the dragon statue's head: the screen turns yellow-green and "Bird... |
void | scMarsLighthouseHallHearDragonStatue (void) | The great dragon statue at the head of the hall speaks as Felix steps in from the stairs (metatiles (11, 16) to (16, 16)): the camera rises to it and the screen turns yellow-green. |
void | scTeleportArriveWhirling (void) | The party arrives by Teleport on the circle: the room fades in grey while the circle shimmers and the whirl plays, then its colours come back. |
Bool | fdActorIsTouching (ACTOR *a, ACTOR *b) | 1 when two actors touch. |
Bool | fdActorIsBeside (ACTOR *a, ACTOR *b) | 1 when two actors stand side by side. |
void | scFlameThrowerSendForward (VECTOR3 *pos, Sint32 speed, Sint32 offScreen) | A flame thrower's flame (FLAME_FORWARD), sent south from pos at speed (scFlameUpdateForward); offScreen keeps its sprite's picture loaded out of sight. |
void | scFlameThrowerSendBackward (VECTOR3 *pos, Sint32 speed, Sint32 offScreen) | A flame thrower's flame (FLAME_BACKWARD), sent north from pos at speed (scFlameUpdateForward); offScreen keeps its sprite's picture loaded out of sight. |
void | scFlameThrowerSendEast (VECTOR3 *pos, Sint32 speed, Sint32 offScreen) | A flame thrower's flame (FLAME_EAST), sent east from pos at speed (scFlameUpdateSideways); offScreen keeps its sprite's picture loaded out of sight. |
void | scFlameThrowerSendWest (VECTOR3 *pos, Sint32 speed, Sint32 offScreen) | A flame thrower's flame (FLAME_WEST), sent west from pos at speed (scFlameUpdateSideways); offScreen keeps its sprite's picture loaded out of sight. |
void | scFlameThrowerSendSpark (VECTOR3 *pos, Sint32 speed, Sint32 offScreen) | A spark puffed from a flame thrower, drifting off in a random direction. |
void | scFlameThrowersSetMode (Sint16 value) | Sets whether the flame throwers keep puffing while Psynergy is used. |
Sint32 | scFlameThrowersGetCounter (void) | The flame throwers' counter, which scFlameThrowersAdvanceCounter steps. |
void | scMarsLighthouseHallKnockBackIfHit (void) | Hit by the flames, the leader is knocked back. |
Sint32 | scFlameThrowersHasHitLeader (void) | Whether a flame or fireball has hit the leader. |
Sint32 | fdMapGetTerrainHeight (Sint32 layer, Sint32 x, Sint32 z) | The ground height of a layer at (x, z), 16.16 pixels (fdMapGridGetTerrainHeight, through the overlay's own import row). |
Variables
| Name | Description | |
|---|---|---|
extern Uint32 | CrumbsScript [] | A crumb (scActorScatterCrumbs) waits 20 ticks, flickers for ten pairs of ticks and is released. |
extern Uint32 | IceChipsScript [] | An ice chip (scIceChipsSpawn) does the same. |
extern Sint32 | MarsLighthouseHallTorchScript [] | |
Uint16 | PaletteCycleBright | The teleport circle's shimmer, a palette cycle that fdPaletteCycleFade steps. |
Uint16 | PaletteCycleTimer | |
Uint16 | PaletteCycleDelay | |
Uint16 | MarsLighthouseHallLedgePalette [2 * PALETTE_COLORS] | |
Uint16 | MarsLighthouseHallLedgeSavedPalette [PALETTE_COLORS] | |
HALL_COL | MarsLighthouseHallHallElementColors | |
HALL_COL | MarsLighthouseHallHallPalette | |
Uint16 | MarsLighthouseHallHallSavedPalette [10] | BG palette 2's first ten colours; it is saved whole, with the unlit inscription colours after them. |
Uint16 | MarsLighthouseHallUnlitInscriptionColors [6] | |
Sint16 | MarsLighthouseHallDoorwayBlend | |
Sint16 | MarsLighthouseHallDoorwayBlendTarget | |
Sint16 | MarsLighthouseHallDoorway | |
Sint16 | MarsLighthouseHallDoorwayStep | |
extern Sint32 | ScriptedPartScript [] | A scripted part waits half a second, is placed at 0, 0, 0 and released. |
extern ACTOR_PLACE | MarsLighthouseHallPlacements [] | |
extern ACTOR_PLACE | MarsLighthouseHallFlamePlacements [] | |
extern ACTOR_PLACE | MarsLighthouseHallInscriptionsPlacements [] | |
extern CUE | MarsLighthouseHallCues [] | |
extern CUE | MarsLighthouseHallFlameCues [] | |
extern CUE | MarsLighthouseHallInscriptionsCues [] | |
extern CUE | MarsLighthouseHallLedgesCues [] | |
extern Sint32 | MarsLighthouseHallFlamePuffSwellScript [] | |
extern Sint32 | MarsLighthouseHallFlamePuffThrownScript [] | |
extern Sint32 | MarsLighthouseHallLedgeCycleTick | The beacon ledge inscription's glow, in ticks; -1 before it starts. |
extern Sint32 | MarsLighthouseHallHallCycleTick | The hall inscriptions' glow, in ticks; -1 before it starts. |
extern Uint16 | TeleportCirclePaletteSlots [] | The entries the circle is drawn in. |
extern Uint16 | TeleportCircleColors [] | The circle's colours: one pale grey-green on every entry. |
extern Uint16 | TeleportCircleShimmerColors [] | The shimmer's colours, which it moves round the entries: lilac, blues deepening to violet, and white. |
extern Uint16 | TeleportCircleShimmerSlots [] | The shimmer's six steps: for each, the entries its colours go to. |
SCENE_ENTRANCE | SceneEntrances [] | Besides the party's return to the pier after the ship is stolen, four unused spots about the mast: below the huge block, on the dock by its crate, on the deck, and at the top of the sail's east pole. |
Uint32 | SceneExits [] | The room has no exits of its own. |
Description
The Mars Lighthouse's central hall, the four ledges in the rain that lead from it to the element towers, and the beacon ledge at the top of each tower, all sharing this overlay.
Felix reaches the hall up the stairs from the lighthouse's entrance. The great dragon statue at its head speaks as he steps in: without the Mars Star it tells him to begone; with it, once the lighthouse has thawed, it bids him set the four spirits aflame. Four inscriptions hang beside the statue, two on the floor by its chin and two on the gallery by its head, naming the peoples who ruled earth, water, fire and wind. Each tower comes out on a beacon ledge in the rain, where Blaze at the torch lights that element's flame. Each flame lit burns on one of the hall's four robed statues and makes its element's inscription glow. With all four lit the statue says the heavens await, a fireball from its mouth breaks the floor before it to show a round carving, and Teleport there carries the party up to the aerie. Once the lighthouse has thawed, the gallery's arched doorways light purple as Felix walks up to them.
Macros in detail
FLAG_WAY_TO_AERIE_OPEN
#define FLAG_WAY_TO_AERIE_OPEN 0xa31
All four flames lit: the floor before the statue has broken open.
Referenced by scInit() and scPrepareMap().
Definition at line 35 of file mars_lighthouse_hall.c.
FLAG_VENUS_FLAME_LIT
#define FLAG_VENUS_FLAME_LIT 0xa32
Referenced by scInit(), scMarsLighthouseHallCycleHallInscriptions(), scMarsLighthouseHallCycleLedgeInscription(), scMarsLighthouseHallLightFlame() and scPrepareMap().
Definition at line 36 of file mars_lighthouse_hall.c.
FLAG_MERCURY_FLAME_LIT
#define FLAG_MERCURY_FLAME_LIT 0xa33
Referenced by scInit(), scMarsLighthouseHallCycleHallInscriptions(), scMarsLighthouseHallCycleLedgeInscription(), scMarsLighthouseHallLightFlame() and scPrepareMap().
Definition at line 37 of file mars_lighthouse_hall.c.
FLAG_MARS_FLAME_LIT
#define FLAG_MARS_FLAME_LIT 0xa34
Referenced by scInit(), scMarsLighthouseHallCycleHallInscriptions(), scMarsLighthouseHallCycleLedgeInscription(), scMarsLighthouseHallLightFlame() and scPrepareMap().
Definition at line 38 of file mars_lighthouse_hall.c.
FLAG_JUPITER_FLAME_LIT
#define FLAG_JUPITER_FLAME_LIT 0xa35
Referenced by scInit(), scMarsLighthouseHallCycleHallInscriptions(), scMarsLighthouseHallCycleLedgeInscription(), scMarsLighthouseHallLightFlame() and scPrepareMap().
Definition at line 39 of file mars_lighthouse_hall.c.
FLAG_TOLD_TO_LIGHT_FLAMES
#define FLAG_TOLD_TO_LIGHT_FLAMES 0xa2e
"If you wish to scale the heavens, set the four spirits aflame!"
Referenced by MarsLighthouseHallInscriptionsCues and scMarsLighthouseHallHearDragonStatue().
Definition at line 41 of file mars_lighthouse_hall.c.
FLAG_TOLD_TO_BEGONE
#define FLAG_TOLD_TO_BEGONE 0xa2f
"If you do not hold the star, you shall not ascend to the heavens... Begone!"
Referenced by scMarsLighthouseHallHearDragonStatue().
Definition at line 43 of file mars_lighthouse_hall.c.
METATILE_LEDGE_DOORWAY
#define METATILE_LEDGE_DOORWAY 1
The beacon ledge's doorway back into its tower.
Referenced by MarsLighthouseHallFlameCues.
Definition at line 91 of file mars_lighthouse_hall.c.
INSCRIPTION_FIRST_PALETTE
#define INSCRIPTION_FIRST_PALETTE 8
The inscriptions' colours: BG palettes 8 and 9 hold six for each element, the hall's four inscriptions glowing in them once that element's flame is lit, and the ledge's inscription takes its tower's six into palette 13.
Referenced by scMarsLighthouseHallCycleHallInscriptions() and scMarsLighthouseHallCycleLedgeInscription().
Definition at line 96 of file mars_lighthouse_hall.c.
LEDGE_INSCRIPTION_PALETTE
#define LEDGE_INSCRIPTION_PALETTE 13
Referenced by scMarsLighthouseHallCycleLedgeInscription().
Definition at line 97 of file mars_lighthouse_hall.c.
UNLIT_INSCRIPTION_PALETTE
#define UNLIT_INSCRIPTION_PALETTE 2
The hall's palette whose last six colours are an unlit inscription's.
Referenced by scMarsLighthouseHallCycleHallInscriptions().
Definition at line 99 of file mars_lighthouse_hall.c.
INSCRIPTION_GLOW_COLORS
#define INSCRIPTION_GLOW_COLORS 6
An inscription's glow: a run of INSCRIPTION_GLOW_COLORS colours that turns
round, one colour on every INSCRIPTION_GLOW_STEP_TICKS ticks.
Referenced by scMarsLighthouseHallCycleHallInscriptions() and scMarsLighthouseHallCycleLedgeInscription().
Definition at line 102 of file mars_lighthouse_hall.c.
INSCRIPTION_GLOW_STEP_TICKS
#define INSCRIPTION_GLOW_STEP_TICKS 8
Referenced by scMarsLighthouseHallCycleHallInscriptions() and scMarsLighthouseHallCycleLedgeInscription().
Definition at line 103 of file mars_lighthouse_hall.c.
TELEPORT_CIRCLE_FIRST_ENTRY
#define TELEPORT_CIRCLE_FIRST_ENTRY 201
Definition at line 1436 of file mars_lighthouse_hall.c.
Enumerations in detail
anonymous enum
enum { ENTRANCE_THROUGH_VENUS_DOORWAY, ENTRANCE_THROUGH_MERCURY_DOORWAY, ENTRANCE_THROUGH_MARS_DOORWAY, ENTRANCE_THROUGH_JUPITER_DOORWAY }
The hall's own entrances, through its four doorways: arriving from the passage toward each element's tower, the party comes in under that doorway's arch with its light shown.
| Enumerator | Value | Description |
|---|---|---|
ENTRANCE_THROUGH_VENUS_DOORWAY | 8 | |
ENTRANCE_THROUGH_MERCURY_DOORWAY | 10 | |
ENTRANCE_THROUGH_MARS_DOORWAY | 12 | |
ENTRANCE_THROUGH_JUPITER_DOORWAY | 14 |
Definition at line 48 of file mars_lighthouse_hall.c.
anonymous enum
enum { METATILE_BEHAVIOR_VENUS_DOORWAY, METATILE_BEHAVIOR_MERCURY_DOORWAY, METATILE_BEHAVIOR_MARS_DOORWAY, METATILE_BEHAVIOR_JUPITER_DOORWAY }
The step metatiles before the hall's doorways, two to each in the doorways' order: the metatile under the arch, which fades its light in, then the metatiles beside it, which fade it out.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_VENUS_DOORWAY | 20 | |
METATILE_BEHAVIOR_MERCURY_DOORWAY | 22 | |
METATILE_BEHAVIOR_MARS_DOORWAY | 24 | |
METATILE_BEHAVIOR_JUPITER_DOORWAY | 26 |
Definition at line 59 of file mars_lighthouse_hall.c.
anonymous enum
enum { DOORWAY_VENUS, DOORWAY_MERCURY, DOORWAY_MARS, DOORWAY_JUPITER }
The hall's doorways, in the order of their step metatiles
(MarsLighthouseHallDoorway).
| Enumerator | Value | Description |
|---|---|---|
DOORWAY_VENUS | ||
DOORWAY_MERCURY | ||
DOORWAY_MARS | ||
DOORWAY_JUPITER |
Definition at line 69 of file mars_lighthouse_hall.c.
anonymous enum
enum { METATILE_AERIE_CARVING, METATILE_EARTH_INSCRIPTION, METATILE_WATER_INSCRIPTION, METATILE_FIRE_INSCRIPTION, … }
The hall's other metatiles: the carving Teleport is cast on, the four inscriptions, and the steps up from the stairs where the dragon statue speaks.
| Enumerator | Value | Description |
|---|---|---|
METATILE_AERIE_CARVING | 1 | |
METATILE_EARTH_INSCRIPTION | 30 | |
METATILE_WATER_INSCRIPTION | ||
METATILE_FIRE_INSCRIPTION | ||
METATILE_WIND_INSCRIPTION | ||
METATILE_BEFORE_DRAGON_STATUE |
Definition at line 80 of file mars_lighthouse_hall.c.
anonymous enum
enum { JUPITER_GLOW, VENUS_GLOW, MERCURY_GLOW, MARS_GLOW, … }
The first of each element's six colours in palettes 8 and 9, and of the ledge inscription's in palette 13.
| Enumerator | Value | Description |
|---|---|---|
JUPITER_GLOW | 4 | |
VENUS_GLOW | 10 | |
MERCURY_GLOW | PALETTE_COLORS + 4 | |
MARS_GLOW | PALETTE_COLORS + 10 | |
LEDGE_GLOW | 10 |
Definition at line 107 of file mars_lighthouse_hall.c.
anonymous enum
enum { FLAME_ANIMATION_MARS, FLAME_ANIMATION_JUPITER, FLAME_ANIMATION_VENUS, FLAME_ANIMATION_MERCURY }
Each element's flame among the flame sprite's animations.
| Enumerator | Value | Description |
|---|---|---|
FLAME_ANIMATION_MARS | 2 | |
FLAME_ANIMATION_JUPITER | 3 | |
FLAME_ANIMATION_VENUS | 4 | |
FLAME_ANIMATION_MERCURY | 5 |
Definition at line 117 of file mars_lighthouse_hall.c.
anonymous enum
enum { ACTOR_LEDGE_TORCH, ACTOR_LEDGE_FLAME, ACTOR_LEDGE_BLAZE_TARGET }
The beacon ledge: the torch Blaze is cast at, tinted to its tower's element, its flame, the point above it Blaze reaches, and two dragon statues.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_LEDGE_TORCH | 8 | |
ACTOR_LEDGE_FLAME | 9 | |
ACTOR_LEDGE_BLAZE_TARGET | 10 |
Definition at line 127 of file mars_lighthouse_hall.c.
anonymous enum
enum { ACTOR_VENUS_FLAME, ACTOR_MERCURY_FLAME, ACTOR_MARS_FLAME, ACTOR_JUPITER_FLAME, … }
The hall: four robed statues (actors 8 to 11), the four elements' flames on them, shown once lit, and the dragon statue's mouth, which lets fall the fireball that breaks the floor.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_VENUS_FLAME | 12 | |
ACTOR_MERCURY_FLAME | 13 | |
ACTOR_MARS_FLAME | 14 | |
ACTOR_JUPITER_FLAME | 15 | |
ACTOR_STATUE_MOUTH | 16 | |
ACTOR_FIREBALL | 18 |
Definition at line 137 of file mars_lighthouse_hall.c.
Functions in detail
scFireballCarryLeader
Sint32 scFireballCarryLeader(void)
Hit by a rolling fireball: the leader is hurt, blinks, and is carried along with it until it stops.
References fdActorBlink(), fdActorGet(), fdActorSelectAnimation(), fdActorSetSpriteColorMode(), fdMapGridGetTerrainKindOrBumpAt(), fdScreenTransitionStart(), fdScriptClearFlag(), fdScriptSetFlag(), fdScriptStart(), gmPartyTakeFallDamage(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), Sint32 and sySynch().
Referenced by MarsLighthouseTowersJupiterTowerCues, SceneCues and scFireballCarryLeaderIfHit().
Definition at lines 152, 1157 and 1333 of file mars_lighthouse_hall.c.
scMarsLighthouseHallFadeDoorway
void scMarsLighthouseHallFadeDoorway(void)
Each tick, the purple light in the arched doorway Felix last stepped up to fades one step in or out. Fully lit, the doorway opens a way through the wall (the metatiles under its arch are copied from the open template); faded out, the wall closes again.
References fdMapGridCopyMetatileAttributes(), MarsLighthouseHallDoorway, MarsLighthouseHallDoorwayBlend, MarsLighthouseHallDoorwayBlendTarget and Sint32.
Referenced by scMarsLighthouseHallStartDoorways() and scMarsLighthouseHallTeleportToAerie().
Definition at lines 157, 503 and 1161 of file mars_lighthouse_hall.c.
scMarsLighthouseHallBreakFloorTile
void scMarsLighthouseHallBreakFloorTile(Sint32 x, Sint32 z, Sint32 srcX, Sint32 srcY, Sint32 metatileX, Sint32 metatileY)
One floor tile before the statue breaks in a burst of flame with a clatter, showing its part of the round carving beneath: the metatile (metatileX, metatileY) takes the picture at (srcX, srcY).
References fdMapGridCopyMetatilesTo(), fdScriptPlaySound(), scMarsLighthouseHallSpawnFlamePuff(), Sint32 and sySynch().
Referenced by scInit().
Definition at lines 159 and 1055 of file mars_lighthouse_hall.c.
scMarsLighthouseHallCycleLedgeInscription
void scMarsLighthouseHallCycleLedgeInscription(void)
Each tick on the beacon ledge: once its flame is lit, the inscription on the wall behind it glows in its element's colours, turning round.
References fdScriptGetFlag(), MainRoutineStateWork, MarsLighthouseHallLedgeCycleTick, MarsLighthouseHallLedgePalette, MarsLighthouseHallLedgeSavedPalette and Sint32.
Referenced by scPrepareMap().
Definition at lines 166 and 299 of file mars_lighthouse_hall.c.
scMarsLighthouseHallCycleHallInscriptions
void scMarsLighthouseHallCycleHallInscriptions(void)
Each tick in the hall: the inscription of each element whose flame is lit glows in its colours, turning round, and the others show unlit.
References fdScriptGetFlag(), MarsLighthouseHallHallCycleTick, MarsLighthouseHallHallElementColors, MarsLighthouseHallHallPalette, MarsLighthouseHallHallSavedPalette, MarsLighthouseHallUnlitInscriptionColors and Sint32.
Referenced by scPrepareMap().
Definition at lines 168 and 435 of file mars_lighthouse_hall.c.
scMarsLighthouseHallStartDoorways
void scMarsLighthouseHallStartDoorways(Sint32 entrance)
On arriving in the hall through one of its arched doorways, that doorway is shown lit purple behind Felix (one step short of full, so the next fade opens its way); arriving any other way, all four are dark.
References fdBlendScriptSuspend(), fdMapGridCopyMetatilesLayered(), MarsLighthouseHallDoorway, MarsLighthouseHallDoorwayBlend, MarsLighthouseHallDoorwayBlendTarget, MarsLighthouseHallDoorwayStep, scMarsLighthouseHallFadeDoorway(), Sint32 and sySetTickEvent().
Referenced by scPrepareMap().
Definition at lines 170 and 618 of file mars_lighthouse_hall.c.
scMarsLighthouseHallFlashDoorways
void scMarsLighthouseHallFlashDoorways(void)
As the dragon statue speaks, the four arched doorways light up purple together, flicker and fade away.
References fdMapGridCopyMetatilesLayered(), MarsLighthouseHallDoorwayBlendTarget and sySynch().
Referenced by scMarsLighthouseHallHearDragonStatue().
Definition at lines 174 and 589 of file mars_lighthouse_hall.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 218 of file mars_lighthouse_hall.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 223 of file mars_lighthouse_hall.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 228 of file mars_lighthouse_hall.c.
scMarsLighthouseHallSetUpTorch
Sint32 scMarsLighthouseHallSetUpTorch(ACTOR *actor)
A script call of the beacon ledge's torch and of Blaze's mark above it: they stand without a shadow.
References fdActorSetSpriteFlags() and Sint32.
Referenced by MarsLighthouseHallTorchScript.
Definition at line 237 of file mars_lighthouse_hall.c.
scMarsLighthouseHallShowFlame
Sint32 scMarsLighthouseHallShowFlame(Sint32 id, Sint32 animation)
Shows a flame on its torch, 14 pixels up, in its element's animation.
References fdActorGet(), fdActorSelectAnimation(), fdActorSetSpriteFlags() and Sint32.
Referenced by scPrepareMap().
Definition at line 244 of file mars_lighthouse_hall.c.
scMarsLighthouseHallSpawnFlamePuff
void scMarsLighthouseHallSpawnFlamePuff(Sint32 x, Sint32 z, Sint32 kind)
A puff of flame where the fireball breaks the floor: one that swells as it rises and shrinks back, or one thrown off at random.
References fdActorSelectAnimation(), fdActorSetSpriteFlags(), fdActorStartScript(), MarsLighthouseHallFlamePuffSwellScript, MarsLighthouseHallFlamePuffThrownScript, scFieldActorCreate() and Sint32.
Referenced by scMarsLighthouseHallBreakFloorTile().
Definition at lines 280 and 1028 of file mars_lighthouse_hall.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References MainRoutineStateWork, MarsLighthouseHallFlamePlacements, MarsLighthouseHallInscriptionsPlacements and MarsLighthouseHallPlacements.
Definition at line 284 of file mars_lighthouse_hall.c.
scMarsLighthouseHallLeaveLedge
void scMarsLighthouseHallLeaveLedge(void)
Walking back into the doorway at the top of the beacon ledge's steps (metatile (31, 17)) takes Felix back into the tower he came up through.
References fdScriptPlaySound(), MainRoutineStateWork and scFieldScriptSetExitRequest().
Referenced by MarsLighthouseHallFlameCues.
Definition at line 370 of file mars_lighthouse_hall.c.
scMarsLighthouseHallStartBlazeOnTorch
void scMarsLighthouseHallStartBlazeOnTorch(void)
Nothing visible happens yet when Felix casts Blaze at the torch on the beacon ledge; the game only marks this cast's jet of flame as the long one, so that it carries past the torch up to the beacon flame.
Referenced by MarsLighthouseHallFlameCues.
Definition at line 379 of file mars_lighthouse_hall.c.
scMarsLighthouseHallWatchBlazeReachFlame
void scMarsLighthouseHallWatchBlazeReachFlame(void)
As Felix's Blaze on the beacon ledge's torch flies on past it, the camera follows the fire up to the unlit beacon.
References fdCameraMoveToActorById() and fdCameraWaitForArrival().
Referenced by MarsLighthouseHallFlameCues.
Definition at line 388 of file mars_lighthouse_hall.c.
scMarsLighthouseHallLightFlame
void scMarsLighthouseHallLightFlame(void)
Blaze reaches the beacon above the ledge's torch: the screen flashes white with a chime, and the beacon of the tower Felix came up through is lit.
References fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdScriptEnd(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy() and scFieldScriptWait().
Referenced by MarsLighthouseHallFlameCues.
Definition at line 396 of file mars_lighthouse_hall.c.
scMarsLighthouseHallStepTowardDoorway
void scMarsLighthouseHallStepTowardDoorway(Sint32 state)
Once the lighthouse has thawed, stepping under one of the hall's four arched doorways, two each side of the dragon statue, lights its opening purple with a hum, and stepping to the metatiles beside it fades it out again. The arch under Venus's doorway is metatile (18, 10), Mercury's (9, 11), Mars's (18, 11) and Jupiter's (9, 10); the last doorway lit is put away first.
References fdMapGridCopyMetatilesLayered(), fdScriptPlaySound(), MarsLighthouseHallDoorway, MarsLighthouseHallDoorwayBlendTarget, MarsLighthouseHallDoorwayStep and Sint32.
Referenced by MarsLighthouseHallInscriptionsCues.
Definition at line 550 of file mars_lighthouse_hall.c.
scMarsLighthouseHallTeleportToAerie
void scMarsLighthouseHallTeleportToAerie(void)
Felix casts Teleport on the round carving the dragon statue's fireball uncovered in the floor before it (metatiles (12, 12) to (15, 14)): the screen turns red, sparks swirl round the party, and they arrive on the carved octagon of the Mars Lighthouse Aerie in the storm.
References fdTeleportPlaySparks(), MainRoutineStateWork, scFieldCloseEvent(), scFieldScriptSetExitRequest(), scFieldScriptWait(), scMarsLighthouseHallFadeDoorway(), scTeleportStartShimmer() and scTeleportStopShimmer().
Referenced by MarsLighthouseHallInscriptionsCues.
Definition at line 671 of file mars_lighthouse_hall.c.
scGetCues
const CUE *scGetCues(void)
References MainRoutineStateWork, MarsLighthouseHallCues, MarsLighthouseHallFlameCues, MarsLighthouseHallInscriptionsCues and MarsLighthouseHallLedgesCues.
Definition at line 682 of file mars_lighthouse_hall.c.
scInit
Sint32 scInit(void)
References Call1(), fdActorGet(), fdActorLaunchAhead(), fdCameraWaitForArrival(), fdEffectStartBlankOverlay(), fdMapGridCopyMetatileAttributes(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdScriptEnd(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), gmPlayMusic(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), scMarsLighthouseHallBreakFloorTile(), scPaletteSetColorsFade(), scScriptMessageShowCentered(), Sint32, sySoundWaitForBGMRestore(), sySynch(), TeleportCircleColors, TeleportCirclePaletteSlots, TeleportCircleShimmerColors and TeleportCircleShimmerSlots.
Definition at line 708 of file mars_lighthouse_hall.c.
scMarsLighthouseHallStartRainWave
static __inline__ void scMarsLighthouseHallStartRainWave(Sint32 mode, FIXED frequencyX, Sint32 stepX, FIXED ampX, FIXED frequencyY, Sint32 stepY, FIXED ampY)
The line scroll's wave across and down that the rain ledges start with the rain.
References fdLineScrollInitWave() and Sint32.
Referenced by scPrepareMap().
Definition at line 809 of file mars_lighthouse_hall.c.
scPrepareMap
Sint32 scPrepareMap(void)
References fdActorGet(), fdMapCopyPalette(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesLayered(), fdScriptGetFlag(), fdTilesetAnimationResume(), fdWeatherStartRain(), MainRoutineStateWork, scFieldActorSetSpriteColor(), scFieldSetTickEvent(), scFlameThrowersCreate(), scMarsLighthouseHallCycleHallInscriptions(), scMarsLighthouseHallCycleLedgeInscription(), scMarsLighthouseHallShowFlame(), scMarsLighthouseHallStartDoorways(), scMarsLighthouseHallStartRainWave() and Sint32.
Definition at line 821 of file mars_lighthouse_hall.c.
scMarsLighthouseHallReadEarthInscription
void scMarsLighthouseHallReadEarthInscription(void)
Felix reads the inscription on the hall's gallery east of the dragon statue's head: the screen turns yellow-green and "Mankind... With the power of wisdom, they ruled the earth." appears across it.
References fdPaletteFadeApplySource(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), scScriptMessageShowCentered(), Sint32 and sySynch().
Referenced by MarsLighthouseHallInscriptionsCues.
Definition at line 937 of file mars_lighthouse_hall.c.
scMarsLighthouseHallReadWaterInscription
void scMarsLighthouseHallReadWaterInscription(void)
Felix reads the inscription on the hall's floor west of the dragon statue's chin: the screen turns yellow-green and "Fish... With cold courage, they ruled the water." appears across it.
References fdPaletteFadeApplySource(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), scScriptMessageShowCentered(), Sint32 and sySynch().
Referenced by MarsLighthouseHallInscriptionsCues.
Definition at line 960 of file mars_lighthouse_hall.c.
scMarsLighthouseHallReadFireInscription
void scMarsLighthouseHallReadFireInscription(void)
Felix reads the inscription on the hall's floor east of the dragon statue's chin: the screen turns yellow-green and "Dragons... Burning with might, they ruled the fires." appears across it.
References fdPaletteFadeApplySource(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), scScriptMessageShowCentered(), Sint32 and sySynch().
Referenced by MarsLighthouseHallInscriptionsCues.
Definition at line 983 of file mars_lighthouse_hall.c.
scMarsLighthouseHallReadWindInscription
void scMarsLighthouseHallReadWindInscription(void)
Felix reads the inscription on the hall's gallery west of the dragon statue's head: the screen turns yellow-green and "Bird... On the wings of truth, they ruled the winds." appears across it.
References fdPaletteFadeApplySource(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), scScriptMessageShowCentered(), Sint32 and sySynch().
Referenced by MarsLighthouseHallInscriptionsCues.
Definition at line 1006 of file mars_lighthouse_hall.c.
scMarsLighthouseHallHearDragonStatue
void scMarsLighthouseHallHearDragonStatue(void)
The great dragon statue at the head of the hall speaks as Felix steps in from the stairs (metatiles (11, 16) to (16, 16)): the camera rises to it and the screen turns yellow-green. Without the Mars Star it says "If you do not hold the star, you shall not ascend to the heavens... Begone!", once. With the star it bids the party set the four spirits aflame and the gallery's four doorways flash, after which it speaks no more; in every edition but the Japanese it waits for the lighthouse to have thawed as well.
References fdCameraWaitForArrival(), fdPaletteFadeApplySource(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), gmPartyInventoryFindMember(), scFieldScriptWait(), scMarsLighthouseHallFlashDoorways(), scScriptMessageShowCentered(), Sint32 and sySynch().
Referenced by MarsLighthouseHallInscriptionsCues.
Definition at line 1085 of file mars_lighthouse_hall.c.
scFlameThrowerSendForward
void scFlameThrowerSendForward(VECTOR3 *pos, Sint32 speed, Sint32 offScreen)
A flame thrower's flame (FLAME_FORWARD), sent south from pos at speed
(scFlameUpdateForward); offScreen keeps its sprite's picture loaded out of
sight.
References fdActorSelectAnimation(), scActorResetScriptedFor(), scFieldActorCreate(), scFlameUpdateForward() and Sint32.
Referenced by scFlameThrowersPuff().
Definition at line 1177 of file mars_lighthouse_hall.c.
scFlameThrowerSendBackward
void scFlameThrowerSendBackward(VECTOR3 *pos, Sint32 speed, Sint32 offScreen)
A flame thrower's flame (FLAME_BACKWARD), sent north from pos at speed
(scFlameUpdateForward); offScreen keeps its sprite's picture loaded out of
sight.
References fdActorSelectAnimation(), scActorSetupScriptedPart(), scFieldActorCreate(), scFlameUpdateForward() and Sint32.
Referenced by scFlameThrowersPuff().
Definition at line 1204 of file mars_lighthouse_hall.c.
scFlameThrowerSendEast
void scFlameThrowerSendEast(VECTOR3 *pos, Sint32 speed, Sint32 offScreen)
A flame thrower's flame (FLAME_EAST), sent east from pos at speed
(scFlameUpdateSideways); offScreen keeps its sprite's picture loaded out of
sight.
References fdActorSelectAnimation(), scActorSetupScriptedPart(), scFieldActorCreate(), scFlameUpdateSideways() and Sint32.
Referenced by scFlameThrowersPuff().
Definition at line 1225 of file mars_lighthouse_hall.c.
scFlameThrowerSendWest
void scFlameThrowerSendWest(VECTOR3 *pos, Sint32 speed, Sint32 offScreen)
A flame thrower's flame (FLAME_WEST), sent west from pos at speed
(scFlameUpdateSideways); offScreen keeps its sprite's picture loaded out of
sight.
References fdActorSelectAnimation(), scActorSetupScriptedPart(), scFieldActorCreate(), scFlameUpdateSideways() and Sint32.
Referenced by scFlameThrowersPuff().
Definition at line 1246 of file mars_lighthouse_hall.c.
scFlameThrowerSendSpark
void scFlameThrowerSendSpark(VECTOR3 *pos, Sint32 speed, Sint32 offScreen)
A spark puffed from a flame thrower, drifting off in a random direction.
References fdActorSetBlendMode(), scActorSetupScripted(), scFieldActorCreate(), scFlameThrowerUpdateSpark(), Sint32, syCos() and syRandom().
Referenced by scFlameThrowersPuff().
Definition at line 1269 of file mars_lighthouse_hall.c.
scFlameThrowersSetMode
void scFlameThrowersSetMode(Sint16 value)
Sets whether the flame throwers keep puffing while Psynergy is used.
Referenced by scInit().
Definition at line 1296 of file mars_lighthouse_hall.c.
scFlameThrowersGetCounter
Sint32 scFlameThrowersGetCounter(void)
The flame throwers' counter, which scFlameThrowersAdvanceCounter steps.
References Sint32.
Definition at line 1307 of file mars_lighthouse_hall.c.
scMarsLighthouseHallKnockBackIfHit
void scMarsLighthouseHallKnockBackIfHit(void)
Hit by the flames, the leader is knocked back.
References fdLeaderKnockBack().
Definition at line 1325 of file mars_lighthouse_hall.c.
scFlameThrowersHasHitLeader
Sint32 scFlameThrowersHasHitLeader(void)
Whether a flame or fireball has hit the leader.
References Sint32.
Referenced by scMarsLighthouseEntranceStopSlideWhileRiding() and scMarsLighthouseTowersStopSlideWhileHit().
Definition at line 1406 of file mars_lighthouse_hall.c.
Variables in detail
MarsLighthouseHallTorchScript
extern Sint32 MarsLighthouseHallTorchScript[]
Sint32 MarsLighthouseHallTorchScript[]
References scMarsLighthouseHallSetUpTorch() and Sint32.
Referenced by MarsLighthouseHallFlamePlacements.
Definition at lines 181 and 1428 of file mars_lighthouse_hall.c.
PaletteCycleBright
Uint16 PaletteCycleBright
The teleport circle's shimmer, a palette cycle that fdPaletteCycleFade steps.
Referenced by fdPaletteCycleFade(), scTeleportStartFastShimmer() and scTeleportStartShimmer().
Definition at line 192 of file mars_lighthouse_hall.c.
PaletteCycleTimer
Uint16 PaletteCycleTimer
Referenced by fdPaletteCycleFade(), scTeleportStartFastShimmer() and scTeleportStartShimmer().
Definition at line 194 of file mars_lighthouse_hall.c.
PaletteCycleDelay
Uint16 PaletteCycleDelay
Referenced by fdPaletteCycleFade(), scTeleportStartFastShimmer() and scTeleportStartShimmer().
Definition at line 195 of file mars_lighthouse_hall.c.
MarsLighthouseHallLedgePalette
Uint16 MarsLighthouseHallLedgePalette[2 * PALETTE_COLORS]
Referenced by scMarsLighthouseHallCycleLedgeInscription().
Definition at line 205 of file mars_lighthouse_hall.c.
MarsLighthouseHallLedgeSavedPalette
Uint16 MarsLighthouseHallLedgeSavedPalette[PALETTE_COLORS]
Referenced by scMarsLighthouseHallCycleLedgeInscription().
Definition at line 206 of file mars_lighthouse_hall.c.
MarsLighthouseHallHallElementColors
HALL_COL MarsLighthouseHallHallElementColors
Referenced by scMarsLighthouseHallCycleHallInscriptions().
Definition at line 207 of file mars_lighthouse_hall.c.
MarsLighthouseHallHallPalette
HALL_COL MarsLighthouseHallHallPalette
Referenced by scMarsLighthouseHallCycleHallInscriptions().
Definition at line 208 of file mars_lighthouse_hall.c.
MarsLighthouseHallHallSavedPalette
Uint16 MarsLighthouseHallHallSavedPalette[10]
BG palette 2's first ten colours; it is saved whole, with the unlit inscription colours after them.
Referenced by scMarsLighthouseHallCycleHallInscriptions().
Definition at line 211 of file mars_lighthouse_hall.c.
MarsLighthouseHallUnlitInscriptionColors
Uint16 MarsLighthouseHallUnlitInscriptionColors[6]
Referenced by scMarsLighthouseHallCycleHallInscriptions().
Definition at line 212 of file mars_lighthouse_hall.c.
MarsLighthouseHallDoorwayBlend
Sint16 MarsLighthouseHallDoorwayBlend
Referenced by scMarsLighthouseHallFadeDoorway() and scMarsLighthouseHallStartDoorways().
Definition at line 213 of file mars_lighthouse_hall.c.
MarsLighthouseHallDoorwayBlendTarget
Sint16 MarsLighthouseHallDoorwayBlendTarget
Referenced by scMarsLighthouseHallFadeDoorway(), scMarsLighthouseHallFlashDoorways(), scMarsLighthouseHallStartDoorways() and scMarsLighthouseHallStepTowardDoorway().
Definition at line 214 of file mars_lighthouse_hall.c.
MarsLighthouseHallDoorway
Sint16 MarsLighthouseHallDoorway
Referenced by scMarsLighthouseHallFadeDoorway(), scMarsLighthouseHallStartDoorways() and scMarsLighthouseHallStepTowardDoorway().
Definition at line 215 of file mars_lighthouse_hall.c.
MarsLighthouseHallDoorwayStep
Sint16 MarsLighthouseHallDoorwayStep
Referenced by scMarsLighthouseHallStartDoorways() and scMarsLighthouseHallStepTowardDoorway().
Definition at line 216 of file mars_lighthouse_hall.c.
MarsLighthouseHallPlacements
extern ACTOR_PLACE MarsLighthouseHallPlacements[]
ACTOR_PLACE MarsLighthouseHallPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 262 and 1503 of file mars_lighthouse_hall.c.
MarsLighthouseHallFlamePlacements
extern ACTOR_PLACE MarsLighthouseHallFlamePlacements[]
ACTOR_PLACE MarsLighthouseHallFlamePlacements[]
References MarsLighthouseHallTorchScript and Sint32.
Referenced by scGetActorPlacements().
Definition at lines 263 and 1507 of file mars_lighthouse_hall.c.
MarsLighthouseHallInscriptionsPlacements
extern ACTOR_PLACE MarsLighthouseHallInscriptionsPlacements[]
ACTOR_PLACE MarsLighthouseHallInscriptionsPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 264 and 1521 of file mars_lighthouse_hall.c.
MarsLighthouseHallCues
extern CUE MarsLighthouseHallCues[]
CUE MarsLighthouseHallCues[]
Referenced by scGetCues().
Definition at lines 266 and 1550 of file mars_lighthouse_hall.c.
MarsLighthouseHallFlameCues
extern CUE MarsLighthouseHallFlameCues[]
CUE MarsLighthouseHallFlameCues[]
References scMarsLighthouseHallLeaveLedge(), scMarsLighthouseHallLightFlame(), scMarsLighthouseHallStartBlazeOnTorch() and scMarsLighthouseHallWatchBlazeReachFlame().
Referenced by scGetCues().
Definition at lines 267 and 1557 of file mars_lighthouse_hall.c.
MarsLighthouseHallInscriptionsCues
extern CUE MarsLighthouseHallInscriptionsCues[]
CUE MarsLighthouseHallInscriptionsCues[]
References scMarsLighthouseHallHearDragonStatue(), scMarsLighthouseHallReadEarthInscription(), scMarsLighthouseHallReadFireInscription(), scMarsLighthouseHallReadWaterInscription(), scMarsLighthouseHallReadWindInscription(), scMarsLighthouseHallStepTowardDoorway() and scMarsLighthouseHallTeleportToAerie().
Referenced by scGetCues().
Definition at lines 268 and 1572 of file mars_lighthouse_hall.c.
MarsLighthouseHallLedgesCues
extern CUE MarsLighthouseHallLedgesCues[]
CUE MarsLighthouseHallLedgesCues[]
Referenced by scGetCues().
Definition at lines 269 and 1617 of file mars_lighthouse_hall.c.
MarsLighthouseHallFlamePuffSwellScript
extern Sint32 MarsLighthouseHallFlamePuffSwellScript[]
Sint32 MarsLighthouseHallFlamePuffSwellScript[]
References Sint32.
Referenced by scMarsLighthouseHallSpawnFlamePuff().
Definition at lines 270 and 1623 of file mars_lighthouse_hall.c.
MarsLighthouseHallFlamePuffThrownScript
extern Sint32 MarsLighthouseHallFlamePuffThrownScript[]
Sint32 MarsLighthouseHallFlamePuffThrownScript[]
References Sint32.
Referenced by scMarsLighthouseHallSpawnFlamePuff().
Definition at lines 271 and 1640 of file mars_lighthouse_hall.c.
MarsLighthouseHallLedgeCycleTick
extern Sint32 MarsLighthouseHallLedgeCycleTick
Sint32 MarsLighthouseHallLedgeCycleTick
The beacon ledge inscription's glow, in ticks; -1 before it starts.
References Sint32.
Referenced by scMarsLighthouseHallCycleLedgeInscription().
Definition at lines 295 and 1555 of file mars_lighthouse_hall.c.
MarsLighthouseHallHallCycleTick
extern Sint32 MarsLighthouseHallHallCycleTick
Sint32 MarsLighthouseHallHallCycleTick
The hall inscriptions' glow, in ticks; -1 before it starts.
References Sint32.
Referenced by scMarsLighthouseHallCycleHallInscriptions().
Definition at lines 431 and 1570 of file mars_lighthouse_hall.c.
SceneEntrances
SCENE_ENTRANCE SceneEntrances[]
Referenced by scGetEntrances().
Definition at line 1439 of file mars_lighthouse_hall.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 1444 of file mars_lighthouse_hall.c.