src/scene/jupiter_lighthouse_locked_doors.c
The level of Jupiter Lighthouse above its central room, with the red and blue locked doors that lead out to the two towers. More…
#include "item_ids.h"#include "field/field_engine.h"#include "game/game.h"#include "field/field_effect.h"#include "field/script_inline.h"#include "macros.h"#include "scene/scene.h"#include "field/call.h"#include "field/metatile_target.h"#include "field/actor_script.h"#include "text/msg_ids.h"#include "window/window.h"#include "scene/lighthouse_palettes.h"#include "shared/scene_set_arrival_flags.c"#include "shared/palette_cycle_set_pauses_in_scripts.c"#include "shared/palette_cycle_step.c"#include "shared/jupiter_lighthouse_load_palettes.c"#include "shared/actor_raise_from_metatile.c"#include "shared/whirlwind_carry_leader.c"#include "shared/position_flat_distance.c"#include "shared/whirlwind_update.c"#include "shared/whirlwind_spawn.c"#include "shared/actor_emit_smoke.c"#include "shared/jupiter_lighthouse_place_raised_actors.c"#include "shared/light_sprites_draw.c"#include "shared/light_sprites_init_channel_pieces.c"#include "shared/light_sprites_init_path_glows.c"#include "shared/light_sprites_init_energy_block_glow.c"#include "shared/light_sprites_add.c"#include "shared/actor_set_sprite_priority.c"#include "shared/field_effect_duration_scripts.c"#include "shared/scene_entrances_default.c"#include "../field/field_effect_move.c"#include "shared/field_effect_spawn.c"#include "shared/cracked_tile_mask.c"#include "shared/cracked_tile_find.c"#include "shared/leader_center_in_metatile.c"#include "shared/cracked_tile_crack.c"#include "shared/cracked_tile_fall.c"#include "../field/field_effect_advance_motion.c"#include "shared/cracked_tile_drop_in.c"#include "shared/cracked_tile_step.c"#include "shared/cracked_tile_place_landing.c"
Macros
| Name | Description | |
|---|---|---|
#define | OWN_fdMapGridGetMetatileBehavior | This file declares fdMapGridGetMetatileBehavior its own way, below. |
#define | FLAG_RED_DOOR_OPENED 0xa07 | Set as each locked door opens to its key. |
#define | FLAG_BLUE_DOOR_OPENED 0xa08 | |
#define | FLAG_BRIDGE_BLOCK_RAISED 0xa06 | Set once Move has set the bridge block on its metatile, where it rises to bridge the gap. |
#define | BEAM_RISE_MAX_STEPS 90 | The most steps the beam lifts the party, 3 pixels each; the floor stops it first. |
#define | BEAM_LIGHT_FADE_STEP 38 | The step at which a beam light starts to fade, 6 pixels below the floor. |
#define | EFFECT_SET_MODE fdActorSelectAnimation | |
#define | EFFECT_SET_SCRIPT fdActorStartScript | |
#define | METATILE_PUSH_SLOT_ENTRY syOAMAddSpriteAtDepthClamped |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { BRIDGE_BLOCK_METATILE_X, BRIDGE_BLOCK_METATILE_Z } | The bridge block's metatile, at the west end of the row of hovering blocks round the beam, where it rises into line with them. |
enum | JUPITER_LIGHTHOUSE_LOCKED_DOORS_METATILE_BEHAVIOR { METATILE_BEHAVIOR_RED_DOOR, METATILE_BEHAVIOR_BLUE_DOOR, MET … } | The level's own metatile behaviors. |
enum | JUPITER_LIGHTHOUSE_LOCKED_DOORS_WAY { WAY_STAIRS_ROOM_WEST_TO_RED_DOOR, WAY_RED_DOOR_TO_STAIRS_ROO … } | The ways between the level's rooms. |
enum | JUPITER_LIGHTHOUSE_LOCKED_DOORS_ACTOR_ID { ACTOR_FIRST_BACK_ROOM_BLOCK, ACTOR_HIDDEN_BLOCK, ACTOR_BRIDG … } | The level's blocks, numbering the rows of ActorPlacements. |
enum | anonymous enum { BEAM_X, BEAM_Z, BEAM_DEPTH } | The beam of light from the room below: where it stands, and how far below the floor its lights, and the party it carries up, start rising. |
Functions
| Name | Description | |
|---|---|---|
void | scActorRaiseFromMetatile (Sint32 id) | Lifts an actor 32 pixels over its ground as a platform others may stand on, and raises the map metatile under it six height steps to match. |
void | scJupiterLighthouseHideThePassage (void) | As Reveal wears off, and on entering the level: the hidden floor and the hidden block vanish again. |
void | scJupiterLighthouseLeaveByRedDoorCyclone (void) | Felix casts Cyclone on the purple teleporter pad in front of the red door, metatile (9, 22): the party goes back down to the south hall below, by its west side. |
void | scJupiterLighthouseLeaveByBlueDoorCyclone (void) | Felix casts Cyclone on the purple teleporter pad in front of the blue door, metatile (41, 22): the party goes back down to the south hall below, by its east side. |
void | scJupiterLighthouseTryLockedDoor (void) | Felix checks the red or the blue door before it is open: "The door's locked." |
void | scLightSpritesInitChannelPieces (void) | Unused: loads Gabomba Statue's channel pieces (FieldChannelPieceTiles) into VRAM as the glow pictures and starts drawing the lit actors (none yet), small, each at its own priority. |
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 | scJupiterLighthouseRevealThePassage (void) | Felix casts Reveal in the room at the back: a hidden stretch of floor shows at metatile (19, 10), and he can jump across the gap there. |
void | scJupiterLighthouseStartMovingBlock (Sint32 unused, Sint32 id) | Nothing visible happens as Move takes hold of the grey block in the pit west of the beam's row; its sprite's drawing order is set (fdActorSetSpritePriority) for the slide. |
void | scJupiterLighthouseFinishMovingBlock (Sint32 unused, Sint32 id) | The grey block in the pit west of the beam's row, Moved one metatile east to metatile (10, 32), rises out of the pit and hovers there for good in line with the others, a step for Felix on the way to the Potion's chest. |
void | scJupiterLighthouseOpenRedDoor (void) | Shows the red door at metatile (10, 20) open and lets the party through it. |
void | scJupiterLighthouseOpenBlueDoor (void) | Shows the blue door at metatile (40, 20) open and lets the party through it. |
void | scJupiterLighthouseUseRedKey (Sint32 item) | Felix uses the Red Key at the red door, metatile (10, 20), north of the teleporter pad: the door opens with a heavy thud and the key is gone. |
void | scJupiterLighthouseUseBlueKey (Sint32 item) | Felix uses the Blue Key at the blue door, metatile (40, 20), north of the teleporter pad: the door opens with a heavy thud and the key is gone. |
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 | scJupiterLighthouseCircleUpTheBeam (ACTOR *actor) | A light's step up the beam: it circles the beam at its angle (beamAngle) and radius and rises 3 pixels with each step (beamClimb), twinkling from its first step and fading near the floor, and starts over once above it; drawn in front of the beam while the sine is negative and behind it otherwise. |
void | scJupiterLighthouseSendUpBeamLights (void) | Sends seven lights circling up the beam, each at its own radius, speed and angle and five steps of rise apart. |
Sint32 | scInit (void) | Sets up the level as the party enters: the hidden floor hidden, each opened door open, the lights sent up the beam, and Felix, come from the central room, carried spinning up the beam to land among the hovering blocks, or, come by Cyclone from the south hall, arriving in a ring. |
Sint32 | scPrepareMap (void) | Sets the scene's arrival flags and loads the lighthouse's palettes; lets Felix walk onto the blocks, raises them once the lighthouse is activated, and puts the bridge block back in line. |
void | syGameFlagSetByte (Sint32 flag, Sint32 value) | Sets the whole byte flags is in. |
static inline void | scPaletteCycleSetTick (Sint32 value) | Restarts the palette cycle at the given tick. |
Sint32 | fdMapGridGetMetatileBehavior (Sint32 x, Sint32 z, Sint32 layer) | These rooms read the metatile behavior back as a whole Sint32; the field defines it returning a Uint8. |
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 | scLightSpritesSetPriority (Sint32 value) | Sets the priority the lit actors' sprites are drawn at. |
void | scLeaderCenterInMetatile (void) | Walks the leader to the middle of the metatile he stands on, as he does before dropping through a cracked tile, sets him there and lowers the camera's point 8 pixels. |
void | scCrackedTileCrack (METATILE_TARGET *table, METATILE_TARGET_ENTRY *entry) | Cracks the tile under the leader, swapping in its cracked picture. |
Variables
| Name | Description | |
|---|---|---|
Sint32 | WhirlwindRiding | The state of the code every Jupiter Lighthouse room's overlay keeps its own copy of: a whirlwind's ride (shared/whirlwind_*.c), the palette cycle (shared/palette_cycle_step.c), the lit actors' sprites (shared/light_sprites_*.c) and the cracked tiles (shared/cracked_tile_*.c). |
Uint16 | PaletteCycleColors [16] | A copy of the room's cycling palette, BG palette CYCLE_PALETTE, which the cycle takes its colours from (scJupiterLighthouseLoadPalettes). |
Uint16 | PaletteCycleUnlitPalette [2] | Palette 13's first two colors; it is copied whole, with the unlit colors after them. |
Uint16 | PaletteCycleUnlitColors [14] | |
Sint16 | LightSpriteTile | The glows drawn over the symbol blocks (scLightSpritesDraw): the VRAM cache entry of their tiles, how many actors carry one and which, their sprites, the large mode, the priority (-1 for each actor's own) and the picture row. |
Sint16 | LightSpriteCount | |
LIGHT_OAM | LightSpriteOams [16] | |
Sint16 | LightSpritesLarge | |
Sint16 | LightSpritePriority | |
METATILE_TARGET | CrackedTiles | The metatiles scCrackedTileStep watches, and the metatile it copies over the one the leader steps on. |
extern Sint32 | PaletteCyclePausesInScripts | |
extern Sint32 | PaletteCycleTick | The palette cycle's tick, -1 before it starts, and whether scripts hold it (fdPaletteCycleStep). |
extern Sint32 | WhirlwindEndScript [] | |
extern Uint32 | FieldEffectShortScript [] | |
extern Uint32 | FieldEffectMediumScript [] | The flash about the Tomegathericon: held 45 ticks, then put away and freed. |
Uint32 | SceneExits [] | The room has no exits of its own. |
ACTOR_PLACE | ActorPlacements [] | The room's people: the party's four rows, then PSYNERGY_TEST_ACTOR_ID's. |
CUE | SceneCues [] | The room's scripts: talking to its people, Mind Read on them, the metatiles examined, and the field Psynergy each spot answers. |
const Sint32 * | FieldEffectDurationScripts [] | The field effects' three scripts by how long an effect lasts: short, medium and long. |
Description
The level of Jupiter Lighthouse above its central room, with the red and blue
locked doors that lead out to the two towers. Felix first comes up here by
the Cyclone teleporter in front of the red door, at metatile (9, 22), and the
Red Key opens it (scJupiterLighthouseUseRedKey); the teleporter in front of
the blue door, at metatile (41, 22), only takes him back down
(scJupiterLighthouseLeaveByRedDoorCyclone,
scJupiterLighthouseLeaveByBlueDoorCyclone), and the Blue Key opens that door
(scJupiterLighthouseUseBlueKey). In the room at the back, Reveal shows the
hidden floor across to the jumping puzzle room, and once the lighthouse is
activated a hidden block among six hovering ones, the way to the Psy Crystal
(scJupiterLighthouseRevealThePassage). Further south, the beam of light from
the central room rises through the floor, lights circling up it
(scJupiterLighthouseSendUpBeamLights), and brings Felix up among a row of
hovering blocks; the grey block in the pit west of them, Moved one metatile
east, rises into line with the row, the way to the Potion's chest
(scJupiterLighthouseFinishMovingBlock).
Macros in detail
OWN_fdMapGridGetMetatileBehavior
#define OWN_fdMapGridGetMetatileBehavior
This file declares fdMapGridGetMetatileBehavior its own way, below.
Definition at line 19 of file jupiter_lighthouse_locked_doors.c.
FLAG_RED_DOOR_OPENED
#define FLAG_RED_DOOR_OPENED 0xa07
Set as each locked door opens to its key.
Referenced by SceneCues, scInit() and scJupiterLighthouseUseRedKey().
Definition at line 36 of file jupiter_lighthouse_locked_doors.c.
FLAG_BLUE_DOOR_OPENED
#define FLAG_BLUE_DOOR_OPENED 0xa08
Referenced by SceneCues, scInit() and scJupiterLighthouseUseBlueKey().
Definition at line 37 of file jupiter_lighthouse_locked_doors.c.
FLAG_BRIDGE_BLOCK_RAISED
#define FLAG_BRIDGE_BLOCK_RAISED 0xa06
Set once Move has set the bridge block on its metatile, where it rises to bridge the gap.
Referenced by scJupiterLighthouseFinishMovingBlock() and scPrepareMap().
Definition at line 40 of file jupiter_lighthouse_locked_doors.c.
BEAM_RISE_MAX_STEPS
#define BEAM_RISE_MAX_STEPS 90
The most steps the beam lifts the party, 3 pixels each; the floor stops it first.
Referenced by scInit().
Definition at line 119 of file jupiter_lighthouse_locked_doors.c.
BEAM_LIGHT_FADE_STEP
#define BEAM_LIGHT_FADE_STEP 38
The step at which a beam light starts to fade, 6 pixels below the floor.
Referenced by scJupiterLighthouseCircleUpTheBeam().
Definition at line 121 of file jupiter_lighthouse_locked_doors.c.
EFFECT_SET_MODE
#define EFFECT_SET_MODE fdActorSelectAnimation
Referenced by EFFECT_SPAWN.
Definition at line 673 of file jupiter_lighthouse_locked_doors.c.
EFFECT_SET_SCRIPT
#define EFFECT_SET_SCRIPT fdActorStartScript
Referenced by EFFECT_SPAWN.
Definition at line 674 of file jupiter_lighthouse_locked_doors.c.
METATILE_PUSH_SLOT_ENTRY
#define METATILE_PUSH_SLOT_ENTRY syOAMAddSpriteAtDepthClamped
Referenced by scCrackedTileUpdate().
Definition at line 677 of file jupiter_lighthouse_locked_doors.c.
Enumerations in detail
anonymous enum
enum { BRIDGE_BLOCK_METATILE_X, BRIDGE_BLOCK_METATILE_Z }
The bridge block's metatile, at the west end of the row of hovering blocks round the beam, where it rises into line with them.
| Enumerator | Value | Description |
|---|---|---|
BRIDGE_BLOCK_METATILE_X | 10 | |
BRIDGE_BLOCK_METATILE_Z | 32 |
Definition at line 44 of file jupiter_lighthouse_locked_doors.c.
JUPITER_LIGHTHOUSE_LOCKED_DOORS_METATILE_BEHAVIOR
enum JUPITER_LIGHTHOUSE_LOCKED_DOORS_METATILE_BEHAVIOR
The level's own metatile behaviors.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_RED_DOOR | 20 | metatile (10, 20) |
METATILE_BEHAVIOR_BLUE_DOOR | 21 | metatile (40, 20) |
METATILE_BEHAVIOR_RED_DOOR_TELEPORTER | 40 | pad in front of the red door, metatile (9, 22) |
METATILE_BEHAVIOR_BLUE_DOOR_TELEPORTER | pad in front of the blue door, metatile (41, 22) |
Definition at line 51 of file jupiter_lighthouse_locked_doors.c.
JUPITER_LIGHTHOUSE_LOCKED_DOORS_WAY
enum JUPITER_LIGHTHOUSE_LOCKED_DOORS_WAY
The ways between the level's rooms. The room the stairs up from the side halls reach has three arched doorways in its north wall: the west one leads into the hall of the locked doors south of the red door, the east one south of the blue door, and the middle one into the beam's room, at its south-east corner. A way's exit, the metatile that takes it and the entrance at its mouth share its number, so the way back is the entrance the exit leads to.
| Enumerator | Value | Description |
|---|---|---|
WAY_STAIRS_ROOM_WEST_TO_RED_DOOR | 3 | |
WAY_RED_DOOR_TO_STAIRS_ROOM_WEST | ||
WAY_STAIRS_ROOM_TO_BEAM_ROOM | ||
WAY_BEAM_ROOM_TO_STAIRS_ROOM | ||
WAY_STAIRS_ROOM_EAST_TO_BLUE_DOOR | ||
WAY_BLUE_DOOR_TO_STAIRS_ROOM_EAST | ||
WAY_ONTO_BEAM_TOP | 11 | Unused: onto the top of the beam, where riding it up from the central room lands (its entrance, JUPITER_LIGHTHOUSE_LOCKED_DOORS_FROM_JUPITER_LIGHTHOUSE_CENTRAL_ROOM). No metatile of the map takes this exit and no script asks for it. |
Definition at line 67 of file jupiter_lighthouse_locked_doors.c.
JUPITER_LIGHTHOUSE_LOCKED_DOORS_ACTOR_ID
enum JUPITER_LIGHTHOUSE_LOCKED_DOORS_ACTOR_ID
The level's blocks, numbering the rows of ActorPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FIRST_BACK_ROOM_BLOCK | ACTOR_FIRST_PLACED | The first of the six blocks in the room at the back that rise once the lighthouse is activated. |
ACTOR_HIDDEN_BLOCK | ACTOR_FIRST_PLACED + 6 | The block Reveal shows on the hidden passage. |
ACTOR_BRIDGE_BLOCK | The block in the pit west of the beam's row, which Move sets on its metatile to bridge the gap. | |
ACTOR_FIRST_BEAM_ROW_BLOCK | The first of the three in the row round the beam that rise once the lighthouse is activated. | |
ACTOR_BEAM_TOP_BLOCK | ACTOR_FIRST_BEAM_ROW_BLOCK + 3 | The unseen block at the top of the beam of light, (232, 520), in the row of hovering blocks: once the lighthouse is activated, Felix carried up the beam stands on it, nothing drawn under him. |
Definition at line 83 of file jupiter_lighthouse_locked_doors.c.
anonymous enum
enum { BEAM_X, BEAM_Z, BEAM_DEPTH }
The beam of light from the room below: where it stands, and how far below the floor its lights, and the party it carries up, start rising.
| Enumerator | Value | Description |
|---|---|---|
BEAM_X | 232 | |
BEAM_Z | 520 | |
BEAM_DEPTH | 120 |
Definition at line 110 of file jupiter_lighthouse_locked_doors.c.
Functions in detail
scJupiterLighthouseHideThePassage
void scJupiterLighthouseHideThePassage(void)
As Reveal wears off, and on entering the level: the hidden floor and the hidden block vanish again.
References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesLayered().
Referenced by SceneCues and scInit().
Definition at lines 139 and 187 of file jupiter_lighthouse_locked_doors.c.
scJupiterLighthouseLeaveByRedDoorCyclone
void scJupiterLighthouseLeaveByRedDoorCyclone(void)
Felix casts Cyclone on the purple teleporter pad in front of the red door, metatile (9, 22): the party goes back down to the south hall below, by its west side.
References syImportScriptSetExitRequest().
Referenced by SceneCues.
Definition at lines 140 and 230 of file jupiter_lighthouse_locked_doors.c.
scJupiterLighthouseLeaveByBlueDoorCyclone
void scJupiterLighthouseLeaveByBlueDoorCyclone(void)
Felix casts Cyclone on the purple teleporter pad in front of the blue door, metatile (41, 22): the party goes back down to the south hall below, by its east side.
References syImportScriptSetExitRequest().
Referenced by SceneCues.
Definition at lines 141 and 239 of file jupiter_lighthouse_locked_doors.c.
scJupiterLighthouseTryLockedDoor
void scJupiterLighthouseTryLockedDoor(void)
Felix checks the red or the blue door before it is open: "The door's locked."
References mnMessageShowCentered().
Referenced by SceneCues.
Definition at lines 142 and 280 of file jupiter_lighthouse_locked_doors.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 145 of file jupiter_lighthouse_locked_doors.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 150 of file jupiter_lighthouse_locked_doors.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 155 of file jupiter_lighthouse_locked_doors.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References ActorPlacements.
Definition at line 160 of file jupiter_lighthouse_locked_doors.c.
scJupiterLighthouseRevealThePassage
void scJupiterLighthouseRevealThePassage(void)
Felix casts Reveal in the room at the back: a hidden stretch of floor shows at metatile (19, 10), and he can jump across the gap there. Once the lighthouse is activated, Reveal also shows a hidden block hovering at metatile (31, 10), in the middle of the six hovering blocks, which he can jump across too.
References fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesLayered(), fdScriptGetFlag(), scActorRaiseFromMetatile() and scFieldMapGridSetMetatileBehavior().
Referenced by SceneCues.
Definition at line 170 of file jupiter_lighthouse_locked_doors.c.
scJupiterLighthouseStartMovingBlock
void scJupiterLighthouseStartMovingBlock(Sint32 unused, Sint32 id)
Nothing visible happens as Move takes hold of the grey block in the pit west
of the beam's row; its sprite's drawing order is set
(fdActorSetSpritePriority) for the slide.
References fdActorSetSpritePriority() and Sint32.
Referenced by SceneCues.
Definition at line 198 of file jupiter_lighthouse_locked_doors.c.
scJupiterLighthouseFinishMovingBlock
void scJupiterLighthouseFinishMovingBlock(Sint32 unused, Sint32 id)
The grey block in the pit west of the beam's row, Moved one metatile east to metatile (10, 32), rises out of the pit and hovers there for good in line with the others, a step for Felix on the way to the Potion's chest. Moved anywhere else, it stays in the pit.
References fdActorGet(), fdScriptSetFlag(), scActorRaiseFromMetatile(), Sint32 and sySynch().
Referenced by SceneCues.
Definition at line 207 of file jupiter_lighthouse_locked_doors.c.
scJupiterLighthouseOpenRedDoor
void scJupiterLighthouseOpenRedDoor(void)
Shows the red door at metatile (10, 20) open and lets the party through it.
References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesLayered().
Referenced by scInit() and scJupiterLighthouseUseRedKey().
Definition at line 246 of file jupiter_lighthouse_locked_doors.c.
scJupiterLighthouseOpenBlueDoor
void scJupiterLighthouseOpenBlueDoor(void)
Shows the blue door at metatile (40, 20) open and lets the party through it.
References fdMapGridCopyMetatileAttributes() and fdMapGridCopyMetatilesLayered().
Referenced by scInit() and scJupiterLighthouseUseBlueKey().
Definition at line 253 of file jupiter_lighthouse_locked_doors.c.
scJupiterLighthouseUseRedKey
void scJupiterLighthouseUseRedKey(Sint32 item)
Felix uses the Red Key at the red door, metatile (10, 20), north of the teleporter pad: the door opens with a heavy thud and the key is gone.
References fdScriptPlaySound(), fdScriptSetFlag(), gmPartyInventoryRemove(), scJupiterLighthouseOpenRedDoor() and Sint32.
Referenced by SceneCues.
Definition at line 261 of file jupiter_lighthouse_locked_doors.c.
scJupiterLighthouseUseBlueKey
void scJupiterLighthouseUseBlueKey(Sint32 item)
Felix uses the Blue Key at the blue door, metatile (40, 20), north of the teleporter pad: the door opens with a heavy thud and the key is gone.
References fdScriptPlaySound(), fdScriptSetFlag(), gmPartyInventoryRemove(), scJupiterLighthouseOpenBlueDoor() and Sint32.
Referenced by SceneCues.
Definition at line 271 of file jupiter_lighthouse_locked_doors.c.
scGetCues
const CUE *scGetCues(void)
References SceneCues.
Definition at line 289 of file jupiter_lighthouse_locked_doors.c.
scJupiterLighthouseCircleUpTheBeam
void scJupiterLighthouseCircleUpTheBeam(ACTOR *actor)
A light's step up the beam: it circles the beam at its angle (beamAngle) and radius and rises 3 pixels with each step (beamClimb), twinkling from its first step and fading near the floor, and starts over once above it; drawn in front of the beam while the sine is negative and behind it otherwise.
References fdActorSelectAnimation(), syCos() and sySin().
Referenced by scJupiterLighthouseSendUpBeamLights().
Definition at line 298 of file jupiter_lighthouse_locked_doors.c.
scJupiterLighthouseSendUpBeamLights
void scJupiterLighthouseSendUpBeamLights(void)
Sends seven lights circling up the beam, each at its own radius, speed and angle and five steps of rise apart.
References fdActorSetSpriteFlags(), scFieldActorCreate(), scFieldActorSetSpriteColor(), scJupiterLighthouseCircleUpTheBeam(), Sint32 and syRandom().
Referenced by scInit().
Definition at line 324 of file jupiter_lighthouse_locked_doors.c.
scInit
Sint32 scInit(void)
Sets up the level as the party enters: the hidden floor hidden, each opened door open, the lights sent up the beam, and Felix, come from the central room, carried spinning up the beam to land among the hovering blocks, or, come by Cyclone from the south hall, arriving in a ring. Returns 0.
References fdActorAppearInWhirlwind(), fdActorGet(), fdActorSetAnimation(), fdActorSetAnimationSpeed(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptStartScreenTransition(), MainRoutineStateWork, scFieldActorSetSpritePriority(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait(), scJupiterLighthouseHideThePassage(), scJupiterLighthouseOpenBlueDoor(), scJupiterLighthouseOpenRedDoor(), scJupiterLighthouseSendUpBeamLights(), Sint32 and sySynch().
Definition at line 352 of file jupiter_lighthouse_locked_doors.c.
scPrepareMap
Sint32 scPrepareMap(void)
Sets the scene's arrival flags and loads the lighthouse's palettes; lets Felix walk onto the blocks, raises them once the lighthouse is activated, and puts the bridge block back in line. Returns 0.
References fdActorGet(), fdActorSetSpriteFlags(), fdScriptGetFlag(), MainRoutineStateWork, scActorRaiseFromMetatile(), scJupiterLighthouseLoadPalettes(), scSetArrivalFlags() and Sint32.
Definition at line 412 of file jupiter_lighthouse_locked_doors.c.
scPaletteCycleSetTick
static inline void scPaletteCycleSetTick(Sint32 value)
Restarts the palette cycle at the given tick.
References PaletteCycleTick and Sint32.
Referenced by scJupiterLighthouseLoadPalettes() and scTrialRoadStartPaletteCycle().
Definition at line 452 of file jupiter_lighthouse_locked_doors.c.
scLightSpritesSetPriority
void scLightSpritesSetPriority(Sint32 value)
Sets the priority the lit actors' sprites are drawn at.
References LightSpritePriority and Sint32.
Referenced by scInit().
Definition at line 493 of file jupiter_lighthouse_locked_doors.c.
Variables in detail
WhirlwindRiding
Sint32 WhirlwindRiding
References Sint32.
Referenced by scInit(), scJupiterLighthouseRaiseUpperWhirlwind(), scJupiterLighthouseRaiseWhirlwind(), scJupiterLighthouseRideUpperWhirlwind(), scJupiterLighthouseRideWhirlwind() and scWhirlwindUpdate().
Definition at line 124 of file jupiter_lighthouse_locked_doors.c.
PaletteCycleColors
Uint16 PaletteCycleColors[16]
Referenced by fdPaletteCycleFade(), fdPaletteCycleStep(), scJupiterLighthouseLoadPalettes() and scPaletteSetColorsFade().
Definition at line 125 of file jupiter_lighthouse_locked_doors.c.
PaletteCycleUnlitPalette
Uint16 PaletteCycleUnlitPalette[2]
Palette 13's first two colors; it is copied whole, with the unlit colors after them.
Referenced by scJupiterLighthouseLoadPalettes().
Definition at line 128 of file jupiter_lighthouse_locked_doors.c.
PaletteCycleUnlitColors
Uint16 PaletteCycleUnlitColors[14]
Referenced by scJupiterLighthouseLoadPalettes().
Definition at line 129 of file jupiter_lighthouse_locked_doors.c.
LightSpriteTile
Sint16 LightSpriteTile
Referenced by scAnemosInnerSanctumDullahanStartLightSprites(), scLightSpritesDraw(), scLightSpritesInitChannelPieces(), scLightSpritesInitEnergyBlockGlow() and scLightSpritesInitPathGlows().
Definition at line 130 of file jupiter_lighthouse_locked_doors.c.
LightSpriteCount
Sint16 LightSpriteCount
Referenced by scAnemosInnerSanctumDullahanStartLightSprites(), scLightSpritesAdd(), scLightSpritesAddCounted(), scLightSpritesDraw(), scLightSpritesInitChannelPieces(), scLightSpritesInitEnergyBlockGlow() and scLightSpritesInitPathGlows().
Definition at line 131 of file jupiter_lighthouse_locked_doors.c.
LightSpriteOams
LIGHT_OAM LightSpriteOams[16]
Referenced by scLightSpritesDraw().
Definition at line 133 of file jupiter_lighthouse_locked_doors.c.
LightSpritesLarge
Sint16 LightSpritesLarge
Referenced by scAnemosInnerSanctumDullahanStartLightSprites(), scLightSpritesDraw(), scLightSpritesInitChannelPieces(), scLightSpritesInitEnergyBlockGlow() and scLightSpritesInitPathGlows().
Definition at line 134 of file jupiter_lighthouse_locked_doors.c.
LightSpritePriority
Sint16 LightSpritePriority
Referenced by scAnemosInnerSanctumDullahanSetLightPriority(), scAnemosInnerSanctumDullahanStartLightSprites(), scLightSpritesDraw(), scLightSpritesInitChannelPieces(), scLightSpritesInitEnergyBlockGlow(), scLightSpritesInitPathGlows() and scLightSpritesSetPriority().
Definition at line 135 of file jupiter_lighthouse_locked_doors.c.
CrackedTiles
METATILE_TARGET CrackedTiles
The metatiles scCrackedTileStep watches, and the metatile it copies over the
one the leader steps on.
Referenced by scCrackedTileFind(), scCrackedTilePlaceLanding(), scCrackedTileStep() and scCrackedTileUpdate().
Definition at line 138 of file jupiter_lighthouse_locked_doors.c.
PaletteCyclePausesInScripts
extern Sint32 PaletteCyclePausesInScripts
Sint32 PaletteCyclePausesInScripts
References Sint32.
Referenced by fdPaletteCycleStep(), scJupiterLighthouseLoadPalettes() and scPaletteCycleSetPausesInScripts().
Definition at lines 445 and 647 of file jupiter_lighthouse_locked_doors.c.
PaletteCycleTick
extern Sint32 PaletteCycleTick
Sint32 PaletteCycleTick
References Sint32.
Referenced by fdPaletteCycleStep() and scPaletteCycleSetTick().
Definition at lines 449 and 645 of file jupiter_lighthouse_locked_doors.c.
WhirlwindEndScript
extern Sint32 WhirlwindEndScript[]
Sint32 WhirlwindEndScript[]
References Sint32.
Referenced by scWhirlwindUpdate().
Definition at lines 463 and 649 of file jupiter_lighthouse_locked_doors.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 508 of file jupiter_lighthouse_locked_doors.c.
ActorPlacements
ACTOR_PLACE ActorPlacements[]
Referenced by scGetActorPlacements().
Definition at line 546 of file jupiter_lighthouse_locked_doors.c.
SceneCues
CUE SceneCues[]
References scJupiterLighthouseFinishMovingBlock(), scJupiterLighthouseHideThePassage(), scJupiterLighthouseLeaveByBlueDoorCyclone(), scJupiterLighthouseLeaveByRedDoorCyclone(), scJupiterLighthouseRevealThePassage(), scJupiterLighthouseStartMovingBlock(), scJupiterLighthouseTryLockedDoor(), scJupiterLighthouseUseBlueKey() and scJupiterLighthouseUseRedKey().
Referenced by scGetCues().
Definition at line 583 of file jupiter_lighthouse_locked_doors.c.
FieldEffectDurationScripts
const Sint32 *FieldEffectDurationScripts[]
extern const Sint32 *FieldEffectDurationScripts[]
References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.
Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().
Definition at lines 656 and 671 of file jupiter_lighthouse_locked_doors.c.