src/scene/jupiter_lighthouse_side_halls.c
The rooms west and south of Jupiter Lighthouse's central room. More…
#include "field/field_effect.h"#include "flags.h"#include "scene/pushed_actor.h"#include "field/field_engine.h"#include "field/script_inline.h"#include "field/call.h"#include "scene/scene.h"#include "field/metatile_target.h"#include "macros.h"#include "field/actor_script.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_lower.c"#include "shared/whirlwind_update_lower.c"#include "shared/whirlwind_spawn.c"#include "shared/actor_emit_smoke.c"#include "shared/jupiter_lighthouse_place_raised_actors.c"#include "shared/push_target_fill_rectangle.c"#include "shared/map_metatile_fill.c"#include "shared/push_target_find_stop.c"#include "shared/push_target_find_ahead.c"#include "shared/push_target_push.c"#include "shared/actor_stop_at_push_target.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/push_kinds.c"#include "shared/push_leader_steps.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"#include "shared/field_effect_duration_scripts.c"#include "shared/scene_entrances_default.c"
Macros
| Name | Description | |
|---|---|---|
#define | OWN_fdMapGridGetMetatileBehavior | This unit declares its own form of fdMapGridGetMetatileBehavior, below. |
#define | FLAG_COLUMN_OFF_LEDGE FLAG_SCENE_TEMP(0x00) | Set once the column has been pushed off the ledge this visit. |
#define | FLAG_LEFT_PILLAR_IN_GAP 0xa04 | Set as Move drops the west or east pillar into its gap. |
#define | FLAG_RIGHT_PILLAR_IN_GAP 0xa05 | |
#define | EFFECT_SET_MODE fdActorSelectAnimation | |
#define | EFFECT_SET_SCRIPT fdActorStartScript | |
#define | METATILE_PUSH_SLOT_ENTRY syOAMAddSpriteAtDepthClamped | |
#define | FIELD_EFFECT_DURATION_SCRIPT_SECTION LATE_DATA | |
#define | SCENE_ENTRANCES_SECTION LATE_DATA |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { ACTOR_FIRST_COLUMN, ACTOR_SECOND_COLUMN, ACTOR_LEDGE_COLUMN, … } | The four fallen columns, the third the one Felix pushes off into the trench, and the two pillars Move drops into the gaps in the south hall. |
enum | anonymous enum { LEDGE_EDGE_METATILE_X, TRENCH_METATILE_X, LEDGE_COLUMN_METAT … } | The metatile at the raised floor's east edge where the pushed column starts to fall, and the metatile of the trench it comes to rest in. |
enum | anonymous enum { WEST_PILLAR_GAP_X, EAST_PILLAR_GAP_X, PILLAR_GAP_Z } | The gaps below the south hall's west and east ledges that the pillars drop into. |
enum | anonymous enum { ENTRANCE_WEST_RING, ENTRANCE_EAST_RING } | The entrances at (152, 840) and (696, 840), where Felix spins down in a whirlwind (fdActorDescendInWhirlwind). |
enum | JUPITER_LIGHTHOUSE_SIDE_HALLS_METATILE_BEHAVIOR { METATILE_BEHAVIOR_BESIDE_COLUMNS, METATILE_BEHAVIOR_TRENCH_E … } | The rooms' own metatile behaviors. |
Functions
| Name | Description | |
|---|---|---|
void | scSetArrivalFlags (Sint32 a) | Marks the party as inside Jupiter Lighthouse; once Alex has healed the party there, also ends the area's random encounters and blocks Retreat. |
Bool | scPushTargetFillRectangle (Sint32 id) | Makes the metatiles under a pushable actor solid, by its rectangle: its sprite picks one of the rectangles in PushRectangles, and the metatiles' own behaviors are kept in the map's spare area for when it moves. |
Bool | scPushTargetFindStop (PUSH_TARGET *target) | Finds where the actor ahead stops when pushed: a metatile at a time, the whole of its rectangle (PushRectangles) until a wall blocks it; 1 when it moves at all. |
void | scPushTargetPush (PUSH_TARGET target) | The leader pushes the object to its resting place: the metatiles it leaves are floor again and the metatiles it comes to are walls. |
void | scJupiterLighthouseStartMovingPillar (void) | Nothing visible happens as Move takes hold of a pillar on a ledge in the south hall; these rooms need no metatiles changed before the push. |
void | scJupiterLighthouseLeaveByCyclone (void) | Felix casts Cyclone on the purple teleporter pad in the south hall, metatile (9, 51): the whirlwind lifts the party one level up, into the room of the locked doors, where they arrive in a ring. |
void | scJupiterLighthouseJumpForward (void) | Walking west off the trench's east bank by the Erinyes Tunic's chest, metatile (18, 11) or (18, 12), Felix jumps back over the trench, once the column lies in it to land on. |
ACTOR * | scPushTargetFindAhead (Sint32 *direction, Sint32 *slot, Sint32 *kind) | Finds the pushable thing in front of the leader among the placed actors: returns it, with its slot, its kind (its row of PushKinds) and the leader's facing in sixteenths of a turn. |
void | fdPaletteCycleStep (void) | Each tick: advances each palette cycle whose timer has run out by one colour, writing the rotated colours back to the palette. |
static inline void | scPaletteCycleSetTick (Sint32 value) | Sets the palette cycle's tick (PaletteCycleTick). |
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 | scJupiterLighthouseDrawColumnBelowLedge (ACTOR *actor) | The pushed column's update while Felix pushes it: once it reaches metatile (14, 12), at the raised floor's east edge, it is drawn a step further back (fdActorSetSpritePriorityDirect) for its fall into the trench. |
void | scJupiterLighthousePushColumnOffTheLedge (void) | Felix walks into one of the fallen columns on the raised floor and pushes it; it slides until something stops it. |
void | scJupiterLighthouseFinishMovingPillar (Sint32 unused, Sint32 id) | The stone pillar on the south hall's west or east ledge, Moved one metatile towards the hanging chain beside it, drops off the ledge into the gap below (metatile (20, 36) in the west, (32, 36) in the east) with a heavy thud and stays there, its top level with the floor, a shortcut across. |
const CUE * | scGetCues (void) | The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's. |
Sint32 | scInit (void) | Sets up the rooms as the party enters: the two chains, and the ring the party arrives in by a teleporter. |
Sint32 | scPrepareMap (void) | Sets the scene's arrival flags; puts the pillars back in their gaps, makes the four columns block their metatiles, and lays the pushed column across the trench again once it has fallen in. |
Sint32 | scPosFlatDistance (FIXED *a, FIXED *b) | The distance between two positions across the ground (x and z), in whole pixels. |
Sint32 | fdMapGridGetMetatileBehavior (Sint32 x, Sint32 z, Sint32 layer) | The ROM's callers here are compiled against this form, which returns an Sint32 where the definition returns 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. |
static inline Sint32 | scPushTargetCheckCollision (ACTOR *actor, Sint32 *pos) | Whether an actor at a position would collide with the map (fdMapGridCheckCollision). |
void | scActorStopAtPushTarget (ACTOR *actor) | Stops a pushed thing where it is when an actor stands in the metatile ahead of it, unless that is another pushable thing, or when the map blocks it. |
void | scLightSpritesSetPriority (Sint32 value) | Sets the priority the lit actors' sprites are drawn at. |
void | scCrackedTileUpdate (void) | Clears the current entry once the leader has left its metatile; while the leader stays on it and the mask is shown, draws the mask over the metatile at the height of the ground there, unless it is off screen. |
void | syGameFlagSetByte (Sint32 flag, Sint32 value) | Sets the whole byte flags is in. |
void | scCrackedTileCrack () | 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 colours; it is copied whole, with the unlit colours 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 Uint16 | PushKinds [PUSH_KINDS] | The sprites of the things pushed: a log, a pipe and a fallen column, each lying west to east and north to south. |
extern Sint32 | PaletteCycleTick | The palette cycle's tick, -1 before it starts, and whether scripts hold it (fdPaletteCycleStep). |
extern Sint32 | PaletteCyclePausesInScripts | |
extern Sint32 | WhirlwindEndScript [] | |
extern Sint8 | PushRectangles [][4] | Each kind's rectangle: its corners from the actor, x and z in pixels (scPushTargetFillRectangle). |
extern Sint32 | PushLeaderSteps [] | One metatile along each facing's nearest direction (PUSH_STEP). |
extern const Sint32 * | FieldEffectDurationScripts [] | The field effects' three scripts by how long an effect lasts: short, medium and long. |
extern Uint32 | FieldEffectShortScript [] | |
extern Uint32 | FieldEffectMediumScript [] | The flash about the Tomegathericon: held 45 ticks, then put away and freed. |
extern Uint32 | FieldEffectLongScript [] | |
LATE_DATA Uint32 | SceneExits [] | The room has no exits of its own. |
LATE_DATA ACTOR_PLACE | ActorPlacements [] | The room's people: the party's four rows, then PSYNERGY_TEST_ACTOR_ID's. |
LATE_DATA CUE | SceneCues [] | The room's scripts: talking to its people, Mind Read on them, the metatiles examined, and the field Psynergy each spot answers. |
LATE_DATA | Sint32 | The tick counts of the four red moai's streams' cycles (scAquaRockTimeStreams). |
Description
The rooms west and south of Jupiter Lighthouse's central room. In the north
west, the first puzzle up the left path: four fallen columns lie on a raised
floor, and the Erinyes Tunic's chest stands across a mossy trench to the
east. Felix pushes the columns about until the middle one of the lower three
can be pushed east off the floor's edge; it drops into the trench at
metatiles (16, 11) to (16, 14) (scJupiterLighthousePushColumnOffTheLedge),
and he hops over it to the chest and back (scJupiterLighthouseJumpForward).
In the south hall, Cyclone on the purple teleporter pad at metatile (9, 51)
takes him one level up (scJupiterLighthouseLeaveByCyclone). Later, when he
comes back with the Blue Key, a stone pillar stands on each of the hall's two
high ledges beside a hanging chain; Moved one metatile towards its chain,
each drops into the gap below the ledge and makes a shortcut between the
tower's two sides (scJupiterLighthouseFinishMovingPillar).
Macros in detail
OWN_fdMapGridGetMetatileBehavior
#define OWN_fdMapGridGetMetatileBehavior
This unit declares its own form of fdMapGridGetMetatileBehavior, below.
Definition at line 16 of file jupiter_lighthouse_side_halls.c.
FLAG_COLUMN_OFF_LEDGE
#define FLAG_COLUMN_OFF_LEDGE FLAG_SCENE_TEMP(0x00)
Set once the column has been pushed off the ledge this visit.
Referenced by scJupiterLighthousePushColumnOffTheLedge() and scPrepareMap().
Definition at line 30 of file jupiter_lighthouse_side_halls.c.
FLAG_LEFT_PILLAR_IN_GAP
#define FLAG_LEFT_PILLAR_IN_GAP 0xa04
Set as Move drops the west or east pillar into its gap.
Referenced by scJupiterLighthouseFinishMovingPillar() and scPrepareMap().
Definition at line 32 of file jupiter_lighthouse_side_halls.c.
FLAG_RIGHT_PILLAR_IN_GAP
#define FLAG_RIGHT_PILLAR_IN_GAP 0xa05
Referenced by scJupiterLighthouseFinishMovingPillar() and scPrepareMap().
Definition at line 33 of file jupiter_lighthouse_side_halls.c.
EFFECT_SET_MODE
#define EFFECT_SET_MODE fdActorSelectAnimation
Referenced by EFFECT_SPAWN.
Definition at line 428 of file jupiter_lighthouse_side_halls.c.
EFFECT_SET_SCRIPT
#define EFFECT_SET_SCRIPT fdActorStartScript
Referenced by EFFECT_SPAWN.
Definition at line 429 of file jupiter_lighthouse_side_halls.c.
METATILE_PUSH_SLOT_ENTRY
#define METATILE_PUSH_SLOT_ENTRY syOAMAddSpriteAtDepthClamped
Referenced by scCrackedTileUpdate().
Definition at line 432 of file jupiter_lighthouse_side_halls.c.
FIELD_EFFECT_DURATION_SCRIPT_SECTION
#define FIELD_EFFECT_DURATION_SCRIPT_SECTION LATE_DATA
Referenced by FieldEffectLongScript, FieldEffectMediumScript and FieldEffectShortScript.
Definition at line 455 of file jupiter_lighthouse_side_halls.c.
SCENE_ENTRANCES_SECTION
#define SCENE_ENTRANCES_SECTION LATE_DATA
Referenced by LATE_DATA and SceneEntrances.
Definition at line 458 of file jupiter_lighthouse_side_halls.c.
Enumerations in detail
anonymous enum
enum { ACTOR_FIRST_COLUMN, ACTOR_SECOND_COLUMN, ACTOR_LEDGE_COLUMN, ACTOR_FOURTH_COLUMN, … }
The four fallen columns, the third the one Felix pushes off into the trench, and the two pillars Move drops into the gaps in the south hall.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_FIRST_COLUMN | ACTOR_FIRST_PLACED | |
ACTOR_SECOND_COLUMN | ||
ACTOR_LEDGE_COLUMN | ||
ACTOR_FOURTH_COLUMN | ||
ACTOR_WEST_CHAIN | The two chains that hang beside the pillars' ledges (fdHangingVinePlace). | |
ACTOR_EAST_CHAIN | ||
ACTOR_LEFT_PILLAR | ACTOR_FIRST_PLACED + 6 | |
ACTOR_RIGHT_PILLAR |
Definition at line 37 of file jupiter_lighthouse_side_halls.c.
anonymous enum
enum { LEDGE_EDGE_METATILE_X, TRENCH_METATILE_X, LEDGE_COLUMN_METATILE_Z }
The metatile at the raised floor's east edge where the pushed column starts to fall, and the metatile of the trench it comes to rest in.
| Enumerator | Value | Description |
|---|---|---|
LEDGE_EDGE_METATILE_X | 14 | |
TRENCH_METATILE_X | 16 | |
LEDGE_COLUMN_METATILE_Z | 12 |
Definition at line 52 of file jupiter_lighthouse_side_halls.c.
anonymous enum
enum { WEST_PILLAR_GAP_X, EAST_PILLAR_GAP_X, PILLAR_GAP_Z }
The gaps below the south hall's west and east ledges that the pillars drop into.
| Enumerator | Value | Description |
|---|---|---|
WEST_PILLAR_GAP_X | 20 | |
EAST_PILLAR_GAP_X | 32 | |
PILLAR_GAP_Z | 36 |
Definition at line 61 of file jupiter_lighthouse_side_halls.c.
anonymous enum
enum { ENTRANCE_WEST_RING, ENTRANCE_EAST_RING }
The entrances at (152, 840) and (696, 840), where Felix spins down in a
whirlwind (fdActorDescendInWhirlwind).
| Enumerator | Value | Description |
|---|---|---|
ENTRANCE_WEST_RING | 12 | |
ENTRANCE_EAST_RING | 13 |
Definition at line 70 of file jupiter_lighthouse_side_halls.c.
JUPITER_LIGHTHOUSE_SIDE_HALLS_METATILE_BEHAVIOR
enum JUPITER_LIGHTHOUSE_SIDE_HALLS_METATILE_BEHAVIOR
The rooms' own metatile behaviors.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_BESIDE_COLUMNS | 30 | The raised floor round the fallen columns, metatiles (5, 5) to (14, 14), where walking into a column pushes it. |
METATILE_BEHAVIOR_TRENCH_EAST_BANK | The trench's east bank by the chest, metatiles (18, 11) and (18, 12), where walking west jumps back over the trench. | |
METATILE_BEHAVIOR_CYCLONE_TELEPORTER | 40 | The purple teleporter pad in the south hall, metatile (9, 51). |
Definition at line 77 of file jupiter_lighthouse_side_halls.c.
Functions in detail
scJupiterLighthouseStartMovingPillar
void scJupiterLighthouseStartMovingPillar(void)
Nothing visible happens as Move takes hold of a pillar on a ledge in the south hall; these rooms need no metatiles changed before the push.
Referenced by SceneCues.
Definition at lines 96 and 198 of file jupiter_lighthouse_side_halls.c.
scJupiterLighthouseLeaveByCyclone
void scJupiterLighthouseLeaveByCyclone(void)
Felix casts Cyclone on the purple teleporter pad in the south hall, metatile (9, 51): the whirlwind lifts the party one level up, into the room of the locked doors, where they arrive in a ring.
References syImportScriptSetExitRequest().
Referenced by SceneCues.
Definition at lines 97 and 241 of file jupiter_lighthouse_side_halls.c.
scJupiterLighthouseJumpForward
void scJupiterLighthouseJumpForward(void)
Walking west off the trench's east bank by the Erinyes Tunic's chest, metatile (18, 11) or (18, 12), Felix jumps back over the trench, once the column lies in it to land on.
References fdTryJumpForward().
Referenced by SceneCues.
Definition at lines 98 and 335 of file jupiter_lighthouse_side_halls.c.
scPaletteCycleSetTick
static inline void scPaletteCycleSetTick(Sint32 value)
Sets the palette cycle's tick (PaletteCycleTick).
References PaletteCycleTick and Sint32.
Referenced by scJupiterLighthouseLoadPalettes() and scTrialRoadStartPaletteCycle().
Definition at line 122 of file jupiter_lighthouse_side_halls.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 129 of file jupiter_lighthouse_side_halls.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 134 of file jupiter_lighthouse_side_halls.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 139 of file jupiter_lighthouse_side_halls.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References ActorPlacements.
Definition at line 144 of file jupiter_lighthouse_side_halls.c.
scJupiterLighthouseDrawColumnBelowLedge
void scJupiterLighthouseDrawColumnBelowLedge(ACTOR *actor)
The pushed column's update while Felix pushes it: once it reaches metatile
(14, 12), at the raised floor's east edge, it is drawn a step further back
(fdActorSetSpritePriorityDirect) for its fall into the trench.
References fdActorSetSpritePriorityDirect().
Referenced by scJupiterLighthousePushColumnOffTheLedge().
Definition at line 152 of file jupiter_lighthouse_side_halls.c.
scJupiterLighthousePushColumnOffTheLedge
void scJupiterLighthousePushColumnOffTheLedge(void)
Felix walks into one of the fallen columns on the raised floor and pushes it; it slides until something stops it. The middle one of the lower three, pushed east to the floor's edge, falls into the mossy trench with a heavy thud and lies across it at metatiles (16, 11) to (16, 14), so that Felix can hop over it to the Erinyes Tunic's chest.
References fdActorGet(), fdMapGridSetMetatileAttributesAt(), fdMapGridSetMetatileBehavior(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptSetFlag(), scFieldActorSetSpritePriority(), scFieldMapGridSetMetatileHeight(), scJupiterLighthouseDrawColumnBelowLedge(), scPushTargetFindStop(), scPushTargetPush(), Sint32 and sySynch().
Referenced by SceneCues.
Definition at line 164 of file jupiter_lighthouse_side_halls.c.
scJupiterLighthouseFinishMovingPillar
void scJupiterLighthouseFinishMovingPillar(Sint32 unused, Sint32 id)
The stone pillar on the south hall's west or east ledge, Moved one metatile towards the hanging chain beside it, drops off the ledge into the gap below (metatile (20, 36) in the west, (32, 36) in the east) with a heavy thud and stays there, its top level with the floor, a shortcut across.
References fdActorGet(), fdMapGridSetMetatileHeight(), fdScriptPlaySound(), fdScriptSetFlag(), Sint32 and sySynch().
Referenced by SceneCues.
Definition at line 206 of file jupiter_lighthouse_side_halls.c.
scGetCues
const CUE *scGetCues(void)
References SceneCues.
Definition at line 247 of file jupiter_lighthouse_side_halls.c.
scInit
Sint32 scInit(void)
Sets up the rooms as the party enters: the two chains, and the ring the party arrives in by a teleporter. Returns 0.
References fdActorDescendInWhirlwind(), fdHangingVinePlace(), fdScriptGetFlag(), MainRoutineStateWork and Sint32.
Definition at line 254 of file jupiter_lighthouse_side_halls.c.
scPrepareMap
Sint32 scPrepareMap(void)
Sets the scene's arrival flags; puts the pillars back in their gaps, makes the four columns block their metatiles, and lays the pushed column across the trench again once it has fallen in. Returns 0.
References fdActorDisableById(), fdActorGet(), fdMapGridSetMetatileAttributesAt(), fdMapGridSetMetatileBehavior(), fdMapGridSetMetatileHeight(), fdScriptGetFlag(), scFieldActorSetSpritePriority(), scFieldMapGridSetMetatileHeight(), scPushTargetFillRectangle(), scSetArrivalFlags() and Sint32.
Definition at line 272 of file jupiter_lighthouse_side_halls.c.
scPosFlatDistance
Sint32 scPosFlatDistance(FIXED *a, FIXED *b)
The distance between two positions across the ground (x and z), in whole pixels.
References Sint32 and sySquartIWRAM().
Referenced by scAirsRockInsideMovePooledWhirlwind(), scAirsRockInsideMoveWhirlwind(), scAirsRockInsideUpdateVentPuff(), scAirsRockMoveWhirlwind(), scMagmaRockFireFromStatue(), scMagmaRockInsideFireFromStatue(), scMagmaRockMoveFireball(), scSeaOfTimeCircleSwirl(), scSeaOfTimeRideCurrent() and scWhirlwindUpdate().
Definition at line 350 of file jupiter_lighthouse_side_halls.c.
scPushTargetCheckCollision
static inline Sint32 scPushTargetCheckCollision(ACTOR *actor, Sint32 *pos)
References fdMapGridCheckCollision() and Sint32.
Definition at line 387 of file jupiter_lighthouse_side_halls.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 406 of file jupiter_lighthouse_side_halls.c.
Variables in detail
WhirlwindRiding
Sint32 WhirlwindRiding
References Sint32.
Referenced by scInit(), scJupiterLighthouseRaiseUpperWhirlwind(), scJupiterLighthouseRaiseWhirlwind(), scJupiterLighthouseRideUpperWhirlwind(), scJupiterLighthouseRideWhirlwind() and scWhirlwindUpdate().
Definition at line 99 of file jupiter_lighthouse_side_halls.c.
PaletteCycleColors
Uint16 PaletteCycleColors[16]
Referenced by fdPaletteCycleFade(), fdPaletteCycleStep(), scJupiterLighthouseLoadPalettes() and scPaletteSetColorsFade().
Definition at line 100 of file jupiter_lighthouse_side_halls.c.
PaletteCycleUnlitPalette
Uint16 PaletteCycleUnlitPalette[2]
Palette 13's first two colours; it is copied whole, with the unlit colours after them.
Referenced by scJupiterLighthouseLoadPalettes().
Definition at line 103 of file jupiter_lighthouse_side_halls.c.
PaletteCycleUnlitColors
Uint16 PaletteCycleUnlitColors[14]
Referenced by scJupiterLighthouseLoadPalettes().
Definition at line 104 of file jupiter_lighthouse_side_halls.c.
LightSpriteTile
Sint16 LightSpriteTile
Referenced by scAnemosInnerSanctumDullahanStartLightSprites(), scLightSpritesDraw(), scLightSpritesInitChannelPieces(), scLightSpritesInitEnergyBlockGlow() and scLightSpritesInitPathGlows().
Definition at line 105 of file jupiter_lighthouse_side_halls.c.
LightSpriteCount
Sint16 LightSpriteCount
Referenced by scAnemosInnerSanctumDullahanStartLightSprites(), scLightSpritesAdd(), scLightSpritesAddCounted(), scLightSpritesDraw(), scLightSpritesInitChannelPieces(), scLightSpritesInitEnergyBlockGlow() and scLightSpritesInitPathGlows().
Definition at line 106 of file jupiter_lighthouse_side_halls.c.
LightSpriteOams
LIGHT_OAM LightSpriteOams[16]
Referenced by scLightSpritesDraw().
Definition at line 108 of file jupiter_lighthouse_side_halls.c.
LightSpritesLarge
Sint16 LightSpritesLarge
Referenced by scAnemosInnerSanctumDullahanStartLightSprites(), scLightSpritesDraw(), scLightSpritesInitChannelPieces(), scLightSpritesInitEnergyBlockGlow() and scLightSpritesInitPathGlows().
Definition at line 109 of file jupiter_lighthouse_side_halls.c.
LightSpritePriority
Sint16 LightSpritePriority
Referenced by scAnemosInnerSanctumDullahanSetLightPriority(), scAnemosInnerSanctumDullahanStartLightSprites(), scLightSpritesDraw(), scLightSpritesInitChannelPieces(), scLightSpritesInitEnergyBlockGlow(), scLightSpritesInitPathGlows() and scLightSpritesSetPriority().
Definition at line 110 of file jupiter_lighthouse_side_halls.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 113 of file jupiter_lighthouse_side_halls.c.
WhirlwindEndScript
extern Sint32 WhirlwindEndScript[]
LATE_DATA Sint32 WhirlwindEndScript[]
References Sint32.
Referenced by scWhirlwindUpdate().
Definition at lines 360 and 592 of file jupiter_lighthouse_side_halls.c.
FieldEffectDurationScripts
extern const Sint32 *FieldEffectDurationScripts[]
LATE_DATA const Sint32 *FieldEffectDurationScripts[]
References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.
Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().
Definition at lines 426 and 599 of file jupiter_lighthouse_side_halls.c.
SceneExits
LATE_DATA Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 461 of file jupiter_lighthouse_side_halls.c.
ActorPlacements
LATE_DATA ACTOR_PLACE ActorPlacements[]
Referenced by scGetActorPlacements().
Definition at line 499 of file jupiter_lighthouse_side_halls.c.
SceneCues
LATE_DATA CUE SceneCues[]
References scJupiterLighthouseFinishMovingPillar(), scJupiterLighthouseJumpForward(), scJupiterLighthouseLeaveByCyclone(), scJupiterLighthousePushColumnOffTheLedge() and scJupiterLighthouseStartMovingPillar().
Referenced by scGetCues().
Definition at line 533 of file jupiter_lighthouse_side_halls.c.
Sint32
LATE_DATA Sint32
Referenced by ActorApproachWatchedScript, ActorCameraScript, ActorFaceWatchedScript, ActorFlyScript, ActorFootprintScript, ActorHoverScript, ActorIdleScript, ActorKeyCheckScript, ActorKeysScript, ActorLaunchScript, ActorOffsetScript, ActorPlacements, ActorPlayerScript, ActorRippleScript, ActorRopeScript, ActorSailOnMapScript, ActorSailScript, ActorSandOnWorldMapScript, ActorSandPuffScript, ActorSandScript, ActorScriptCycleTable, ActorScriptEndScript, ActorScriptIdleScript, ActorSplashScript, ActorStepAngleScript, ActorTightropeScript, ActorWaitScript, ActorWalkingScript, ActorWorldMapScript, AirsRockEntrancePlacements, AirsRockInsideFaceVentsPlacements, AirsRockInsideLeaderLevel, AirsRockInsideOrbitingSparkScript, AirsRockInsidePairedStakesPlacements, AirsRockInsideStampedHeight, AirsRockInsideStampedMetatile, AirsRockInsideStampedWidth, AirsRockInsideStampedX, AirsRockInsideStampedZ, AirsRockInsideTightropesPlacements, AirsRockInsideTurningBridgePlacements, AirsRockInsideWindStonePlacements, AirsRockLeaderLevel, AirsRockRubbleScript, AirsRockWindStoneScript, AlhafraActorPlacementsOnceTheMastIsCleared, AlhafraAlhafranLeadsBehindFelixScript, AlhafraElderStepsBackScript, AlhafranCaveGuardStepsAsideScript, AlhafranCaveIdleEventTick and 4596 more.
Definition at lines 588 and 590 of file jupiter_lighthouse_side_halls.c.