src/scene/world_map.c
The World Map (SceneIdWorldMap), the one perspective map (map/world) that joins the areas, and the only scene of this overlay. More…
#include "ability_ids.h"#include "item_ids.h"#include "battle/battle.h"#include "debug/debug.h"#include "field/script_inline.h"#include "field/field_effect.h"#include "field/field_psynergy_state.h"#include "field/perspective.h"#include "graphics/graphics.h"#include "scene/tolbi_ship.h"#include "scene/walk_into_leader.h"#include "scene/golden_ring.h"#include "text/msg_ids.h"#include "shared/color_mode_cycle.c"#include "shared/field_effect_vertical.c"#include "shared/golden_ring.c"#include "shared/tolbi_ship_rowing.c"
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_WORLD_MAP_FALLING_ROCK_LANDED FLAG_SCENE_TEMP(0x00) | The falling rock of Hammet's caravan script has landed and shattered. |
#define | FLAG_WORLD_MAP_BLACK_ORB_HANDED_OVER FLAG_SCENE_TEMP(0x34) | Iodem has handed Isaac the Black Orb and waits for it to be used on the wreck off Gateway Cave. |
#define | FLAG_WORLD_MAP_ORDINARY_ACTORS FLAG_SCENE_TEMP(0x35) | The scene's ordinary actor placements (WorldMapActorPlacements) are in use rather than a script's. |
#define | FLAG_WORLD_MAP_CAUGHT_IN_STORM FLAG_SCENE_TEMP(0xf0) | The storm holds the party up in the air, where Douse can bring it down. |
#define | FLAG_WORLD_MAP_STORM_GONE FLAG_SCENE_TEMP(0xf1) | The storm is done with, or put away while the Tolbi-bound Ship lies off the island, and catches no one. |
#define | FLAG_WORLD_MAP_STORM_TICKS_LEFT FLAG_SCENE_TEMP(0xf8) | The first flag of a byte counting the ticks the storm keeps the party in the air. |
#define | STORM_TICKS_IN_AIR 180 | The ticks the storm holds the party in the air before it drops them outside Suhalla. |
#define | FLINT_SPOT_X 5584 | Flint's spot just outside Vale, in map pixels, which he circles until the party meets him. |
#define | FLINT_SPOT_Z 1328 | |
#define | IODEM_COAST_X 6036 | Where Iodem waits on the coast by Gateway Cave with the Black Orb handed over, in map pixels. |
#define | IODEM_COAST_Z 3400 | |
#define | STEP_CUE_AREA (actorId) (STEP_CUE_AREA_BASE + (actorId)) | The metatile behavior raised by touching an area's actor. |
#define | FLINT_GROW_TICKS 16 | The ticks Flint takes to grow to full size as he comes down to the party. |
#define | WORLD_MAP_QUEUE_TRANSITION_PICTURE (buffer, offset) | Queues one picture of the lighthouse transition, a whole tile map, into BG0's screen block. |
#define | WORLD_MAP_LIGHT_BALL (size) (LIGHT_BALL_TILES_SIZE + 128 + (size) * 1536) | Where picture size of the ball of light lies in the unpacked buffer: 0 is the ball at its largest, 6 at its smallest, and 7 the picture shown before it swells and after it shrinks. |
#define | LIGHT_BALL_TILES 128 | The ball of light's tiles (lighthouse_transition.png), first in the unpacked buffer: LIGHT_BALL_TILES 4-bit tiles, loaded into BG0's character block from tile LIGHT_BALL_FIRST_TILE, which its pictures count from, and shown in BG palette LIGHT_BALL_PALETTE. |
#define | LIGHT_BALL_TILES_SIZE (LIGHT_BALL_TILES * TILE_SIZE_4BPP) | |
#define | LIGHT_BALL_FIRST_TILE 128 | |
#define | LIGHT_BALL_PALETTE 14 |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { CONTACT_LAST_ACTOR, STEP_CUE_AREA_BASE } | The actors scWorldMapUpdateAreaContacts looks at, the placed ones to the last slot, and the base of the metatile behaviors a touch raises (STEP_CUE_AREA). |
enum | WORLD_MAP_ACTOR_ID { ACTOR_VENUS_DJINNI, ACTOR_CORONA, ACTOR_HAIL, ACTOR_TO_VALE_ … } | The World Map's own actors, numbered in the order of WorldMapActorPlacements from ACTOR_FIRST_PLACED. |
enum | WORLD_MAP_METATILE_BEHAVIOR { METATILE_BEHAVIOR_WORLD_MAP_TOLBI_SHIP, METATILE_BEHAVIOR_WO … } | The World Map's own metatile behaviors, which the map's metatiles carry. |
enum | WORLD_MAP_RAISED_CUE { RAISED_STORM_TIME_UP } | Raised by scWorldMapUpdateStormTimer when the party's time in the air runs out. |
enum | anonymous enum { WORLD_MAP_BRIDGE_ANIMATION_LOWERED } | SPRITE_WORLD_MAP_BRIDGE's animation once Kolima Bridge's drawbridge is down. |
enum | anonymous enum { FALLING_ROCK_ANIMATION_TUMBLE, FALLING_ROCK_ANIMATION_SHATTE … } | The falling rock's animations (blue_crystal.png). |
enum | WORLD_MAP_CARAVAN_ACTOR_ID { ACTOR_CARAVAN_HAMMET, ACTOR_CARAVAN_MAN, ACTOR_CARAVAN_FIRST … } | The actors of Hammet's caravan leaving Vault (WorldMapActorPlacementsHammetsCaravan, WORLD_MAP_HAMMETS_CARAVAN_LEAVES), numbered from ACTOR_FIRST_PLACED. |
enum | anonymous enum { ACTOR_CROSSING_SHIP } | The Tolbi-bound Ship, shown on its way across the Karagol Sea. |
enum | anonymous enum { ACTOR_KALAY_WAGON } | Bunza's wagon at Kalay (WorldMapActorPlacementsFromKalayTunnelEntranceSouth), after Kalay's and the Kalay Tunnel Entrance's area actors. |
enum | anonymous enum { ACTOR_DRIFTING_ISLAND } | The one actor of WorldMapActorPlacementsFromClear, before the ending. |
enum | WORLD_MAP_ENDING_ACTOR_ID { ACTOR_KRADEN, ACTOR_ALEX, ACTOR_FELIX } | The ending's actors (WorldMapActorPlacementsJennaAndKradenAdrift), numbered from ACTOR_FIRST_PLACED after the rows of Jenna and Sheba, which take their own actor ids. |
enum | anonymous enum { ANIM_JENNA_LIE, ANIM_KRADEN_LIE } | Animations the map plays by number beyond ACTOR_ANIMATION, from each sprite's animation table (graphics/sprite/<name>.tsv). |
enum | anonymous enum { ENCOUNTER_SLOT_DJINN_LESSON, ENCOUNTER_SLOT_TORNADO_LIZARD, … } | The battles the map starts from the scripted encounter tables. |
enum | anonymous enum { ACTOR_WAGON, ACTOR_BUNZA, ACTOR_HAMMET } | The actors placed at WORLD_MAP_WEST_LUNPA_CAVE (WorldMapActorPlacementsFromWestLunpaCave), numbered from ACTOR_FIRST_PLACED. |
enum | anonymous enum { QUAKE_DUST_LEFT, QUAKE_DUST_TOP, QUAKE_DUST_WIDTH, QUAKE_DUS … } | The box around Venus Lighthouse, in pixels, where dust puffs up as it shakes (scWorldMapUpdateLighthouseQuake). |
Functions
| Name | Description | |
|---|---|---|
Sint32 | scInit (void) | Sets the map up for the entrance the party arrives by: the lighthouse transitions and the Black Orb defeat lead straight on to another scene; every other way in starts the area contacts and plays the story moment its entrance names, if any. |
static Sint32 | scWorldMapAlignToMap (ACTOR *actor) | The actor script of every picture on the map (WorldMapAlignToMapScript). |
static void | scWorldMapBoardBunzasWagon (void) | Out of West Lunpa Cave once Dodonpa is locked up, Bunza and then Hammet come out beside Isaac at the cave mouth, face each other and nod. |
static void | scWorldMapShowHammetsCaravan (void) | The first time the party walks onto Vault, Hammet's caravan comes out of the town: its wagons roll up beside the party, Hammet says they cannot stay in so dangerous a place, and the caravan heads south to the river, where his man finds the bridge is down. |
static void | scWorldMapShakeCameraOverCaravan (void) | Shakes the camera around Hammet and his man as the ground trembles. |
static void | scWorldMapShakeCameraWhereRockFalls (void) | Shakes the camera around the spot where the falling rock lands. |
static void | scWorldMapUpdateFallingRock (void) | Keeps the falling rock above its guide as it drops, and lands it once. |
static void | scWorldMapSailToFirstMonsterAttack (void) | The Tolbi-bound Ship, drawn a quarter larger, sails out of Kalay Docks on the World Map before the first attack at the mast. |
static void | scWorldMapSailToSecondMonsterAttack (void) | The ship sails west across the Karagol Sea after the first attack, and the screen closes for the second attack at the mast. |
static void | scWorldMapSailToThirdMonsterAttack (void) | The ship sails on west after the second attack, and the screen closes for the third. |
static void | scWorldMapSailToKraken (void) | The ship sails on west after the third attack, and the screen closes on the ship's rooms for the fourth, the Kraken's. |
static void | scWorldMapSailUntilLandSighted (void) | After the Kraken, the ship sails west across open sea until the screen closes on the mast, where land is sighted. |
static void | scWorldMapSailIntoTolbi (void) | The ship sails the last stretch along the coast into Tolbi's harbour, and the scene changes to its deck. |
static void | scWorldMapStepDownFromBunzasWagon (void) | Brings Bunza's wagon to a stop and lets Isaac step down, after Hammet's return home (kalay.c's scKalayHammetReturnsToPalace). |
static void | scWorldMapRunBlackOrbScript (void) | Out of Gateway Cave, Iodem sees Babi's ship scuttled off the coast, gives Isaac the Black Orb and prompts him to use it on the ship. |
static void | scWorldMapBlockGatewayCaveExit (Sint32 actorId) | While Iodem waits with the Black Orb handed over, walking into Gateway Cave runs scWorldMapIodemCallsIsaacBack instead of entering it, and his row of the placements stands him on the coast. |
static void | scWorldMapIodemCallsIsaacBack (void) | Walking back into Gateway Cave with the Black Orb unused makes Iodem call the leader back to the coast. |
static void | scWorldMapShowEndingScript (void) | The ending, on the island Jenna and Kraden are adrift on: they lie on its grass and talk of the Venus beacon, Alex comes to them, and he leads them to the shore, where Felix and Sheba lie washed up, alive. |
static void | scWorldMapShakeVenusLighthouse (void) | After the beacon is lit, the view settles on Venus Lighthouse on the World Map, which shakes with a rumble as yellow clouds of dust puff up round it, before the scene returns to the aerie for Sheba's fall. |
static void | scWorldMapUpdateLighthouseQuake (void) | Run each tick while Venus Lighthouse shakes. |
static void | scWorldMapSailTolbiShipToIsland (void) | A leg of the Tolbi-bound Ship's crossing: from open sea the ship sails north-west with the camera on it until the green, wooded coast of an island comes into view, then turns north along the shore through the shallows and slows to a stop beside it. |
static Sint32 | scWorldMapGetRowingBalance (void) | The rowing balance of the chosen passengers, as scTolbiShipMastGetRowingBalance reckons it: the values of those at the west seats (the first and third) less those at the east seats (the second and fourth). |
static Sint32 | scWorldMapGetSeatRowValue (Uint32 seat) | The rowing value of the passenger chosen for a seat, or 0 while it is empty. |
static void | scWorldMapShowIslandDrifting (void) | Before the ending, the island Jenna and Kraden are adrift on drifts east across a darkened sea, trailing a pale wake, as the view closes in on it, then the screen fades to white. |
static void | scWorldMapUpdateStormTimer (void) | Run each tick while a storm holds the party in the air: it spins the leader round and counts down the time left, which stands still while the menu is open. |
static void | scWorldMapPlayLighthouseTransition (WORLD_MAP_LIGHTHOUSE lighthouse) | The lighthouse transition, after a beacon is lit: on the World Map, darkened to a deep blue, a ball of light in the lighthouse's colours (blue for Mercury Lighthouse) swells over the lighthouse's top, glows there for 140 ticks and shrinks away. |
static void | scWorldMapMeetVine (void) | Walking over the small island north-west of the Lamakan Desert's way out, once a random battle is nearly due, may start a battle with the Venus Djinni Vine; nothing is seen of him beforehand. |
static void | scWorldMapMeetCorona (void) | Walking over the lone island far north of Xian, once a random battle is nearly due, starts a battle with the Mars Djinni Corona; nothing is seen of him beforehand. |
static void | scWorldMapMeetHail (void) | Walking over the fields far west of Tolbi, once a random battle is nearly due, starts a battle with the Mercury Djinni Hail; nothing is seen of him beforehand. |
static void | scWorldMapReleaseSparkAfterDelay (ACTOR *actor) | The update function of a sparkle around the Black Orb. |
static void | scWorldMapPulseOrbAndSpawnSparks (ACTOR *actor) | The update function of the Black Orb held up over the wreck. |
static void | scWorldMapCircleFlint (ACTOR *actor) | Flint's update function until the party meets him (scWorldMapSetUpFlint). |
static Sint32 | scWorldMapSetUpFlint (ACTOR *actor) | Flint's actor script (WorldMapFlintScript). |
const SCENE_ENTRANCE * | scGetEntrances (void) | The six rooms share one entrance table. |
const SCENE_EXIT_REGION * | scGetExitRegions (void) | The scene has no exit regions: its regions entry returns none. |
const Uint32 * | scGetExits (void) | Both scenes share one exit table. |
static Sint32 | scWorldMapSetUpKolimaBridge (ACTOR *actor) | Kolima Bridge's actor script (WorldMapKolimaBridgeScript). |
static Sint32 | scWorldMapSetUpIodem (ACTOR *actor) | Iodem's actor script (WorldMapIodemScript). |
static Sint32 | scWorldMapSetUpStorm (ACTOR *actor) | Sets up the storm (ACTOR_STORM) as it is placed. |
static Sint32 | scWorldMapHideStormOnOddTicks (ACTOR *actor) | Called each tick by the storm's actor script (WorldMapStormScript): it hides the storm on odd ticks, but scWorldMapUpdateAreaContacts shows it again in the same tick, and it is drawn in every tick. |
const ACTOR_PLACE * | scGetActorPlacements (void) | Chooses the actors for the entrance. |
static void | scWorldMapSelectExitByX (Sint32 cue, Sint32 exitBefore, Sint32 exitAfter) | Takes the party into an area with two ways in by the side it walks up from: exitBefore if the leader is west of the area's picture, else exitAfter, with the sound of leaving the map. |
static void | scWorldMapSelectExitByZ (Sint32 cue, Sint32 exitBefore, Sint32 exitAfter) | Takes the party into an area with two ways in by the side it walks up from: exitBefore if the leader is north of the area's picture, else exitAfter, with the sound of leaving the map. |
static void | scWorldMapEnterBilibinBarricade (void) | Walking onto the Bilibin Barricade on the World Map enters it by the side the party comes from, west or east. |
static void | scWorldMapEnterKolimaBridge (void) | Walking onto Kolima Bridge on the World Map enters it at its north end from the north, or at its south end from the south. |
static void | scWorldMapEnterKalayDocks (void) | Walking onto Kalay Docks on the World Map enters them by their north side from the north, or by their south side from the south. |
static void | scWorldMapEnterGondowanPassage (void) | Walking onto Gondowan Passage on the World Map enters it at its north end from the north, or at its south end from the south. |
static void | scWorldMapEnterLalivero (void) | Walking onto Lalivero on the World Map enters the town by its west side from the north, or by its east side from the south. |
const CUE * | scGetCues (void) | The first water beast's cave changes its cues once the first drain has lowered its water: the beast is gone and its two puddles can be frozen. |
static void | scWorldMapUpdateAreaContacts (void) | Run each tick on the map, where scInit adds it: it shows only the area pictures near the view and, when the leader touches one, raises that area's cue. |
static void | scWorldMapEnterVault (void) | Walking onto Vault on the World Map enters the town by its south side. |
static void | scWorldMapReturnToTolbiShip (void) | Walking east along Crossbone Isle's shore into the anchored Tolbi-bound Ship takes the party back aboard, onto its deck. |
static inline void | scWorldMapMoveShakeCamera (Sint32 x, Sint32 z) | Moves to the next camera-shake point, in whole pixels, and holds it for four ticks. |
static inline void | scWorldMapSailCrossingLeg (Sint32 exit) | A middle leg of the Karagol Sea crossing: the ship, seen from above, sails west over open sea with the camera following it, until the screen closes on the scene exit leads to. |
static void | scWorldMapExplainSettingDjinn (void) | Flint explains how a Djinni is set and put on standby, running the Djinn menu for each part of the lesson, then starts the lesson battle. |
static void | scWorldMapMeetFlint (void) | Walking up to Flint, the spark circling his spot just outside Vale: he cries "Oh!", drops down beside Isaac at full size, "A traveling warrior!", shimmers with sparkles, and asks to come along to find his comrades, telling how Djinn make an Adept's Psynergy stronger. |
static void | scWorldMapRestoreGatewayCaveExit (void) | Makes touching Gateway Cave an exit again, to WORLD_MAP_GATEWAY_CAVE. |
static void | scWorldMapTalkAboutBlackOrb (void) | Talking to Iodem, who gave the Black Orb, or reading his mind, makes him urge its use. |
static void | scWorldMapSearchWreckage (void) | Checking the wreck of Babi's ship off the coast by Gateway Cave reads "The wreckage of a ship scuttled off the coast." While Isaac holds the Black Orb Iodem gave him, the field menu then opens, so that he can use it. |
static void | scWorldMapUseBlackOrb (void) | Using the Black Orb on the wreck off Gateway Cave, Isaac holds it up and it pulses and sparkles, but nothing happens. |
static void | scWorldMapSpawnIslandWake (void) | Spawns a puff of the wake behind ACTOR_DRIFTING_ISLAND every 16 ticks. |
static void | scWorldMapCatchInStorm (Sint32 targetActorId) | Draws the leader into the storm, lifts him and starts its timer. |
static void | scWorldMapWalkIntoStorm (void) | Walking into the whirlwind near Crossbone Isle draws the leader into it and lifts the party into the air for three seconds. |
static void | scWorldMapStartDousingStorm (void) | Casting Douse on the whirlwind that holds the party gathers the rain cloud high up, over the party where it floats, not on the ground below (script_commands_douse.c reads sceneVariant). |
static void | scWorldMapDouseMapStorm (void) | Douse on the whirlwind that holds the party stops it, and the party drops to fight the Tempest Lizard inside, as in Suhalla Desert's red storm. |
static void | scWorldMapStormDropsParty (void) | If the party is not brought down within three seconds, the whirlwind rises with them faster and faster out of sight, the screen closes, and they drop onto the World Map outside Suhalla. |
static void | scWorldMapUpdateTransitionBlend (void) | Run each tick of the lighthouse transition: blends the ball of light over the map, its own weight flickering between 12 and 16 sixteenths every two ticks over WorldMapBlendWork. |
static void | scWorldMapJitterTransitionCamera (void) | Run each tick at the end of the lighthouse transition, as the ground rumbles: every third tick it moves the camera a pixel diagonally from the leader. |
static inline void | scWorldMapShowTransitionPicture (Uint8 *buf, Sint32 offset, Sint32 ticks) | Queues one picture of the lighthouse transition and holds it for ticks ticks. |
static void | scWorldMapFlashWhiteWithGoldenRings (ACTOR *actor) | Unused: an actor's update function that flashes it white, two ticks on and two off, and every sixteenth tick sets off a golden ring around it, as Flint shimmers on meeting the party. |
static void | scWorldMapCycleColorsWithGoldenRings (ACTOR *actor) | Unused: an actor's update function that cycles it through six colour modes and every sixteenth tick sets off a golden ring around it. |
Variables
| Name | Description | |
|---|---|---|
extern Sint32 | IodemActor | Iodem's actor on the World Map, set as he comes out to meet the party. |
extern Sint32 | CaravanFirstWagonArrives [] | Hammet's caravan outside Vault (scWorldMapShowHammetsCaravan): each of the four wagons, at one and a half times its size, rolls up to the party and stops in its own place. |
extern Sint32 | CaravanFirstWagonDeparts [] | Each wagon rolls south for the bridge and, out of sight, is put down where it waits at the broken bridge. |
extern Sint32 | CaravanFirstWagonReturns [] | Each wagon rolls back from the broken bridge and leaves the stage. |
extern Sint32 | CaravanWagonHeadsNorth [] | Every wagon in turn: from the road south of Vault it rolls north for Lunpa and leaves the stage. |
extern Sint32 | CaravanSecondWagonArrives [] | The second to fourth wagons stop in a column 32 pixels west of the first, the second southmost and each after it 16 pixels north. |
extern Sint32 | CaravanSecondWagonDeparts [] | The second to fourth wagons wait side by side north of the first, west to east. |
extern Sint32 | CaravanSecondWagonReturns [] | The second to fourth wagons each roll south to the first's road and follow it. |
extern Sint32 | CaravanThirdWagonArrives [] | |
extern Sint32 | CaravanThirdWagonDeparts [] | |
extern Sint32 | CaravanThirdWagonReturns [] | |
extern Sint32 | CaravanFourthWagonArrives [] | |
extern Sint32 | CaravanFourthWagonDeparts [] | |
extern Sint32 | CaravanFourthWagonReturns [] | |
extern Sint32 | CaravanRockGuideScript [] | The invisible guide of the rock that falls beside the caravan: it grows from a tenth of its size over 160 ticks as it moves to where the rock lands. |
extern Sint32 | BlackOrbLeaderScript [] | The leader's walk in scWorldMapRunBlackOrbScript: SW_TIMER turns 1 when he has stopped. |
extern Sint32 | EndingAlexWalk [] | The walks of the ending (scWorldMapShowEndingScript): Alex, Kraden and Jenna follow one path and stop side by side; Jenna's turns SW_TIMER to 1 when she has stopped. |
extern Sint32 | EndingKradenWalk [] | |
extern Sint32 | EndingJennaWalk [] | |
extern Sint32 | QuakeCloudScript [] | A cloud of dust in the lighthouse quake (scWorldMapUpdateLighthouseQuake): it lasts 16 ticks. |
extern Sint32 | CrossingShipSailsWest [] | The ship crossing the sea (scWorldMapSailCrossingLeg, scWorldMapSailUntilLandSighted): 8 pixels west a step for 40 steps, then SW_TIMER turns 1 while it sails on two more. |
extern Sint32 | CrossingShipDriftsNorth [] | As CrossingShipSailsWest, drifting 2 pixels north with each step. |
extern Sint32 | IslandDriftsEast [] | The island drifting east (scWorldMapShowIslandDrifting): 24 pixels a step for 10 steps, then SW_TIMER turns 1 while it drifts on two more. |
extern SCENE_ENTRANCE | WorldMapEntrances [] | |
extern Uint32 | WorldMapExits [] | |
extern ACTOR_PLACE | WorldMapActorPlacements [] | |
extern ACTOR_PLACE | WorldMapActorPlacementsHammetsCaravan [] | |
extern ACTOR_PLACE | WorldMapActorPlacementsFromWestLunpaCave [] | |
extern ACTOR_PLACE | WorldMapActorPlacementsCrossingEnds [] | |
extern ACTOR_PLACE | WorldMapActorPlacementsCrossing [] | |
extern ACTOR_PLACE | WorldMapActorPlacementsFromKalayTunnelEntranceSouth [] | |
extern ACTOR_PLACE | WorldMapActorPlacementsJennaAndKradenAdrift [] | |
extern ACTOR_PLACE | WorldMapActorPlacementsFromClear [] | |
extern ACTOR_PLACE | WorldMapActorPlacementsBeforeShebasFall [] | |
extern CUE | WorldMapCues [] | |
extern Sint32 | IslandWakeScript [] | A puff of the drifting island's wake (scWorldMapSpawnIslandWake): for 48 ticks it drifts west and south as it spreads wider and flatter, then it is released. |
Uint16 | WorldMapBlendWork | The second weight of the lighthouse transition's blend (BLEND_ALPHA), which the picture's weight flickers over. |
Sint32 | WorldMapFlintScript [] | Flint's actor script on the map: it sets him up (scWorldMapSetUpFlint). |
Sint32 | WorldMapKolimaBridgeScript [] | |
Sint32 | WorldMapAlignToMapScript [] | |
Sint32 | WorldMapIodemScript [] | |
Sint32 | WorldMapStormScript [] |
Description
The World Map (SceneIdWorldMap), the one perspective map (map/world) that
joins the areas, and the only scene of this overlay.
Its code does three kinds of work.
It lets the party into the areas. Each town, cave, dock and passage stands on the map as a small picture of its kind (a village, a cave mouth, a pier and the rest), turned as the map turns, and walking into the picture enters the place. A few ways in are stretches of ground instead, such as the deserts' edges and the paths up to Venus Lighthouse.
scWorldMapUpdateAreaContacts runs every tick. It shows only the pictures near
the view and, when the leader touches one, raises that area's STEP_CUE_AREA,
which the cue table turns into the area's exit.
Five areas have two ways in, and the party comes in by the side it walks up from: the Bilibin Barricade from the west or the east, and Kolima Bridge, Kalay Docks, Gondowan Passage and Lalivero from the north or the south.
Kolima Bridge's picture shows the drawbridge let down once it has been
lowered (FLAG_KOLIMA_BRIDGE_LOWERED).
It holds what the party meets on the map itself. Flint, the first Djinni, is a small spark circling a spot just outside Vale. Three more wait unseen: Vine on a small island north-west of the Lamakan Desert's way out, Corona on a lone island far north of Xian, and Hail in the fields far west of Tolbi. Walking over their ground once a random battle is nearly due may bring the Djinni's battle instead.
A whirlwind spins near Crossbone Isle (ACTOR_STORM), where the red storm in
Suhalla Desert drops a party it carries off. It is put away while the
Tolbi-bound Ship lies at anchor off the island. Walked into, it lifts the
party into the air for three seconds, as Suhalla Desert's storms do. Douse on
it brings the party down to fight the Tempest Lizard inside. If the time runs
out it carries the party off and drops them outside Suhalla.
The Turtle Boots are buried past the Bilibin Barricade, in the forest at the end of a long, narrow island, and are found by checking the ground there.
And it plays the story's moments on the map, each run by scInit for the
entrance another scene sends the party to. In story order:
- Leaving Vale (
WORLD_MAP_VALE_PLAZA) setsFLAG_VALE_PARTY_LEFTthe first time. - Flint, the first Djinni, circles his spot until the party walks up to him
(
scWorldMapMeetFlint). He joins and teaches how Djinn are set and put on standby, and a lesson battle follows. - Hammet's caravan. It plays the first time the party touches Vault
(
WORLD_MAP_HAMMETS_CARAVAN_LEAVES). The caravan, cut off from Kalay by the destroyed bridge, turns north for Lunpa as the ground shakes and a rock falls beside it. Then the party goes on into Vault. It setsFLAG_LUNPA_GUARDS_SUSPECT_KALAY. - Mercury Lighthouse lit (
WORLD_MAP_AFTER_MERCURY_LIGHTHOUSE_LIT). The lighthouse transition plays (scWorldMapPlayLighthouseTransition), then Mercury Lighthouse Aerie follows (MERCURY_LIGHTHOUSE_AERIE_AFTER_BEACON_LIT). - Bunza's wagon. Out of West Lunpa Cave (
WORLD_MAP_WEST_LUNPA_CAVE) Bunza, Hammet and the leader board it and it rolls off (FLAG_BUNZAS_WAGON_LEFT). At the Kalay Tunnel Entrance (WORLD_MAP_FROM_KALAY_TUNNEL_ENTRANCE_SOUTH) it stops and the leader steps down. - The Tolbi-bound Ship's crossing of the Karagol Sea. Between the ship's
scenes (
WORLD_MAP_FROM_SHIP_ROOMS_SAIL_TO_FIRST_ATTACKto _SAIL_TO_LAND) the map shows the ship sailing west and sends the party back aboard (FLAG_TOLBI_SHIP_ROWING). A rowing off course takes it north to anchor off the island (WORLD_MAP_FROM_SHIP_ROOMS,FLAG_TOLBI_SHIP_AT_ISLAND). ThereMETATILE_BEHAVIOR_WORLD_MAP_CROSSBONE_ISLEleads ashore andMETATILE_BEHAVIOR_WORLD_MAP_TOLBI_SHIPback aboard.WORLD_MAP_FROM_TOLBI_SHIP_DECK_REACH_TOLBIends the crossing at Tolbi (FLAG_TOLBI_SHIP_REACHED_TOLBI). - The Black Orb. Out of Gateway Cave (
WORLD_MAP_GATEWAY_CAVE) Iodem sees Babi's ship scuttled off the coast and gives Isaac the orb to use on it (FLAG_WORLD_MAP_BLACK_ORB_HANDED_OVER,FLAG_SAW_SHIP_AT_IDEJIMA). He calls him back if he walks into the cave again. Used on the wreck, the orb sparkles but nothing happens: Iodem decides it is not yet time, takes it back and sends the party on to Babi Lighthouse (FLAG_BLACK_ORB_RETURNED). A defeat meanwhile returns toWORLD_MAP_AFTER_BLACK_ORB_DEFEAT, which discards the orb and leads on byWORLD_MAP_TO_ROCK_ROOMS. - Venus Lighthouse lit (
WORLD_MAP_AFTER_VENUS_LIGHTHOUSE_LIT). The lighthouse transition plays, then the party is back at the Lighthouse Aerie (VENUS_LIGHTHOUSE_AERIE_AFTER_BEACON_LIT). After the look back (WORLD_MAP_BEFORE_SHEBAS_FALL) the lighthouse shakes in clouds of dust before Sheba's fall (WORLD_MAP_TO_VENUS_LIGHTHOUSE_AERIE). - The ending. Once the cleared game is saved (scene/
file_screen.c,WORLD_MAP_FROM_FILE_SCREEN), the island Jenna and Kraden are adrift on drifts east.WORLD_MAP_JENNA_AND_KRADEN_ADRIFTthen shows Alex leading them to Felix and Sheba before the Title returns.
WORLD_MAP_FROM_DEBUG, the debug menus' entrance, turns encounters off.
Macros in detail
FLAG_WORLD_MAP_FALLING_ROCK_LANDED
#define FLAG_WORLD_MAP_FALLING_ROCK_LANDED FLAG_SCENE_TEMP(0x00)
The falling rock of Hammet's caravan script has landed and shattered.
Referenced by scWorldMapUpdateFallingRock().
Definition at line 143 of file world_map.c.
FLAG_WORLD_MAP_BLACK_ORB_HANDED_OVER
#define FLAG_WORLD_MAP_BLACK_ORB_HANDED_OVER FLAG_SCENE_TEMP(0x34)
Iodem has handed Isaac the Black Orb and waits for it to be used on the wreck off Gateway Cave.
Referenced by scInit(), scWorldMapRunBlackOrbScript(), scWorldMapSearchWreckage() and scWorldMapUseBlackOrb().
Definition at line 146 of file world_map.c.
FLAG_WORLD_MAP_ORDINARY_ACTORS
#define FLAG_WORLD_MAP_ORDINARY_ACTORS FLAG_SCENE_TEMP(0x35)
The scene's ordinary actor placements (WorldMapActorPlacements) are in use
rather than a script's.
Referenced by scGetActorPlacements().
Definition at line 149 of file world_map.c.
FLAG_WORLD_MAP_CAUGHT_IN_STORM
#define FLAG_WORLD_MAP_CAUGHT_IN_STORM FLAG_SCENE_TEMP(0xf0)
The storm holds the party up in the air, where Douse can bring it down.
Referenced by scWorldMapCatchInStorm(), scWorldMapDouseMapStorm() and WorldMapCues.
Definition at line 151 of file world_map.c.
FLAG_WORLD_MAP_STORM_GONE
#define FLAG_WORLD_MAP_STORM_GONE FLAG_SCENE_TEMP(0xf1)
The storm is done with, or put away while the Tolbi-bound Ship lies off the island, and catches no one.
Referenced by scWorldMapDouseMapStorm(), scWorldMapSetUpStorm(), WorldMapActorPlacements and WorldMapCues.
Definition at line 154 of file world_map.c.
FLAG_WORLD_MAP_STORM_TICKS_LEFT
#define FLAG_WORLD_MAP_STORM_TICKS_LEFT FLAG_SCENE_TEMP(0xf8)
The first flag of a byte counting the ticks the storm keeps the party in the
air. The byte is read and written with scFieldGameFlagGetByte and
scFieldGameFlagSetByte.
Referenced by scInit(), scWorldMapCatchInStorm(), scWorldMapDouseMapStorm() and scWorldMapUpdateStormTimer().
Definition at line 158 of file world_map.c.
STORM_TICKS_IN_AIR
#define STORM_TICKS_IN_AIR 180
The ticks the storm holds the party in the air before it drops them outside Suhalla.
Referenced by scWorldMapCatchInStorm().
Definition at line 161 of file world_map.c.
FLINT_SPOT_X
#define FLINT_SPOT_X 5584
Flint's spot just outside Vale, in map pixels, which he circles until the party meets him.
Referenced by scWorldMapCircleFlint() and scWorldMapMeetFlint().
Definition at line 164 of file world_map.c.
FLINT_SPOT_Z
#define FLINT_SPOT_Z 1328
Referenced by scWorldMapCircleFlint() and scWorldMapMeetFlint().
Definition at line 165 of file world_map.c.
IODEM_COAST_X
#define IODEM_COAST_X 6036
Where Iodem waits on the coast by Gateway Cave with the Black Orb handed over, in map pixels.
Referenced by scInit(), scWorldMapBlockGatewayCaveExit() and scWorldMapRunBlackOrbScript().
Definition at line 168 of file world_map.c.
IODEM_COAST_Z
#define IODEM_COAST_Z 3400
Referenced by scInit(), scWorldMapBlockGatewayCaveExit() and scWorldMapRunBlackOrbScript().
Definition at line 169 of file world_map.c.
STEP_CUE_AREA
#define STEP_CUE_AREA(actorId) (STEP_CUE_AREA_BASE + (actorId))
The metatile behavior raised by touching an area's actor.
Referenced by scWorldMapBlockGatewayCaveExit(), scWorldMapEnterBilibinBarricade(), scWorldMapEnterGondowanPassage(), scWorldMapEnterKalayDocks(), scWorldMapEnterKolimaBridge(), scWorldMapEnterLalivero(), scWorldMapRestoreGatewayCaveExit() and WorldMapCues.
Definition at line 293 of file world_map.c.
FLINT_GROW_TICKS
#define FLINT_GROW_TICKS 16
The ticks Flint takes to grow to full size as he comes down to the party.
Referenced by scWorldMapMeetFlint().
Definition at line 1651 of file world_map.c.
WORLD_MAP_QUEUE_TRANSITION_PICTURE
#define WORLD_MAP_QUEUE_TRANSITION_PICTURE(buffer, offset)
Queues one picture of the lighthouse transition, a whole tile map, into BG0's screen block.
Referenced by scWorldMapPlayLighthouseTransition() and scWorldMapShowTransitionPicture().
Definition at line 2354 of file world_map.c.
WORLD_MAP_LIGHT_BALL
#define WORLD_MAP_LIGHT_BALL(size) (LIGHT_BALL_TILES_SIZE + 128 + (size) * 1536)
Where picture size of the ball of light lies in the unpacked buffer: 0 is
the ball at its largest, 6 at its smallest, and 7 the picture shown before it
swells and after it shrinks.
Referenced by scWorldMapPlayLighthouseTransition().
Definition at line 2362 of file world_map.c.
LIGHT_BALL_TILES
#define LIGHT_BALL_TILES 128
The ball of light's tiles (lighthouse_transition.png), first in the unpacked
buffer: LIGHT_BALL_TILES 4-bit tiles, loaded into BG0's character block from
tile LIGHT_BALL_FIRST_TILE, which its pictures count from, and shown in BG
palette LIGHT_BALL_PALETTE.
Definition at line 2368 of file world_map.c.
LIGHT_BALL_TILES_SIZE
#define LIGHT_BALL_TILES_SIZE (LIGHT_BALL_TILES * TILE_SIZE_4BPP)
Referenced by scWorldMapPlayLighthouseTransition().
Definition at line 2369 of file world_map.c.
LIGHT_BALL_FIRST_TILE
#define LIGHT_BALL_FIRST_TILE 128
Referenced by scWorldMapPlayLighthouseTransition().
Definition at line 2370 of file world_map.c.
LIGHT_BALL_PALETTE
#define LIGHT_BALL_PALETTE 14
Referenced by scWorldMapPlayLighthouseTransition().
Definition at line 2371 of file world_map.c.
Enumerations in detail
anonymous enum
enum { CONTACT_LAST_ACTOR, STEP_CUE_AREA_BASE }
The actors scWorldMapUpdateAreaContacts looks at, the placed ones to the last
slot, and the base of the metatile behaviors a touch raises (STEP_CUE_AREA).
| Enumerator | Value | Description |
|---|---|---|
CONTACT_LAST_ACTOR | 65 | |
STEP_CUE_AREA_BASE | 100 |
Definition at line 199 of file world_map.c.
WORLD_MAP_ACTOR_ID
enum WORLD_MAP_ACTOR_ID
The World Map's own actors, numbered in the order of WorldMapActorPlacements
from ACTOR_FIRST_PLACED.
First come the Djinn met on the map, then the areas, then the Tolbi-bound Ship, the storm and Iodem.
Each area is named by the scene its exit leads into (WorldMapExits). Touching
it raises its STEP_CUE_AREA (scWorldMapUpdateAreaContacts).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_VENUS_DJINNI | ACTOR_FIRST_PLACED | The Venus Djinni: Flint, circling his spot until the party meets him, and later Vine. |
ACTOR_CORONA | The Mars Djinni Corona. | |
ACTOR_HAIL | The Mercury Djinni Hail. | |
ACTOR_TO_VALE_PLAZA | Vale, whose exit leads to the town gate (SceneIdValePlaza). | |
ACTOR_TO_VAULT | ||
ACTOR_TO_ALTIN | ||
ACTOR_TO_SUHALLA | ||
ACTOR_TO_LUNPA | ||
ACTOR_TO_KALAY_DOCKS | ||
ACTOR_TO_TOLBI_DOCKS | ||
ACTOR_TO_IMIL | ||
ACTOR_TO_KOLIMA | ||
ACTOR_TO_XIAN | ||
ACTOR_TO_LAMA_TEMPLE | ||
ACTOR_TO_FUCHIN_TEMPLE | ||
ACTOR_TO_BILIBIN | ||
ACTOR_TO_KALAY | ||
ACTOR_TO_LALIVERO | ||
ACTOR_TO_TOLBI | ||
ACTOR_TO_MERCURY_LIGHTHOUSE | ||
ACTOR_TO_BILIBIN_BARRICADE | ACTOR_TO_MERCURY_LIGHTHOUSE + 3 | After two pictures no script answers: a mountain north of Vale (SPRITE_WORLD_MAP_MOUNTAIN) and Venus Lighthouse, which is entered by the metatiles around it. |
ACTOR_TO_ROAD_TO_BABI_LIGHTHOUSE | ||
ACTOR_TO_GOMA_CAVE_ENTRANCE | ||
ACTOR_TO_GOMA_CAVE_BRIDGE | Goma Cave's way out, where a wooden bridge crosses the river (SceneIdGomaCaveBridge). | |
ACTOR_TO_ALTMILLER_CAVE | ||
ACTOR_TO_GONDOWAN_CAVE_NORTH | ||
ACTOR_TO_GONDOWAN_CAVE_SOUTH | ||
ACTOR_TO_MOGALL_FOREST_KILLER_APE | The way into Mogall Forest where the Killer Ape waits (SceneIdMogallForestKillerApe). | |
ACTOR_TO_GATEWAY_CAVE | ||
ACTOR_TO_BILIBIN_CAVE_ENTRANCE | ||
ACTOR_TO_BILIBIN_CAVE | ||
ACTOR_TO_WEST_LUNPA_CAVE | ||
ACTOR_TO_ALTIN_PEAK | ||
ACTOR_TO_LAMAKAN_DESERT_CAVE | ||
ACTOR_TO_KOLIMA_FOREST | ||
ACTOR_TO_MOGALL_FOREST_SIGN | The way into Mogall Forest by its broken | |
ACTOR_TO_KALAY_TUNNEL_ENTRANCE | sign (SceneIdMogallForestSign). | |
ACTOR_TO_KOLIMA_BRIDGE | ACTOR_TO_KALAY_TUNNEL_ENTRANCE + 4 | After three |
ACTOR_TO_GONDOWAN_PASSAGE | signposts (SPRITE_SIGNPOST). Unused: they stand at the map's origin, out of the player's reach, and no code moves them. | |
ACTOR_TOLBI_SHIP | ACTOR_TO_GONDOWAN_PASSAGE + 2 | The Tolbi-bound Ship at anchor off Crossbone Isle, after the wreck of Babi's ship (SPRITE_SHIPWRECK), which stands off Gateway Cave. |
ACTOR_STORM | The storm that lifts the party, as the Suhalla Desert's do. | |
ACTOR_IODEM | Placed by the coast once he has handed over the Black Orb. |
Definition at line 213 of file world_map.c.
WORLD_MAP_METATILE_BEHAVIOR
enum WORLD_MAP_METATILE_BEHAVIOR
The World Map's own metatile behaviors, which the map's metatiles carry.
Each exit metatile carries the number of the exit it leads to, so the exit
rows of WorldMapCues name their metatile behavior by that exit.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_WORLD_MAP_TOLBI_SHIP | 74 | the shore beside the anchored ship |
METATILE_BEHAVIOR_WORLD_MAP_CROSSBONE_ISLE | 75 | the island's shore, walked onto northward |
METATILE_BEHAVIOR_WORLD_MAP_FLINT | 90 | the ground around Flint |
METATILE_BEHAVIOR_WORLD_MAP_CORONA | 91 | the ground around Corona |
METATILE_BEHAVIOR_WORLD_MAP_VINE | 92 | the ground around Vine |
METATILE_BEHAVIOR_WORLD_MAP_HAIL | 93 | the ground around Hail |
METATILE_BEHAVIOR_WORLD_MAP_STORM | 95 | the ground under the storm |
METATILE_BEHAVIOR_WORLD_MAP_SHIPWRECK | 96 | the scuttled ship off Gateway Cave |
METATILE_BEHAVIOR_WORLD_MAP_TURTLE_BOOTS | 100 | the ground where the Turtle Boots are buried |
Definition at line 299 of file world_map.c.
WORLD_MAP_RAISED_CUE
enum WORLD_MAP_RAISED_CUE
Raised by scWorldMapUpdateStormTimer when the party's time in the air runs
out.
| Enumerator | Value | Description |
|---|---|---|
RAISED_STORM_TIME_UP | 99 |
Definition at line 319 of file world_map.c.
anonymous enum
enum { WORLD_MAP_BRIDGE_ANIMATION_LOWERED }
SPRITE_WORLD_MAP_BRIDGE's animation once Kolima Bridge's drawbridge is down.
| Enumerator | Value | Description |
|---|---|---|
WORLD_MAP_BRIDGE_ANIMATION_LOWERED | 2 |
Definition at line 325 of file world_map.c.
anonymous enum
enum { FALLING_ROCK_ANIMATION_TUMBLE, FALLING_ROCK_ANIMATION_SHATTER }
The falling rock's animations (blue_crystal.png). It tumbles as it falls,
then shatters where it lands.
| Enumerator | Value | Description |
|---|---|---|
FALLING_ROCK_ANIMATION_TUMBLE | 2 | |
FALLING_ROCK_ANIMATION_SHATTER | 3 |
Definition at line 332 of file world_map.c.
WORLD_MAP_CARAVAN_ACTOR_ID
enum WORLD_MAP_CARAVAN_ACTOR_ID
The actors of Hammet's caravan leaving Vault
(WorldMapActorPlacementsHammetsCaravan, WORLD_MAP_HAMMETS_CARAVAN_LEAVES),
numbered from ACTOR_FIRST_PLACED. Garet's row takes his own actor id.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_CARAVAN_HAMMET | ACTOR_FIRST_PLACED | Hammet, in his sprite, as ACTOR_HAMMET is out of West Lunpa Cave. |
ACTOR_CARAVAN_MAN | One of Hammet's men, bald and bare-chested. "Master Hammet! This is terrible! The bridge has been destroyed..." | |
ACTOR_CARAVAN_FIRST_WAGON | The caravan's four wagons, in | |
ACTOR_INVISIBLE_ROCK_GUIDE | ACTOR_CARAVAN_FIRST_WAGON + 4 | the sprite of Bunza's wagon. A blank actor (SPRITE_BLANK) that the falling rock is held above as it drops (scWorldMapUpdateFallingRock). It grows from a tenth of its size as it moves (CaravanRockGuideScript). |
ACTOR_FALLING_ROCK | Drawn as the rocks in sol_sanctum_eruption.c. It lands by the caravan and shatters. |
Definition at line 341 of file world_map.c.
anonymous enum
enum { ACTOR_CROSSING_SHIP }
The Tolbi-bound Ship, shown on its way across the Karagol Sea.
It is the first actor of WorldMapActorPlacementsCrossingEnds and
WorldMapActorPlacementsCrossing
(WORLD_MAP_FROM_SHIP_ROOMS_SAIL_TO_FIRST_ATTACK to
WORLD_MAP_FROM_TOLBI_SHIP_DECK_REACH_TOLBI and WORLD_MAP_FROM_SHIP_ROOMS).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_CROSSING_SHIP | ACTOR_FIRST_PLACED |
Definition at line 370 of file world_map.c.
anonymous enum
enum { ACTOR_KALAY_WAGON }
Bunza's wagon at Kalay (WorldMapActorPlacementsFromKalayTunnelEntranceSouth),
after Kalay's and the Kalay Tunnel Entrance's area actors.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_KALAY_WAGON | ACTOR_FIRST_PLACED + 2 |
Definition at line 377 of file world_map.c.
anonymous enum
enum { ACTOR_DRIFTING_ISLAND }
The one actor of WorldMapActorPlacementsFromClear, before the ending.
It is the island Jenna and Kraden are adrift on ("How long will this island
continue to drift?"). It drifts east trailing a wake
(scWorldMapSpawnIslandWake) until the map leads into their script.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_DRIFTING_ISLAND | ACTOR_FIRST_PLACED |
Definition at line 387 of file world_map.c.
WORLD_MAP_ENDING_ACTOR_ID
enum WORLD_MAP_ENDING_ACTOR_ID
The ending's actors (WorldMapActorPlacementsJennaAndKradenAdrift), numbered
from ACTOR_FIRST_PLACED after the rows of Jenna and Sheba, which take their
own actor ids.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_KRADEN | ACTOR_FIRST_PLACED | Kraden, adrift with Jenna. |
ACTOR_ALEX | Alex, who comes to show them that Felix and Sheba are alive. "There is something I wish to show you." | |
ACTOR_FELIX | Felix, in his sprite as at Mercury Lighthouse (SPRITE_FELIX, mercury_lighthouse_aerie.c), shown with Sheba as Jenna and Kraden call their names. |
Definition at line 395 of file world_map.c.
anonymous enum
enum { ANIM_JENNA_LIE, ANIM_KRADEN_LIE }
Animations the map plays by number beyond ACTOR_ANIMATION, from each sprite's
animation table (graphics/sprite/<name>.tsv).
| Enumerator | Value | Description |
|---|---|---|
ANIM_JENNA_LIE | 19 | lying on her back (jenna.tsv's animation list) |
ANIM_KRADEN_LIE | 5 | lying on his back (kraden.tsv) |
Definition at line 410 of file world_map.c.
anonymous enum
enum { ENCOUNTER_SLOT_DJINN_LESSON, ENCOUNTER_SLOT_TORNADO_LIZARD, ENCOUNTER_SLOT_TEMPEST_LIZARD }
The battles the map starts from the scripted encounter tables.
| Enumerator | Value | Description |
|---|---|---|
ENCOUNTER_SLOT_DJINN_LESSON | 6 | Flint's lesson battle (ENCOUNTER_ZONE_SCRIPTED_VALE_VAULT). |
ENCOUNTER_SLOT_TORNADO_LIZARD | 5 | The Tornado Lizard of Suhalla Desert's sandstorms (ENCOUNTER_ZONE_SCRIPTED). |
ENCOUNTER_SLOT_TEMPEST_LIZARD | 7 | The Tempest Lizard of its great red storm (ENCOUNTER_ZONE_SCRIPTED). |
Definition at line 417 of file world_map.c.
anonymous enum
enum { ACTOR_WAGON, ACTOR_BUNZA, ACTOR_HAMMET }
The actors placed at WORLD_MAP_WEST_LUNPA_CAVE
(WorldMapActorPlacementsFromWestLunpaCave), numbered from ACTOR_FIRST_PLACED.
Bunza's wagon comes first. Bunza and Hammet come after Lunpa's and West Lunpa Cave's area actors.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_WAGON | ACTOR_FIRST_PLACED | Bunza's wagon. |
ACTOR_BUNZA | ACTOR_FIRST_PLACED + 3 | |
ACTOR_HAMMET |
Definition at line 1040 of file world_map.c.
anonymous enum
enum { QUAKE_DUST_LEFT, QUAKE_DUST_TOP, QUAKE_DUST_WIDTH, QUAKE_DUST_DEPTH }
The box around Venus Lighthouse, in pixels, where dust puffs up as it shakes
(scWorldMapUpdateLighthouseQuake).
| Enumerator | Value | Description |
|---|---|---|
QUAKE_DUST_LEFT | 6064 | |
QUAKE_DUST_TOP | 3148 | |
QUAKE_DUST_WIDTH | 40 | |
QUAKE_DUST_DEPTH | 30 |
Definition at line 2340 of file world_map.c.
Functions in detail
scInit
Sint32 scInit(void)
Sets the map up for the entrance the party arrives by: the lighthouse transitions and the Black Orb defeat lead straight on to another scene; every other way in starts the area contacts and plays the story moment its entrance names, if any.
References fdActorGet(), fdScriptGetFlag(), fdScriptSetDestination(), fdScriptStart(), fdSetWorldMapGridTile(), gmFlagClear(), gmFlagGet(), gmFlagSet(), gmPartyInventoryDiscard(), IodemActor, MainRoutineStateWork, scFieldGameFlagGetByte(), scWorldMapBlockGatewayCaveExit(), scWorldMapBoardBunzasWagon(), scWorldMapPlayLighthouseTransition(), scWorldMapRunBlackOrbScript(), scWorldMapSailIntoTolbi(), scWorldMapSailToFirstMonsterAttack(), scWorldMapSailToKraken(), scWorldMapSailTolbiShipToIsland(), scWorldMapSailToSecondMonsterAttack(), scWorldMapSailToThirdMonsterAttack(), scWorldMapSailUntilLandSighted(), scWorldMapShakeVenusLighthouse(), scWorldMapShowEndingScript(), scWorldMapShowHammetsCaravan(), scWorldMapShowIslandDrifting(), scWorldMapStepDownFromBunzasWagon(), scWorldMapUpdateAreaContacts(), scWorldMapUpdateStormTimer(), Sint32, syImportScriptSetExitRequest(), sySetTickEvent() and sySynch().
Definition at lines 104 and 892 of file world_map.c.
scWorldMapAlignToMap
static Sint32 scWorldMapAlignToMap(ACTOR *actor)
The actor script of every picture on the map (WorldMapAlignToMapScript). It
turns the sprite with the map's rotation.
Referenced by scWorldMapSetUpKolimaBridge() and WorldMapAlignToMapScript.
Definition at lines 171 and 611 of file world_map.c.
scWorldMapBoardBunzasWagon
static void scWorldMapBoardBunzasWagon(void)
Out of West Lunpa Cave once Dodonpa is locked up, Bunza and then Hammet come out beside Isaac at the cave mouth, face each other and nod. A covered wagon pulls up beside them; Hammet, Bunza and Isaac climb aboard in turn, and it rolls off east and away south out of sight, and the screen closes for the Kalay Tunnel Entrance.
References fdActorFaceDirection(), fdActorGet(), fdActorSetAnimation(), fdActorSetDestination(), fdActorSetDestinationOffset(), fdActorWaitForMoveById(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), fdWorldMapFreeze(), gmFlagSet() and syImportScriptSetExitRequest().
Referenced by scInit().
Definition at lines 172 and 1053 of file world_map.c.
scWorldMapShowHammetsCaravan
static void scWorldMapShowHammetsCaravan(void)
The first time the party walks onto Vault, Hammet's caravan comes out of the town: its wagons roll up beside the party, Hammet says they cannot stay in so dangerous a place, and the caravan heads south to the river, where his man finds the bridge is down.
While Hammet and his man talk of leaving Ivan behind and of the rod Ivan will search for, the ground shakes and a rock falls beside them. The party is then taken into Vault by its south side.
References CaravanFirstWagonArrives, CaravanFirstWagonDeparts, CaravanFirstWagonReturns, CaravanFourthWagonArrives, CaravanFourthWagonDeparts, CaravanFourthWagonReturns, CaravanRockGuideScript, CaravanSecondWagonArrives, CaravanSecondWagonDeparts, CaravanSecondWagonReturns, CaravanThirdWagonArrives, CaravanThirdWagonDeparts, CaravanThirdWagonReturns, CaravanWagonHeadsNorth, fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSelectAnimation(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetPosFX(), fdActorSetScript(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWaitForScriptEndById(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), fdWorldMapFreeze(), fdWorldMapStartZoom(), fdWorldMapUnfreeze(), gmFlagSet(), scFieldScriptShowMessageThenWait(), scWalkIntoLeader(), scWorldMapShakeCameraOverCaravan(), scWorldMapShakeCameraWhereRockFalls(), scWorldMapUpdateFallingRock() and 6 more.
Referenced by scInit().
Definition at lines 173 and 1128 of file world_map.c.
scWorldMapShakeCameraOverCaravan
static void scWorldMapShakeCameraOverCaravan(void)
Shakes the camera around Hammet and his man as the ground trembles.
References scWorldMapMoveShakeCamera().
Referenced by scWorldMapShowHammetsCaravan().
Definition at lines 174 and 1421 of file world_map.c.
scWorldMapShakeCameraWhereRockFalls
static void scWorldMapShakeCameraWhereRockFalls(void)
Shakes the camera around the spot where the falling rock lands.
References scWorldMapMoveShakeCamera().
Referenced by scWorldMapShowHammetsCaravan().
Definition at lines 175 and 1438 of file world_map.c.
scWorldMapUpdateFallingRock
static void scWorldMapUpdateFallingRock(void)
Keeps the falling rock above its guide as it drops, and lands it once.
References fdActorGet(), fdActorSelectAnimation(), fdScriptGetFlag(), gmFlagSet() and sySoundPlay().
Referenced by scWorldMapShowHammetsCaravan().
Definition at lines 176 and 1455 of file world_map.c.
scWorldMapSailToFirstMonsterAttack
static void scWorldMapSailToFirstMonsterAttack(void)
The Tolbi-bound Ship, drawn a quarter larger, sails out of Kalay Docks on the World Map before the first attack at the mast.
References fdActorGet(), fdActorWalkToAndWait(), fdCameraFollowActor(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), gmFlagSet(), syImportScriptSetExitRequest() and sySynch().
Referenced by scInit().
Definition at lines 177 and 1479 of file world_map.c.
scWorldMapSailToSecondMonsterAttack
static void scWorldMapSailToSecondMonsterAttack(void)
The ship sails west across the Karagol Sea after the first attack, and the screen closes for the second attack at the mast.
References scWorldMapSailCrossingLeg().
Referenced by scInit().
Definition at lines 178 and 1535 of file world_map.c.
scWorldMapSailToThirdMonsterAttack
static void scWorldMapSailToThirdMonsterAttack(void)
The ship sails on west after the second attack, and the screen closes for the third.
References scWorldMapSailCrossingLeg().
Referenced by scInit().
Definition at lines 179 and 1542 of file world_map.c.
scWorldMapSailToKraken
static void scWorldMapSailToKraken(void)
The ship sails on west after the third attack, and the screen closes on the ship's rooms for the fourth, the Kraken's.
References scWorldMapSailCrossingLeg().
Referenced by scInit().
Definition at lines 180 and 1549 of file world_map.c.
scWorldMapSailUntilLandSighted
static void scWorldMapSailUntilLandSighted(void)
After the Kraken, the ship sails west across open sea until the screen closes on the mast, where land is sighted.
References CrossingShipDriftsNorth, CrossingShipSailsWest, fdActorGet(), fdActorSetScript(), fdCameraFollowActor(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), gmFlagSet(), scWorldMapGetRowingBalance(), syImportScriptSetExitRequest() and sySynch().
Referenced by scInit().
Definition at lines 181 and 1556 of file world_map.c.
scWorldMapSailIntoTolbi
static void scWorldMapSailIntoTolbi(void)
The ship sails the last stretch along the coast into Tolbi's harbour, and the scene changes to its deck.
References fdActorGet(), fdActorWalkToAndWait(), fdCameraFollowActor(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), gmFlagClear(), gmFlagSet(), syImportScriptSetExitRequest() and sySynch().
Referenced by scInit().
Definition at lines 182 and 1594 of file world_map.c.
scWorldMapStepDownFromBunzasWagon
static void scWorldMapStepDownFromBunzasWagon(void)
Brings Bunza's wagon to a stop and lets Isaac step down, after Hammet's
return home (kalay.c's scKalayHammetReturnsToPalace).
References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorMoveToAndWait(), fdActorSetAnimation(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), syImportScriptSetExitRequest(), sySoundPlay() and sySynch().
Referenced by scInit().
Definition at lines 183 and 1935 of file world_map.c.
scWorldMapRunBlackOrbScript
static void scWorldMapRunBlackOrbScript(void)
Out of Gateway Cave, Iodem sees Babi's ship scuttled off the coast, gives Isaac the Black Orb and prompts him to use it on the ship.
References BlackOrbLeaderScript, fdActorFaceDirection(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAttachedEffect(), fdActorSetPosFX(), fdActorSetScript(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWalkToAndWait(), fdCameraWaitForMove(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), fdWorldMapFreeze(), fdWorldMapStartZoom(), fdWorldMapUnfreeze(), gmFlagSet(), gmItemShowFound(), gmPartyGiveItem(), IodemActor, MainRoutineStateWork, scWorldMapBlockGatewayCaveExit() and sySynch().
Referenced by scInit().
Definition at lines 184 and 1996 of file world_map.c.
scWorldMapBlockGatewayCaveExit
static void scWorldMapBlockGatewayCaveExit(Sint32 actorId)
While Iodem waits with the Black Orb handed over, walking into Gateway Cave
runs scWorldMapIodemCallsIsaacBack instead of entering it, and his row of the
placements stands him on the coast. actorId goes unread.
References scWorldMapIodemCallsIsaacBack(), Sint32, WorldMapActorPlacements and WorldMapCues.
Referenced by scInit() and scWorldMapRunBlackOrbScript().
Definition at lines 185 and 2085 of file world_map.c.
scWorldMapIodemCallsIsaacBack
static void scWorldMapIodemCallsIsaacBack(void)
Walking back into Gateway Cave with the Black Orb unused makes Iodem call the leader back to the coast.
References fdActorWalkToAndWait(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdWorldMapFreeze(), fdWorldMapUnfreeze() and IodemActor.
Referenced by scWorldMapBlockGatewayCaveExit().
Definition at lines 186 and 2150 of file world_map.c.
scWorldMapShowEndingScript
static void scWorldMapShowEndingScript(void)
The ending, on the island Jenna and Kraden are adrift on: they lie on its grass and talk of the Venus beacon, Alex comes to them, and he leads them to the shore, where Felix and Sheba lie washed up, alive.
References EndingAlexWalk, EndingJennaWalk, EndingKradenWalk, fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdActorWalkTo(), fdActorWalkToAndWait(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptSetDestination(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitForZoomTransition(), fdWorldMapFreeze(), fdWorldMapLoadDefaultMetatilesAndUpdateBlock(), fdWorldMapStartZoom(), MainRoutineStateWork, mnWindowColorApply(), scFieldScriptShowMessageThenWait(), scFieldScriptShowTwoMessagesAndWait(), sySoundPlay() and sySynch().
Referenced by scInit().
Definition at lines 187 and 2376 of file world_map.c.
scWorldMapShakeVenusLighthouse
static void scWorldMapShakeVenusLighthouse(void)
After the beacon is lit, the view settles on Venus Lighthouse on the World Map, which shakes with a rumble as yellow clouds of dust puff up round it, before the scene returns to the aerie for Sheba's fall.
References fdActorGet(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeStartInterpolation(), fdScriptEnd(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmFlagSet(), scWorldMapUpdateLighthouseQuake(), syImportScriptSetExitRequest(), sySetTickEvent(), sySoundPlay() and sySynch().
Referenced by scInit().
Definition at lines 188 and 2521 of file world_map.c.
scWorldMapUpdateLighthouseQuake
static void scWorldMapUpdateLighthouseQuake(void)
Run each tick while Venus Lighthouse shakes.
References fdActorSelectAnimation(), fdActorStartScript(), QuakeCloudScript, scFieldActorCreate() and TickCount.
Referenced by scWorldMapShakeVenusLighthouse().
Definition at lines 189 and 2551 of file world_map.c.
scWorldMapSailTolbiShipToIsland
static void scWorldMapSailTolbiShipToIsland(void)
A leg of the Tolbi-bound Ship's crossing: from open sea the ship sails north-west with the camera on it until the green, wooded coast of an island comes into view, then turns north along the shore through the shallows and slows to a stop beside it. The screen closes for the rowing deck at the island.
References fdActorGet(), fdActorMoveToAndWait(), fdActorSetAnimation(), fdCameraFollowActor(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), fdWorldMapStartZoom(), syImportScriptSetExitRequest() and sySynch().
Referenced by scInit().
Definition at lines 190 and 2591 of file world_map.c.
scWorldMapGetRowingBalance
static Sint32 scWorldMapGetRowingBalance(void)
The rowing balance of the chosen passengers, as
scTolbiShipMastGetRowingBalance reckons it: the values of those at the west
seats (the first and third) less those at the east seats (the second and
fourth).
References scWorldMapGetSeatRowValue() and Sint32.
Referenced by scWorldMapSailUntilLandSighted().
Definition at lines 191 and 2626 of file world_map.c.
scWorldMapGetSeatRowValue
static Sint32 scWorldMapGetSeatRowValue(Uint32 seat)
The rowing value of the passenger chosen for a seat, or 0 while it is empty.
References gmFlagGet(), Sint32 and TolbiShipPassengerRowValues.
Referenced by scWorldMapGetRowingBalance().
Definition at lines 192 and 2637 of file world_map.c.
scWorldMapShowIslandDrifting
static void scWorldMapShowIslandDrifting(void)
Before the ending, the island Jenna and Kraden are adrift on drifts east across a darkened sea, trailing a pale wake, as the view closes in on it, then the screen fades to white.
The darkening is PALETTE_TINT_DIM, applied to the backgrounds only.
References fdActorGet(), fdActorSetScript(), fdActorSetSpriteColorById(), fdActorSetSpriteFlags(), fdCameraFollowActor(), fdPaletteFadeApplyTarget(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), fdWorldMapStartZoom(), IslandDriftsEast, scWorldMapSpawnIslandWake(), syImportScriptSetExitRequest(), sySetTickEvent() and sySynch().
Referenced by scInit().
Definition at lines 193 and 2706 of file world_map.c.
scWorldMapUpdateStormTimer
static void scWorldMapUpdateStormTimer(void)
Run each tick while a storm holds the party in the air: it spins the leader round and counts down the time left, which stands still while the menu is open.
References fdActorGet(), gmFlagGet(), MainRoutineStateWork, scFieldGameFlagGetByte(), scFieldGameFlagSetByte(), Sint32, state and TickCount.
Referenced by scInit() and scWorldMapCatchInStorm().
Definition at lines 194 and 2742 of file world_map.c.
scWorldMapPlayLighthouseTransition
static void scWorldMapPlayLighthouseTransition(WORLD_MAP_LIGHTHOUSE lighthouse)
The lighthouse transition, after a beacon is lit: on the World Map, darkened to a deep blue, a ball of light in the lighthouse's colours (blue for Mercury Lighthouse) swells over the lighthouse's top, glows there for 140 ticks and shrinks away. The map brightens again as the camera shakes with a rumble, then the screen closes for the aerie, its beacon lit (https://alchemy.pascalpixel.com/story/venus-lighthouse-lit.gif).
The ball is seven pictures, tile maps drawn on BG0 in the lighthouse's
colours (WorldMapPalettes, by WORLD_MAP_LIGHTHOUSE).
It clears FLAG_KEEP_PARTY_POSITION and sets FLAG_SKIP_SCENE_CHANGE_SOUND.
References fdActorGet(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), fdWorldMapLoadAreaGraphics(), fdWorldMapStartStillImage(), gmFlagClear(), gmFlagSet(), MainRoutineStateWork, scFieldDecompressTaggedLZ(), scWorldMapJitterTransitionCamera(), scWorldMapShowTransitionPicture(), scWorldMapUpdateTransitionBlend(), syHeapAllocateEWRAM(), syHeapRelease(), sySetTickEvent(), sySoundPlay(), sySynch(), WorldMapBlendWork, WorldMapPackedPictures, WorldMapPackedTiles and WorldMapPalettes.
Referenced by scInit().
Definition at lines 195 and 2961 of file world_map.c.
scWorldMapMeetVine
static void scWorldMapMeetVine(void)
Walking over the small island north-west of the Lamakan Desert's way out, once a random battle is nearly due, may start a battle with the Venus Djinni Vine; nothing is seen of him beforehand.
From nine tenths of the steps to the next battle on, each step there has an even chance of bringing Vine's battle; otherwise the next random battle is made due at once. The row for talking to him is never reached, as his actor stays at the map's corner once it has played Flint.
References fdRequestDjinnBattle(), MainRoutineStateWork, state and syRandomNext().
Referenced by WorldMapCues.
Definition at line 435 of file world_map.c.
scWorldMapMeetCorona
static void scWorldMapMeetCorona(void)
Walking over the lone island far north of Xian, once a random battle is nearly due, starts a battle with the Mars Djinni Corona; nothing is seen of him beforehand.
His actor is placed at the map's corner, out of reach, so the row for talking to him is never reached.
References fdRequestDjinnBattle(), MainRoutineStateWork, Sint32 and state.
Referenced by WorldMapCues.
Definition at line 461 of file world_map.c.
scWorldMapMeetHail
static void scWorldMapMeetHail(void)
Walking over the fields far west of Tolbi, once a random battle is nearly due, starts a battle with the Mercury Djinni Hail; nothing is seen of him beforehand.
His actor is placed at the map's corner, out of reach, so the row for talking to him is never reached.
References fdRequestDjinnBattle(), MainRoutineStateWork, Sint32 and state.
Referenced by WorldMapCues.
Definition at line 480 of file world_map.c.
scWorldMapReleaseSparkAfterDelay
static void scWorldMapReleaseSparkAfterDelay(ACTOR *actor)
The update function of a sparkle around the Black Orb. It releases the sparkle on its second tick.
References fdActorRelease().
Referenced by scWorldMapPulseOrbAndSpawnSparks().
Definition at line 495 of file world_map.c.
scWorldMapPulseOrbAndSpawnSparks
static void scWorldMapPulseOrbAndSpawnSparks(ACTOR *actor)
The update function of the Black Orb held up over the wreck. It swells and shrinks every four ticks and gives off a sparkle every other tick.
References fdActorSelectAnimation(), fdActorSetSpriteFlags(), scFieldActorCreate(), scWorldMapReleaseSparkAfterDelay(), sySoundPlay() and TickCount.
Referenced by scWorldMapUseBlackOrb().
Definition at line 509 of file world_map.c.
scWorldMapCircleFlint
static void scWorldMapCircleFlint(ACTOR *actor)
Flint's update function until the party meets him (scWorldMapSetUpFlint).
References fdActorSetColorMode(), syMulFX(), sySin(), syVectorAddPolarOffset() and TickCount.
Referenced by scWorldMapSetUpFlint().
Definition at line 544 of file world_map.c.
scWorldMapSetUpFlint
static Sint32 scWorldMapSetUpFlint(ACTOR *actor)
Flint's actor script (WorldMapFlintScript). Until he is caught or his lesson
has begun (FLAG_DJINN_LESSON), he circles his spot at half size.
References gmFlagGet(), scWorldMapCircleFlint() and Sint32.
Referenced by WorldMapFlintScript.
Definition at line 564 of file world_map.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References WorldMapEntrances.
Definition at line 583 of file world_map.c.
scGetExitRegions
const SCENE_EXIT_REGION *scGetExitRegions(void)
Definition at line 588 of file world_map.c.
scGetExits
const Uint32 *scGetExits(void)
References WorldMapExits.
Definition at line 593 of file world_map.c.
scWorldMapSetUpKolimaBridge
static Sint32 scWorldMapSetUpKolimaBridge(ACTOR *actor)
Kolima Bridge's actor script (WorldMapKolimaBridgeScript).
References fdActorSelectAnimation(), gmFlagGet(), scWorldMapAlignToMap() and Sint32.
Referenced by WorldMapKolimaBridgeScript.
Definition at line 599 of file world_map.c.
scWorldMapSetUpIodem
static Sint32 scWorldMapSetUpIodem(ACTOR *actor)
Iodem's actor script (WorldMapIodemScript). He turns with the map and blocks
the way, so the leader cannot walk through him.
Referenced by WorldMapIodemScript.
Definition at line 623 of file world_map.c.
scWorldMapSetUpStorm
static Sint32 scWorldMapSetUpStorm(ACTOR *actor)
Sets up the storm (ACTOR_STORM) as it is placed.
References fdActorSetColorMode(), fdActorSetSpriteFlags(), gmFlagGet(), gmFlagSet() and Sint32.
Referenced by WorldMapStormScript.
Definition at line 634 of file world_map.c.
scWorldMapHideStormOnOddTicks
static Sint32 scWorldMapHideStormOnOddTicks(ACTOR *actor)
Called each tick by the storm's actor script (WorldMapStormScript): it hides
the storm on odd ticks, but scWorldMapUpdateAreaContacts shows it again in
the same tick, and it is drawn in every tick.
References Sint32 and TickCount.
Referenced by WorldMapStormScript.
Definition at line 651 of file world_map.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
Chooses the actors for the entrance.
References gmFlagGet(), gmFlagSet(), MainRoutineStateWork, WorldMapActorPlacements, WorldMapActorPlacementsBeforeShebasFall, WorldMapActorPlacementsCrossing, WorldMapActorPlacementsCrossingEnds, WorldMapActorPlacementsFromClear, WorldMapActorPlacementsFromKalayTunnelEntranceSouth, WorldMapActorPlacementsFromWestLunpaCave, WorldMapActorPlacementsHammetsCaravan and WorldMapActorPlacementsJennaAndKradenAdrift.
Definition at line 659 of file world_map.c.
scWorldMapSelectExitByX
static void scWorldMapSelectExitByX(Sint32 cue, Sint32 exitBefore, Sint32 exitAfter)
Takes the party into an area with two ways in by the side it walks up from:
exitBefore if the leader is west of the area's picture, else exitAfter,
with the sound of leaving the map.
References fdActorGet(), MainRoutineStateWork, Sint32, state and sySoundPlay().
Referenced by scWorldMapEnterBilibinBarricade().
Definition at line 702 of file world_map.c.
scWorldMapSelectExitByZ
static void scWorldMapSelectExitByZ(Sint32 cue, Sint32 exitBefore, Sint32 exitAfter)
Takes the party into an area with two ways in by the side it walks up from:
exitBefore if the leader is north of the area's picture, else exitAfter,
with the sound of leaving the map.
References fdActorGet(), MainRoutineStateWork, Sint32, state and sySoundPlay().
Referenced by scWorldMapEnterGondowanPassage(), scWorldMapEnterKalayDocks(), scWorldMapEnterKolimaBridge() and scWorldMapEnterLalivero().
Definition at line 726 of file world_map.c.
scWorldMapEnterBilibinBarricade
static void scWorldMapEnterBilibinBarricade(void)
Walking onto the Bilibin Barricade on the World Map enters it by the side the party comes from, west or east.
References scWorldMapSelectExitByX().
Referenced by WorldMapCues.
Definition at line 749 of file world_map.c.
scWorldMapEnterKolimaBridge
static void scWorldMapEnterKolimaBridge(void)
Walking onto Kolima Bridge on the World Map enters it at its north end from the north, or at its south end from the south.
References scWorldMapSelectExitByZ().
Referenced by WorldMapCues.
Definition at line 758 of file world_map.c.
scWorldMapEnterKalayDocks
static void scWorldMapEnterKalayDocks(void)
Walking onto Kalay Docks on the World Map enters them by their north side from the north, or by their south side from the south.
References scWorldMapSelectExitByZ().
Referenced by WorldMapCues.
Definition at line 767 of file world_map.c.
scWorldMapEnterGondowanPassage
static void scWorldMapEnterGondowanPassage(void)
Walking onto Gondowan Passage on the World Map enters it at its north end from the north, or at its south end from the south.
References scWorldMapSelectExitByZ().
Referenced by WorldMapCues.
Definition at line 776 of file world_map.c.
scWorldMapEnterLalivero
static void scWorldMapEnterLalivero(void)
Walking onto Lalivero on the World Map enters the town by its west side from the north, or by its east side from the south.
References scWorldMapSelectExitByZ().
Referenced by WorldMapCues.
Definition at line 785 of file world_map.c.
scGetCues
const CUE *scGetCues(void)
References WorldMapCues.
Definition at line 792 of file world_map.c.
scWorldMapUpdateAreaContacts
static void scWorldMapUpdateAreaContacts(void)
Run each tick on the map, where scInit adds it: it shows only the area
pictures near the view and, when the leader touches one, raises that area's
cue.
References DebugMode, fdActorGet(), fdActorLookup(), gmFlagGet(), MainRoutineStateWork, Sint32 and state.
Referenced by scInit().
Definition at line 800 of file world_map.c.
scWorldMapEnterVault
static void scWorldMapEnterVault(void)
Walking onto Vault on the World Map enters the town by its south side. The first time, Hammet's caravan is seen leaving first.
References gmFlagGet(), syImportScriptSetExitRequest() and sySoundPlay().
Referenced by WorldMapCues.
Definition at line 867 of file world_map.c.
scWorldMapReturnToTolbiShip
static void scWorldMapReturnToTolbiShip(void)
Walking east along Crossbone Isle's shore into the anchored Tolbi-bound Ship takes the party back aboard, onto its deck.
References fdScriptStart() and syImportScriptSetExitRequest().
Referenced by WorldMapCues.
Definition at line 882 of file world_map.c.
scWorldMapMoveShakeCamera
static inline void scWorldMapMoveShakeCamera(Sint32 x, Sint32 z)
Moves to the next camera-shake point, in whole pixels, and holds it for four ticks.
References fdCameraMoveToFX(), Sint32 and sySynch().
Referenced by scWorldMapShakeCameraOverCaravan() and scWorldMapShakeCameraWhereRockFalls().
Definition at line 1414 of file world_map.c.
scWorldMapSailCrossingLeg
static inline void scWorldMapSailCrossingLeg(Sint32 exit)
A middle leg of the Karagol Sea crossing: the ship, seen from above, sails
west over open sea with the camera following it, until the screen closes on
the scene exit leads to.
References CrossingShipSailsWest, fdActorGet(), fdActorSetScript(), fdCameraFollowActor(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), gmFlagSet(), Sint32, syImportScriptSetExitRequest() and sySynch().
Referenced by scWorldMapSailToKraken(), scWorldMapSailToSecondMonsterAttack() and scWorldMapSailToThirdMonsterAttack().
Definition at line 1504 of file world_map.c.
scWorldMapExplainSettingDjinn
static void scWorldMapExplainSettingDjinn(void)
Flint explains how a Djinni is set and put on standby, running the Djinn menu for each part of the lesson, then starts the lesson battle. "After bringing a Djinni into your party, you must set it to somebody."
References fdActorJump(), fdActorRunRepeatedMotion(), fdRequestBattleFromEncounterTable(), fdScriptClearFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptWait(), fdScriptWaitForZoomTransition(), fdWorldMapFreeze(), fdWorldMapStartZoom(), fdWorldMapUnfreeze(), gmFlagClear(), gmFlagSet(), mnAnimateSelectionToEntry(), mnDjinnMenuRun() and sySoundPlay().
Referenced by scWorldMapMeetFlint().
Definition at line 1622 of file world_map.c.
scWorldMapMeetFlint
static void scWorldMapMeetFlint(void)
Walking up to Flint, the spark circling his spot just outside Vale: he cries "Oh!", drops down beside Isaac at full size, "A traveling warrior!", shimmers with sparkles, and asks to come along to find his comrades, telling how Djinn make an Adept's Psynergy stronger. Each "No" makes him plead again, and the seventh time he comes anyway; on "Yes", "Flint, the Venus Djinni, is now Isaac's ally!" Then he teaches the Djinn screen: it opens, and he shows how to give a Djinni to another Adept and set it, and that setting one changes attributes and even class. Then comes the lesson battle.
Back from it, still on his ground (FLAG_DJINN_LESSON set), he leaps up again:
"See! We Djinn can be very useful, can't we?" He shows the Djinn screen once
more for standby and recovery, offers to explain it all again, and at last
joins for good.
References fdActorFaceActor(), fdActorGet(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetColorMode(), fdActorSetPosFX(), fdActorShowEmote(), fdActorWalkToAndWait(), fdDjinnJoinParty(), fdPsynergyEnd(), fdPsynergyLoadResources(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), fdScriptWait(), fdScriptWaitForZoomTransition(), fdWorldMapFreeze(), fdWorldMapStartZoom(), fdWorldMapUnfreeze(), gmDjinnGive(), gmDjinnRecoveryAddStandby(), gmFlagClear(), gmFlagSet(), gmPartyRestoreHpPp(), mnAnimateSelectionToEntry(), mnDjinnMenuRun(), mnMessageArgumentPush(), mnMessageShowCentered(), scFieldActorSetMoveTargetFX(), scSpawnGoldenRing(), scWorldMapExplainSettingDjinn(), Sint32, sySoundPlay(), sySynch() and TickCount.
Referenced by WorldMapCues.
Definition at line 1666 of file world_map.c.
scWorldMapRestoreGatewayCaveExit
static void scWorldMapRestoreGatewayCaveExit(void)
Makes touching Gateway Cave an exit again, to WORLD_MAP_GATEWAY_CAVE.
References Sint32 and WorldMapCues.
Referenced by scWorldMapUseBlackOrb().
Definition at line 2115 of file world_map.c.
scWorldMapTalkAboutBlackOrb
static void scWorldMapTalkAboutBlackOrb(void)
Talking to Iodem, who gave the Black Orb, or reading his mind, makes him urge its use. "Now use it... on the ship."
References fdActorFaceActor(), fdActorFaceDirection(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart() and IodemActor.
Referenced by WorldMapCues.
Definition at line 2137 of file world_map.c.
scWorldMapSearchWreckage
static void scWorldMapSearchWreckage(void)
Checking the wreck of Babi's ship off the coast by Gateway Cave reads "The wreckage of a ship scuttled off the coast." While Isaac holds the Black Orb Iodem gave him, the field menu then opens, so that he can use it.
References fdScriptEnd(), fdScriptStart(), fdWorldMapFreeze(), fdWorldMapUnfreeze(), gmFlagGet() and mnFieldMessageShow().
Referenced by WorldMapCues.
Definition at line 2166 of file world_map.c.
scWorldMapUseBlackOrb
static void scWorldMapUseBlackOrb(void)
Using the Black Orb on the wreck off Gateway Cave, Isaac holds it up and it pulses and sparkles, but nothing happens. Iodem decides it is not yet time ("We must press on to Babi Lighthouse"), takes the orb back and leaves, and Gateway Cave can be entered again.
References fdActorFaceDirection(), fdActorGet(), fdActorJump(), fdActorRelease(), fdActorReleaseById(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetDestination(), fdActorShowEmote(), fdActorStartIdle(), fdActorWaitForMove(), fdActorWaitForMoveById(), fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), fdWorldMapFreeze(), fdWorldMapStartZoom(), fdWorldMapUnfreeze(), gmFlagClear(), gmFlagSet(), gmItemLoadIcon(), gmPartyInventoryDiscard(), IodemActor, mnMessageShowCentered(), mnVRAMLoad(), scFieldActorCreate(), scFieldActorSetMoveTargetFX(), scWorldMapPulseOrbAndSpawnSparks(), scWorldMapRestoreGatewayCaveExit(), Sint32, syHeapSlotAllocate() and syHeapSlotRelease().
Referenced by WorldMapCues.
Definition at line 2187 of file world_map.c.
scWorldMapSpawnIslandWake
static void scWorldMapSpawnIslandWake(void)
Spawns a puff of the wake behind ACTOR_DRIFTING_ISLAND every 16 ticks.
References fdActorGet(), fdActorSelectAnimation(), fdActorSetSpriteColor(), fdActorStartScript(), IslandWakeScript, scFieldActorCreate(), Sint32 and TickCount.
Referenced by scWorldMapShowIslandDrifting().
Definition at line 2658 of file world_map.c.
scWorldMapCatchInStorm
static void scWorldMapCatchInStorm(Sint32 targetActorId)
Draws the leader into the storm, lifts him and starts its timer.
References fdActorGet(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdActorSetDestination(), fdActorWaitForMoveById(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), gmFlagSet(), MainRoutineStateWork, scFieldActorSetMoveTargetFX(), scFieldGameFlagSetByte(), scWorldMapUpdateStormTimer(), Sint32, sySetTickEvent() and sySoundPlay().
Referenced by scWorldMapWalkIntoStorm().
Definition at line 2768 of file world_map.c.
scWorldMapWalkIntoStorm
static void scWorldMapWalkIntoStorm(void)
Walking into the whirlwind near Crossbone Isle draws the leader into it and lifts the party into the air for three seconds.
References scWorldMapCatchInStorm().
Referenced by WorldMapCues.
Definition at line 2810 of file world_map.c.
scWorldMapStartDousingStorm
static void scWorldMapStartDousingStorm(void)
Casting Douse on the whirlwind that holds the party gathers the rain cloud
high up, over the party where it floats, not on the ground below
(script_commands_douse.c reads sceneVariant).
Referenced by WorldMapCues.
Definition at line 2818 of file world_map.c.
scWorldMapDouseMapStorm
static void scWorldMapDouseMapStorm(void)
Douse on the whirlwind that holds the party stops it, and the party drops to fight the Tempest Lizard inside, as in Suhalla Desert's red storm. The battle is taken from the scripted encounter table as that storm's is.
References fdActorGet(), fdRequestBattleFromEncounterTable(), gmFlagClear(), gmFlagSet(), MainRoutineStateWork and scFieldGameFlagSetByte().
Referenced by WorldMapCues.
Definition at line 2826 of file world_map.c.
scWorldMapStormDropsParty
static void scWorldMapStormDropsParty(void)
If the party is not brought down within three seconds, the whirlwind rises with them faster and faster out of sight, the screen closes, and they drop onto the World Map outside Suhalla.
References fdActorGet(), fdActorSetSpriteFlags(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptSetDestination(), fdScriptStart(), fdScriptWaitTransitionTicks(), gmFlagSet(), MainRoutineStateWork, Sint32, sySoundPlay() and sySynch().
Referenced by WorldMapCues.
Definition at line 2848 of file world_map.c.
scWorldMapUpdateTransitionBlend
static void scWorldMapUpdateTransitionBlend(void)
Run each tick of the lighthouse transition: blends the ball of light over the
map, its own weight flickering between 12 and 16 sixteenths every two ticks
over WorldMapBlendWork.
References syIOWriteQueueStore16(), TickCount and WorldMapBlendWork.
Referenced by scWorldMapPlayLighthouseTransition().
Definition at line 2879 of file world_map.c.
scWorldMapJitterTransitionCamera
static void scWorldMapJitterTransitionCamera(void)
Run each tick at the end of the lighthouse transition, as the ground rumbles: every third tick it moves the camera a pixel diagonally from the leader.
References fdActorGet(), fdCameraMoveToFX(), fdCameraMoveWithinMapBounds(), MainRoutineStateWork, Sint32 and TickCount.
Referenced by scWorldMapPlayLighthouseTransition().
Definition at line 2898 of file world_map.c.
scWorldMapShowTransitionPicture
static inline void scWorldMapShowTransitionPicture(Uint8 *buf, Sint32 offset, Sint32 ticks)
Queues one picture of the lighthouse transition and holds it for ticks
ticks.
References fdScriptWait() and Sint32.
Referenced by scWorldMapPlayLighthouseTransition().
Definition at line 2943 of file world_map.c.
scWorldMapFlashWhiteWithGoldenRings
static void scWorldMapFlashWhiteWithGoldenRings(ACTOR *actor)
Unused: an actor's update function that flashes it white, two ticks on and two off, and every sixteenth tick sets off a golden ring around it, as Flint shimmers on meeting the party.
References fdActorSetColorMode(), scSpawnGoldenRing() and TickCount.
Definition at line 3036 of file world_map.c.
scWorldMapCycleColorsWithGoldenRings
static void scWorldMapCycleColorsWithGoldenRings(ACTOR *actor)
Unused: an actor's update function that cycles it through six colour modes and every sixteenth tick sets off a golden ring around it.
References fdActorSetColorMode(), scSpawnGoldenRing() and TickCount.
Definition at line 3054 of file world_map.c.
Variables in detail
IodemActor
extern Sint32 IodemActor
Sint32 IodemActor
Iodem's actor on the World Map, set as he comes out to meet the party.
Neither this nor WorldMapBlendWork has a starting value, and the linker
orders such variables by a hash of their names: these two names keep them in
the ROM's order, where a WorldMap name for Iodem's actor would not.
References Sint32.
Referenced by scInit(), scWorldMapIodemCallsIsaacBack(), scWorldMapRunBlackOrbScript(), scWorldMapTalkAboutBlackOrb() and scWorldMapUseBlackOrb().
Definition at lines 105 and 1931 of file world_map.c.
CaravanFirstWagonArrives
extern Sint32 CaravanFirstWagonArrives[]
Sint32 CaravanFirstWagonArrives[]
Hammet's caravan outside Vault (scWorldMapShowHammetsCaravan): each of the
four wagons, at one and a half times its size, rolls up to the party and
stops in its own place.
References Sint32.
Referenced by scWorldMapShowHammetsCaravan().
Definition at lines 106 and 3074 of file world_map.c.
CaravanFirstWagonDeparts
extern Sint32 CaravanFirstWagonDeparts[]
Sint32 CaravanFirstWagonDeparts[]
Each wagon rolls south for the bridge and, out of sight, is put down where it waits at the broken bridge.
References Sint32.
Referenced by scWorldMapShowHammetsCaravan().
Definition at lines 107 and 3094 of file world_map.c.
CaravanFirstWagonReturns
extern Sint32 CaravanFirstWagonReturns[]
Sint32 CaravanFirstWagonReturns[]
Each wagon rolls back from the broken bridge and leaves the stage.
References Sint32.
Referenced by scWorldMapShowHammetsCaravan().
Definition at lines 108 and 3106 of file world_map.c.
CaravanWagonHeadsNorth
extern Sint32 CaravanWagonHeadsNorth[]
Sint32 CaravanWagonHeadsNorth[]
Every wagon in turn: from the road south of Vault it rolls north for Lunpa and leaves the stage.
References Sint32.
Referenced by scWorldMapShowHammetsCaravan().
Definition at lines 109 and 3116 of file world_map.c.
CaravanSecondWagonArrives
extern Sint32 CaravanSecondWagonArrives[]
Sint32 CaravanSecondWagonArrives[]
The second to fourth wagons stop in a column 32 pixels west of the first, the second southmost and each after it 16 pixels north.
References Sint32.
Referenced by scWorldMapShowHammetsCaravan().
Definition at lines 110 and 3130 of file world_map.c.
CaravanSecondWagonDeparts
extern Sint32 CaravanSecondWagonDeparts[]
Sint32 CaravanSecondWagonDeparts[]
The second to fourth wagons wait side by side north of the first, west to east.
References Sint32.
Referenced by scWorldMapShowHammetsCaravan().
Definition at lines 111 and 3150 of file world_map.c.
CaravanSecondWagonReturns
extern Sint32 CaravanSecondWagonReturns[]
Sint32 CaravanSecondWagonReturns[]
The second to fourth wagons each roll south to the first's road and follow it.
References Sint32.
Referenced by scWorldMapShowHammetsCaravan().
Definition at lines 112 and 3163 of file world_map.c.
CaravanThirdWagonArrives
extern Sint32 CaravanThirdWagonArrives[]
Sint32 CaravanThirdWagonArrives[]
References Sint32.
Referenced by scWorldMapShowHammetsCaravan().
Definition at lines 113 and 3173 of file world_map.c.
CaravanThirdWagonDeparts
extern Sint32 CaravanThirdWagonDeparts[]
Sint32 CaravanThirdWagonDeparts[]
References Sint32.
Referenced by scWorldMapShowHammetsCaravan().
Definition at lines 114 and 3191 of file world_map.c.
CaravanThirdWagonReturns
extern Sint32 CaravanThirdWagonReturns[]
Sint32 CaravanThirdWagonReturns[]
References Sint32.
Referenced by scWorldMapShowHammetsCaravan().
Definition at lines 115 and 3202 of file world_map.c.
CaravanFourthWagonArrives
extern Sint32 CaravanFourthWagonArrives[]
Sint32 CaravanFourthWagonArrives[]
References Sint32.
Referenced by scWorldMapShowHammetsCaravan().
Definition at lines 116 and 3212 of file world_map.c.
CaravanFourthWagonDeparts
extern Sint32 CaravanFourthWagonDeparts[]
Sint32 CaravanFourthWagonDeparts[]
References Sint32.
Referenced by scWorldMapShowHammetsCaravan().
Definition at lines 117 and 3230 of file world_map.c.
CaravanFourthWagonReturns
extern Sint32 CaravanFourthWagonReturns[]
Sint32 CaravanFourthWagonReturns[]
References Sint32.
Referenced by scWorldMapShowHammetsCaravan().
Definition at lines 118 and 3241 of file world_map.c.
CaravanRockGuideScript
extern Sint32 CaravanRockGuideScript[]
Sint32 CaravanRockGuideScript[]
The invisible guide of the rock that falls beside the caravan: it grows from a tenth of its size over 160 ticks as it moves to where the rock lands.
References Sint32.
Referenced by scWorldMapShowHammetsCaravan().
Definition at lines 119 and 3256 of file world_map.c.
BlackOrbLeaderScript
extern Sint32 BlackOrbLeaderScript[]
Sint32 BlackOrbLeaderScript[]
The leader's walk in scWorldMapRunBlackOrbScript: SW_TIMER turns 1 when he
has stopped.
References Sint32.
Referenced by scWorldMapRunBlackOrbScript().
Definition at lines 120 and 3271 of file world_map.c.
EndingAlexWalk
extern Sint32 EndingAlexWalk[]
Sint32 EndingAlexWalk[]
The walks of the ending (scWorldMapShowEndingScript): Alex, Kraden and Jenna
follow one path and stop side by side; Jenna's turns SW_TIMER to 1 when she
has stopped.
References Sint32.
Referenced by scWorldMapShowEndingScript().
Definition at lines 121 and 3287 of file world_map.c.
EndingKradenWalk
extern Sint32 EndingKradenWalk[]
Sint32 EndingKradenWalk[]
References Sint32.
Referenced by scWorldMapShowEndingScript().
Definition at lines 122 and 3307 of file world_map.c.
EndingJennaWalk
extern Sint32 EndingJennaWalk[]
Sint32 EndingJennaWalk[]
References Sint32.
Referenced by scWorldMapShowEndingScript().
Definition at lines 123 and 3325 of file world_map.c.
QuakeCloudScript
extern Sint32 QuakeCloudScript[]
Sint32 QuakeCloudScript[]
A cloud of dust in the lighthouse quake (scWorldMapUpdateLighthouseQuake): it
lasts 16 ticks.
References Sint32.
Referenced by scWorldMapUpdateLighthouseQuake().
Definition at lines 124 and 3347 of file world_map.c.
CrossingShipSailsWest
extern Sint32 CrossingShipSailsWest[]
Sint32 CrossingShipSailsWest[]
The ship crossing the sea (scWorldMapSailCrossingLeg,
scWorldMapSailUntilLandSighted): 8 pixels west a step for 40 steps, then
SW_TIMER turns 1 while it sails on two more.
References Sint32.
Referenced by scWorldMapSailCrossingLeg() and scWorldMapSailUntilLandSighted().
Definition at lines 125 and 3355 of file world_map.c.
CrossingShipDriftsNorth
extern Sint32 CrossingShipDriftsNorth[]
Sint32 CrossingShipDriftsNorth[]
As CrossingShipSailsWest, drifting 2 pixels north with each step.
References Sint32.
Referenced by scWorldMapSailUntilLandSighted().
Definition at lines 126 and 3369 of file world_map.c.
IslandDriftsEast
extern Sint32 IslandDriftsEast[]
Sint32 IslandDriftsEast[]
The island drifting east (scWorldMapShowIslandDrifting): 24 pixels a step for
10 steps, then SW_TIMER turns 1 while it drifts on two more.
References Sint32.
Referenced by scWorldMapShowIslandDrifting().
Definition at lines 127 and 3384 of file world_map.c.
WorldMapEntrances
extern SCENE_ENTRANCE WorldMapEntrances[]
SCENE_ENTRANCE WorldMapEntrances[]
Referenced by scGetEntrances().
Definition at lines 128 and 3402 of file world_map.c.
WorldMapExits
extern Uint32 WorldMapExits[]
Uint32 WorldMapExits[]
Referenced by scGetExits().
Definition at lines 129 and 4116 of file world_map.c.
WorldMapActorPlacements
extern ACTOR_PLACE WorldMapActorPlacements[]
ACTOR_PLACE WorldMapActorPlacements[]
References Sint32, WorldMapAlignToMapScript, WorldMapFlintScript, WorldMapIodemScript, WorldMapKolimaBridgeScript and WorldMapStormScript.
Referenced by scGetActorPlacements() and scWorldMapBlockGatewayCaveExit().
Definition at lines 130 and 4310 of file world_map.c.
WorldMapActorPlacementsHammetsCaravan
extern ACTOR_PLACE WorldMapActorPlacementsHammetsCaravan[]
ACTOR_PLACE WorldMapActorPlacementsHammetsCaravan[]
References Sint32 and WorldMapAlignToMapScript.
Referenced by scGetActorPlacements().
Definition at lines 131 and 4421 of file world_map.c.
WorldMapActorPlacementsFromWestLunpaCave
extern ACTOR_PLACE WorldMapActorPlacementsFromWestLunpaCave[]
ACTOR_PLACE WorldMapActorPlacementsFromWestLunpaCave[]
References Sint32 and WorldMapAlignToMapScript.
Referenced by scGetActorPlacements().
Definition at lines 132 and 4445 of file world_map.c.
WorldMapActorPlacementsCrossingEnds
extern ACTOR_PLACE WorldMapActorPlacementsCrossingEnds[]
ACTOR_PLACE WorldMapActorPlacementsCrossingEnds[]
References Sint32 and WorldMapAlignToMapScript.
Referenced by scGetActorPlacements().
Definition at lines 133 and 4459 of file world_map.c.
WorldMapActorPlacementsCrossing
extern ACTOR_PLACE WorldMapActorPlacementsCrossing[]
ACTOR_PLACE WorldMapActorPlacementsCrossing[]
References Sint32 and WorldMapAlignToMapScript.
Referenced by scGetActorPlacements().
Definition at lines 134 and 4471 of file world_map.c.
WorldMapActorPlacementsFromKalayTunnelEntranceSouth
extern ACTOR_PLACE WorldMapActorPlacementsFromKalayTunnelEntranceSouth[]
ACTOR_PLACE WorldMapActorPlacementsFromKalayTunnelEntranceSouth[]
References Sint32 and WorldMapAlignToMapScript.
Referenced by scGetActorPlacements().
Definition at lines 135 and 4477 of file world_map.c.
WorldMapActorPlacementsJennaAndKradenAdrift
extern ACTOR_PLACE WorldMapActorPlacementsJennaAndKradenAdrift[]
ACTOR_PLACE WorldMapActorPlacementsJennaAndKradenAdrift[]
References Sint32 and WorldMapAlignToMapScript.
Referenced by scGetActorPlacements().
Definition at lines 136 and 4487 of file world_map.c.
WorldMapActorPlacementsFromClear
extern ACTOR_PLACE WorldMapActorPlacementsFromClear[]
ACTOR_PLACE WorldMapActorPlacementsFromClear[]
References Sint32 and WorldMapAlignToMapScript.
Referenced by scGetActorPlacements().
Definition at lines 137 and 4503 of file world_map.c.
WorldMapActorPlacementsBeforeShebasFall
extern ACTOR_PLACE WorldMapActorPlacementsBeforeShebasFall[]
ACTOR_PLACE WorldMapActorPlacementsBeforeShebasFall[]
References Sint32 and WorldMapAlignToMapScript.
Referenced by scGetActorPlacements().
Definition at lines 138 and 4509 of file world_map.c.
WorldMapCues
extern CUE WorldMapCues[]
CUE WorldMapCues[]
References scWorldMapDouseMapStorm(), scWorldMapEnterBilibinBarricade(), scWorldMapEnterGondowanPassage(), scWorldMapEnterKalayDocks(), scWorldMapEnterKolimaBridge(), scWorldMapEnterLalivero(), scWorldMapEnterVault(), scWorldMapMeetCorona(), scWorldMapMeetFlint(), scWorldMapMeetHail(), scWorldMapMeetVine(), scWorldMapReturnToTolbiShip(), scWorldMapSearchWreckage(), scWorldMapStartDousingStorm(), scWorldMapStormDropsParty(), scWorldMapTalkAboutBlackOrb(), scWorldMapUseBlackOrb() and scWorldMapWalkIntoStorm().
Referenced by scGetCues(), scWorldMapBlockGatewayCaveExit() and scWorldMapRestoreGatewayCaveExit().
Definition at lines 139 and 4516 of file world_map.c.
IslandWakeScript
extern Sint32 IslandWakeScript[]
Sint32 IslandWakeScript[]
A puff of the drifting island's wake (scWorldMapSpawnIslandWake): for 48
ticks it drifts west and south as it spreads wider and flatter, then it is
released.
References Sint32.
Referenced by scWorldMapSpawnIslandWake().
Definition at lines 140 and 4639 of file world_map.c.
WorldMapBlendWork
Uint16 WorldMapBlendWork
The second weight of the lighthouse transition's blend (BLEND_ALPHA), which
the picture's weight flickers over.
Referenced by scWorldMapPlayLighthouseTransition() and scWorldMapUpdateTransitionBlend().
Definition at line 2350 of file world_map.c.
WorldMapFlintScript
Sint32 WorldMapFlintScript[]
Flint's actor script on the map: it sets him up (scWorldMapSetUpFlint).
References scWorldMapSetUpFlint() and Sint32.
Referenced by WorldMapActorPlacements.
Definition at line 3397 of file world_map.c.
WorldMapKolimaBridgeScript
Sint32 WorldMapKolimaBridgeScript[]
References scWorldMapSetUpKolimaBridge() and Sint32.
Referenced by WorldMapActorPlacements.
Definition at line 4288 of file world_map.c.
WorldMapAlignToMapScript
Sint32 WorldMapAlignToMapScript[]
References scWorldMapAlignToMap() and Sint32.
Referenced by WorldMapActorPlacements, WorldMapActorPlacementsBeforeShebasFall, WorldMapActorPlacementsCrossing, WorldMapActorPlacementsCrossingEnds, WorldMapActorPlacementsFromClear, WorldMapActorPlacementsFromKalayTunnelEntranceSouth, WorldMapActorPlacementsFromWestLunpaCave, WorldMapActorPlacementsHammetsCaravan and WorldMapActorPlacementsJennaAndKradenAdrift.
Definition at line 4293 of file world_map.c.
WorldMapIodemScript
Sint32 WorldMapIodemScript[]
References scWorldMapSetUpIodem() and Sint32.
Referenced by WorldMapActorPlacements.
Definition at line 4298 of file world_map.c.
WorldMapStormScript
Sint32 WorldMapStormScript[]
References scWorldMapHideStormOnOddTicks(), scWorldMapSetUpStorm() and Sint32.
Referenced by WorldMapActorPlacements.
Definition at line 4303 of file world_map.c.