Alchemy
Loading...
Searching...
No Matches

world_map.c File Reference

The world map: the Djinn met on it, the passages between its regions, the map markers, and the actors of particular arrivals. More...

Go to the source code of this file.

Macros

#define ACTOR   8
 The one actor placed for entrance 75, which travels north to exit 110.
#define SITE   55
#define WORLD_MAP_QUEUE_TRANSITION_FRAME(buffer, offset)

Enumerations

enum  { CONTACT_LAST_ACTOR = 65 , CONTACT_TRIGGER_BASE = 100 , FLAG_CONTACT_BLOCKED = 0x104 }
enum  { ACTOR_VENUS_DJINNI = 8 , ACTOR_MARS_DJINNI = 9 , ACTOR_MERCURY_DJINNI = 10 }
 The Djinn met on the world map. More...
enum  { ACTOR_WAGON = 8 , ACTOR_BUNZA = 11 , ACTOR_HAMMET = 12 }
 The actors placed at entrance 49: Bunza's wagon, Bunza and Hammet. More...
enum  {
  TRANSITION_EFFECT_TYPE = 222 , TRANSITION_EFFECT_LEFT = 6064 , TRANSITION_EFFECT_TOP = 3148 , TRANSITION_EFFECT_WIDTH = 40 ,
  TRANSITION_EFFECT_DEPTH = 30
}

Functions

static s32 WorldMap_ApplyMapRotation (struct ScriptInterpreter *interpreter)
 Aligns the actor's sprite rotation to the map.
static void WorldMap_BoardBunzasWagon (void)
 Out of West Lunpa Cave by wagon: Bunza and Hammet nod to each other and climb aboard with the hero, and the wagon rolls off.
static void WorldMap_DepartWithTravelers (void)
 Stages the travelers' departure and their transfer to the next scene.
static void WorldMap_ShakeTransferStartCamera (void)
 Shakes the camera around the departure point.
static void WorldMap_ShakeTransferLandingCamera (void)
 Shakes the camera around the landing point.
static void WorldMap_UpdateTransferredActorLanding (void)
 Keeps the transferred actor above the guide and triggers its landing once.
static void WorldMap_TransferToExit102 (void)
 Stages the next leg of travel and leaves through exit 102.
static void WorldMap_TransferToExit103 (void)
 Stages the next leg of travel and leaves through exit 103.
static void WorldMap_TransferToExit104 (void)
 Stages the next leg of travel and leaves through exit 104.
static void WorldMap_TransferToTolbiShipInteriors (void)
 Stages the travelers' arrival in the ship interior.
static void WorldMap_TransferToExit106 (void)
 Stages the next leg of travel and leaves through exit 106.
static void WorldMap_CompleteTransfer (void)
 Finishes the journey and restores the leader's movement.
static void WorldMap_DisembarkCarriage (void)
 Brings the carriage to a stop and lets Isaac disembark.
static void WorldMap_RunBlackOrbScene (void)
 Introduces the Black Orb and prompts Isaac to use it on the ship.
static void WorldMap_ActivateSite138 (s32 actor)
 Turns the exit at cell code 138 into a touch event that runs Event_StopLeavingShip, and places the Black Orb's giver (sprite 57) at pixel (6036, 3400).
static void Event_StopLeavingShip (void)
 Walking away from the shipwreck with the Black Orb: the hero walks back.
static void WorldMap_ShowEndingScene (void)
 Shows Jenna and Kraden's closing scene before returning to the title.
static void WorldMap_StartTransitionEffect (void)
 Starts the sparkling travel transition and fades out to its destination.
static void WorldMap_UpdateTransitionEffect (void)
 Scatters transition particles and jitters the camera.
static void WorldMap_MoveActorEightToExit (void)
 Moves the arrival actor along the staged route to its exit.
static s32 WorldMap_ComputeOpposingRewardTotals (void)
 Subtracts the opposing pair's rewards from the first pair's total.
static s32 WorldMap_GetSelectedReward (u32 selection)
 Looks up the reward selected by the first set progress flag.
static void WorldMap_RunOpeningRise (void)
 Stages the rising actor and its trailing puffs before the next arrival.
static void WorldMap_UpdateAirborneTravelTimer (void)
 Rotates the traveler and counts down to the raised travel event.
static void WorldMap_PlayLighthouseTransition (s32 palette)
 Animates the lighthouse transition frames, palette, and camera.
static void Event_MeetVine (void)
 Walking near Vine, or talking to him: once a battle is nearly due, half the time Vine fights; otherwise the next step brings an ordinary battle.
static void Event_MeetCorona (void)
 Walking near Corona, or talking to him: once a battle is nearly due, Corona fights.
static void Event_MeetHail (void)
 Walking near Hail, or talking to him: once a battle is nearly due, Hail fights.
static void WorldMap_ReleaseSparkAfterDelay (union FieldObject *fieldObject)
 Releases the spark after its initial timer step.
static void WorldMap_PulseOrbAndSpawnSparks (union FieldObject *fieldObject)
 Pulses the orb's scale and emits short-lived sparks.
static void WorldMap_UpdateBobbingMarker (union FieldObject *fieldObject)
 Cycles the marker's palette and orbits it around its map position.
static s32 WorldMap_InitializeFirstDjinni (struct ScriptInterpreter *interpreter)
 Animates the first Djinni until it has met the party.
const struct SceneEntrance * WorldMap_GetEntrances (void)
const struct SceneRegion * WorldMap_GetRegions (void)
const u32 * WorldMap_GetExits (void)
static s32 WorldMap_ApplyMapRotationAndMode (struct ScriptInterpreter *interpreter)
 Aligns the actor to the map and selects its flagged animation mode.
static s32 WorldMap_ApplyMapRotationAndCollision (struct ScriptInterpreter *interpreter)
 Enables the actor's collision and aligns its sprite to the map.
static s32 WorldMap_InitializeProgressMarker (struct ScriptInterpreter *interpreter)
 Resets the map marker after the corresponding story progress.
static s32 WorldMap_BlinkActorSprite (struct ScriptInterpreter *interpreter)
 Blinks a visible actor on alternating frames.
const struct ScenePlacement * WorldMap_GetPlacements (void)
static void WorldMap_SelectExitByX (s32 trigger, s32 exitBefore, s32 exitAfter)
 Chooses a passage exit from the side of the actor the leader approaches.
static void WorldMap_SelectExitByZ (s32 trigger, s32 exitBefore, s32 exitAfter)
 Chooses a passage exit from the leader's north-south approach.
static void Event_PassThroughWestEastPassage (void)
 Walking into a passage: the side the party comes from decides which exit takes it through to the other side.
static void Event_PassThroughFirstNorthSouthPassage (void)
 As Event_PassThroughWestEastPassage, for a passage crossed north to south.
static void Event_PassThroughSecondNorthSouthPassage (void)
 As Event_PassThroughFirstNorthSouthPassage.
static void Event_PassThroughThirdNorthSouthPassage (void)
 As Event_PassThroughFirstNorthSouthPassage.
static void Event_PassThroughFourthNorthSouthPassage (void)
 As Event_PassThroughFirstNorthSouthPassage.
const struct SceneEvent * WorldMap_GetEvents (void)
static void WorldMap_UpdateLocationContacts (void)
 Culls distant location sprites and detects the leader touching nearby ones.
static void Event_EnterTransferRoute (void)
 Walking onto this spot: the first time the travel scene plays, later it is an ordinary entrance.
static void Event_LeaveEastward (void)
 Walking east off this edge of the map, once allowed.
s32 WorldMap_Initialize (void)
 Restores the map's state and runs the sequence its arrival entrance selects: 90 and 91 carry the party from a lighthouse's beam up to its aerie, 1 marks the first time the party leaves Vale, 33 the Black Orb, 49 Bunza's wagon, 64 the travellers' departure, 65 to 70 the Tolbi ship's crossing, 71 the carriage, 78 a discarded item, 72 and 73 the transitions, 75 the travelling actor, 80 the ending, and 74, 76 and 77 resume airborne travel.
static void WorldMap_MoveShakeCamera (s32 x, s32 z)
 Moves to the next camera-shake point and holds it for four frames.
static void WorldMap_ShowDjinnTutorial (void)
 Demonstrates setting a Djinni and placing it on standby.
static void Event_MeetFlint (void)
 Walking up to Flint: he joins the party and shows how Djinn are set and put on standby; then comes the tutorial battle.
static void WorldMap_RestoreExitTrigger (void)
 Makes cell code 138 an exit again, to exit 33.
static void Event_TalkAboutBlackOrb (void)
 Talking to the one who gave the Black Orb (or reading his mind): he urges its use.
static void Event_SearchShipwreck (void)
 Searching the shipwreck.
static void Event_UseBlackOrb (void)
 Using the Black Orb on the shipwreck: nothing happens, the orb is taken back and the party is to press on to Babi Lighthouse.
static void WorldMap_SpawnActorEightPuff (void)
 Spawns a puff behind the moving actor at staggered intervals.
static void WorldMap_StartAirborneTravel (s32 targetActor)
 Moves the selected actor toward the travel marker and starts its timer.
static void Event_EnterAirborneTravel (void)
 Walking onto the marker: the party is lifted up into the air.
static void Event_StartDousingTravelMarker (void)
 Starting to cast Douse on the marker.
static void Event_DouseTravelMarker (void)
 Douse on the marker: the party comes down and a battle begins.
static void Event_FinishAirborneTravel (void)
 When the time in the air runs out: the party and the marker fly off, and the map reopens elsewhere.
static void WorldMap_UpdateTransitionBlend (void)
 Refreshes the transition's blend registers on alternating frames.
static void WorldMap_JitterTransitionCamera (void)
 Jitters the view around the selected actor during the transition.
static void WorldMap_ShowTransitionFrame (u8 *buffer, s32 offset, s32 frames)
 Displays a transition frame before advancing its animation delay.
static UNUSED void WorldMap_UpdateBlinkingLinkedEffects (struct FieldActor *actor)
 Blinks an unused actor and periodically creates its linked effects.
static UNUSED void WorldMap_UpdateCyclingLinkedEffects (struct FieldActor *actor)
 Cycles an unused actor's palettes and periodically creates linked effects.
static UNUSED void WorldMap_CycleActorPalettes (struct FieldActor *actor)
 Advances an unused actor's palette on odd frames.

Variables

s32 gWorldMapTriggerActor
u16 gWorldMapBlend
s32 gTransferArrive10 []
s32 gTransferDepart10 []
s32 gTransferReturn10 []
s32 gTransferGather []
s32 gTransferArrive11 []
s32 gTransferDepart11 []
s32 gTransferReturn11 []
s32 gTransferArrive12 []
s32 gTransferDepart12 []
s32 gTransferReturn12 []
s32 gTransferArrive13 []
s32 gTransferDepart13 []
s32 gTransferReturn13 []
s32 gTransferGuide14 []
s32 gBlackOrbLeaderScript []
s32 gPresentGuide9 []
s32 gPresentGuide8 []
s32 gPresentGuide5 []
s32 gTransitionSparkScript []
s32 gTransferLeaderIdle []
s32 gTransferLeaderTurn []
s32 gOpeningLeaderRise []
s32 gWorldMapPlacement0 []
struct SceneEntrance gWorldMapEntrances []
u32 gWorldMapExits []
s32 gWorldMapPlacement2 []
s32 gWorldMapPlacement1 []
s32 gWorldMapPlacement4 []
s32 gWorldMapPlacement3 []
struct ScenePlacement gWorldMapPlacements []
struct ScenePlacement gWorldMapPlacements64 []
struct ScenePlacement gWorldMapPlacements49 []
struct ScenePlacement gWorldMapPlacements65 []
struct ScenePlacement gWorldMapPlacements66 []
struct ScenePlacement gWorldMapPlacements71 []
struct ScenePlacement gWorldMapPlacements80 []
struct ScenePlacement gWorldMapPlacements72 []
struct ScenePlacement gWorldMapPlacements73 []
struct SceneEvent gWorldMapEvents []
u32 gWorldMapRewards []
s32 gActorEightPuffScript []

Detailed Description

The world map: the Djinn met on it, the passages between its regions, the map markers, and the actors of particular arrivals.

Definition in file world_map.c.

Macro Definition Documentation

◆ ACTOR

#define ACTOR   8

The one actor placed for entrance 75, which travels north to exit 110.

Definition at line 86 of file world_map.c.

Referenced by WorldMap_MoveActorEightToExit().

◆ SITE

#define SITE   55

Definition at line 1670 of file world_map.c.

Referenced by Event_UseBlackOrb().

◆ WORLD_MAP_QUEUE_TRANSITION_FRAME

#define WORLD_MAP_QUEUE_TRANSITION_FRAME ( buffer,
offset )
Value:
IO_WRITE_QUEUE_PUSH(0x06002000, (u32)((buffer) + (offset)), 0x84000140)
#define IO_WRITE_QUEUE_PUSH(address, value, control)
Disables interrupts to add one register write or DMA to the queue; a write to a full queue is dropped...
unsigned int u32
Definition types.h:15

Definition at line 1821 of file world_map.c.

Referenced by WorldMap_PlayLighthouseTransition(), and WorldMap_ShowTransitionFrame().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CONTACT_LAST_ACTOR 
CONTACT_TRIGGER_BASE 
FLAG_CONTACT_BLOCKED 

Definition at line 88 of file world_map.c.

◆ anonymous enum

anonymous enum

The Djinn met on the world map.

The Venus Djinni is Flint, bobbing on the map until the party meets him, and later Vine.

Enumerator
ACTOR_VENUS_DJINNI 
ACTOR_MARS_DJINNI 
ACTOR_MERCURY_DJINNI 

Definition at line 96 of file world_map.c.

◆ anonymous enum

anonymous enum

The actors placed at entrance 49: Bunza's wagon, Bunza and Hammet.

Enumerator
ACTOR_WAGON 
ACTOR_BUNZA 
ACTOR_HAMMET 

Definition at line 623 of file world_map.c.

◆ anonymous enum

anonymous enum
Enumerator
TRANSITION_EFFECT_TYPE 
TRANSITION_EFFECT_LEFT 
TRANSITION_EFFECT_TOP 
TRANSITION_EFFECT_WIDTH 
TRANSITION_EFFECT_DEPTH 

Definition at line 1811 of file world_map.c.

Function Documentation

◆ WorldMap_ApplyMapRotation()

s32 WorldMap_ApplyMapRotation ( struct ScriptInterpreter * interpreter)
static

Aligns the actor's sprite rotation to the map.

Definition at line 260 of file world_map.c.

Referenced by WorldMap_ApplyMapRotation(), and WorldMap_ApplyMapRotationAndMode().

◆ WorldMap_BoardBunzasWagon()

void WorldMap_BoardBunzasWagon ( void )
static

Out of West Lunpa Cave by wagon: Bunza and Hammet nod to each other and climb aboard with the hero, and the wagon rolls off.

Called by WorldMap_Initialize at entrance 49, after the trade reopens (FLAG_LUNPA_TRADE_REOPENED) and until the wagon has left; sets FLAG_BUNZAS_WAGON_LEFT.

Definition at line 630 of file world_map.c.

Referenced by WorldMap_BoardBunzasWagon(), and WorldMap_Initialize().

◆ WorldMap_DepartWithTravelers()

void WorldMap_DepartWithTravelers ( void )
static

Stages the travelers' departure and their transfer to the next scene.

Called by WorldMap_Initialize at entrance 64 until FLAG_GUARDS_SUSPECT_KALAY is set; sets it.

Definition at line 695 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers(), and WorldMap_Initialize().

◆ WorldMap_ShakeTransferStartCamera()

void WorldMap_ShakeTransferStartCamera ( void )
static

Shakes the camera around the departure point.

Definition at line 967 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers(), and WorldMap_ShakeTransferStartCamera().

◆ WorldMap_ShakeTransferLandingCamera()

void WorldMap_ShakeTransferLandingCamera ( void )
static

Shakes the camera around the landing point.

Definition at line 983 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers(), and WorldMap_ShakeTransferLandingCamera().

◆ WorldMap_UpdateTransferredActorLanding()

void WorldMap_UpdateTransferredActorLanding ( void )
static

Keeps the transferred actor above the guide and triggers its landing once.

Run each frame while WorldMap_DepartWithTravelers carries an actor; sets FLAG_SCENE_TEMP_00 as it lands.

Definition at line 1001 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers(), and WorldMap_UpdateTransferredActorLanding().

◆ WorldMap_TransferToExit102()

void WorldMap_TransferToExit102 ( void )
static

Stages the next leg of travel and leaves through exit 102.

Called by WorldMap_Initialize at entrance 65; sets FLAG_TOLBI_SHIP_ROWING.

Definition at line 1022 of file world_map.c.

Referenced by WorldMap_Initialize(), and WorldMap_TransferToExit102().

◆ WorldMap_TransferToExit103()

void WorldMap_TransferToExit103 ( void )
static

Stages the next leg of travel and leaves through exit 103.

Called by WorldMap_Initialize at entrance 66; sets FLAG_TOLBI_SHIP_ROWING.

Definition at line 1045 of file world_map.c.

Referenced by WorldMap_Initialize(), and WorldMap_TransferToExit103().

◆ WorldMap_TransferToExit104()

void WorldMap_TransferToExit104 ( void )
static

Stages the next leg of travel and leaves through exit 104.

Called by WorldMap_Initialize at entrance 67; sets FLAG_TOLBI_SHIP_ROWING.

Definition at line 1074 of file world_map.c.

Referenced by WorldMap_Initialize(), and WorldMap_TransferToExit104().

◆ WorldMap_TransferToTolbiShipInteriors()

void WorldMap_TransferToTolbiShipInteriors ( void )
static

Stages the travelers' arrival in the ship interior.

Called by WorldMap_Initialize at entrance 68; sets FLAG_TOLBI_SHIP_ROWING.

Definition at line 1103 of file world_map.c.

Referenced by WorldMap_Initialize(), and WorldMap_TransferToTolbiShipInteriors().

◆ WorldMap_TransferToExit106()

void WorldMap_TransferToExit106 ( void )
static

Stages the next leg of travel and leaves through exit 106.

Called by WorldMap_Initialize at entrance 69; sets FLAG_TOLBI_SHIP_ROWING.

Definition at line 1132 of file world_map.c.

Referenced by WorldMap_Initialize(), and WorldMap_TransferToExit106().

◆ WorldMap_CompleteTransfer()

void WorldMap_CompleteTransfer ( void )
static

Finishes the journey and restores the leader's movement.

Called by WorldMap_Initialize at entrance 70; sets FLAG_TOLBI_SHIP_REACHED_TOLBI and clears FLAG_TOLBI_SHIP_ROWING.

Definition at line 1166 of file world_map.c.

Referenced by WorldMap_CompleteTransfer(), and WorldMap_Initialize().

◆ WorldMap_DisembarkCarriage()

void WorldMap_DisembarkCarriage ( void )
static

Brings the carriage to a stop and lets Isaac disembark.

Called by WorldMap_Initialize at entrance 71.

Definition at line 1434 of file world_map.c.

Referenced by WorldMap_DisembarkCarriage(), and WorldMap_Initialize().

◆ WorldMap_RunBlackOrbScene()

void WorldMap_RunBlackOrbScene ( void )
static

Introduces the Black Orb and prompts Isaac to use it on the ship.

Called by WorldMap_Initialize at entrance 33 until the Black Orb is handed back and before the wounded soldiers are seen in Lalivero (FLAG_LALIVERO_WOUNDED_SOLDIERS_SEEN). Sets FLAG_SCENE_TEMP_34 and FLAG_SAW_SHIP_FROM_VENUS_LIGHTHOUSE, and turns the exit at cell code 138 into Event_StopLeavingShip.

Definition at line 1498 of file world_map.c.

Referenced by WorldMap_Initialize(), and WorldMap_RunBlackOrbScene().

◆ WorldMap_ActivateSite138()

void WorldMap_ActivateSite138 ( s32 actor)
static

Turns the exit at cell code 138 into a touch event that runs Event_StopLeavingShip, and places the Black Orb's giver (sprite 57) at pixel (6036, 3400).

Called by WorldMap_RunBlackOrbScene, and by WorldMap_Initialize when the party returns to entrance 33 with the orb still to use.

Definition at line 1582 of file world_map.c.

Referenced by WorldMap_ActivateSite138(), WorldMap_Initialize(), and WorldMap_RunBlackOrbScene().

◆ Event_StopLeavingShip()

void Event_StopLeavingShip ( void )
static

Walking away from the shipwreck with the Black Orb: the hero walks back.

"(Hero), where you going? I said to use the Orb on Babi's ship!" Reached by walking onto cell code 138 while WorldMap_ActivateSite138 has made it a touch event.

Definition at line 1641 of file world_map.c.

Referenced by Event_StopLeavingShip(), and WorldMap_ActivateSite138().

◆ WorldMap_ShowEndingScene()

void WorldMap_ShowEndingScene ( void )
static

Shows Jenna and Kraden's closing scene before returning to the title.

Called by WorldMap_Initialize at entrance 80.

Definition at line 1826 of file world_map.c.

Referenced by WorldMap_Initialize(), and WorldMap_ShowEndingScene().

◆ WorldMap_StartTransitionEffect()

void WorldMap_StartTransitionEffect ( void )
static

Starts the sparkling travel transition and fades out to its destination.

Called by WorldMap_Initialize at entrance 73; sets FLAG_KEEP_MUSIC.

Definition at line 1942 of file world_map.c.

Referenced by WorldMap_Initialize(), and WorldMap_StartTransitionEffect().

◆ WorldMap_UpdateTransitionEffect()

void WorldMap_UpdateTransitionEffect ( void )
static

Scatters transition particles and jitters the camera.

Definition at line 1975 of file world_map.c.

Referenced by WorldMap_StartTransitionEffect(), and WorldMap_UpdateTransitionEffect().

◆ WorldMap_MoveActorEightToExit()

void WorldMap_MoveActorEightToExit ( void )
static

Moves the arrival actor along the staged route to its exit.

Called by WorldMap_Initialize at entrance 75.

Definition at line 2015 of file world_map.c.

Referenced by WorldMap_Initialize(), and WorldMap_MoveActorEightToExit().

◆ WorldMap_ComputeOpposingRewardTotals()

s32 WorldMap_ComputeOpposingRewardTotals ( void )
static

Subtracts the opposing pair's rewards from the first pair's total.

Definition at line 2054 of file world_map.c.

Referenced by WorldMap_ComputeOpposingRewardTotals(), and WorldMap_TransferToExit106().

◆ WorldMap_GetSelectedReward()

s32 WorldMap_GetSelectedReward ( u32 selection)
static

Looks up the reward selected by the first set progress flag.

Definition at line 2065 of file world_map.c.

Referenced by WorldMap_ComputeOpposingRewardTotals(), and WorldMap_GetSelectedReward().

◆ WorldMap_RunOpeningRise()

void WorldMap_RunOpeningRise ( void )
static

Stages the rising actor and its trailing puffs before the next arrival.

Called by WorldMap_Initialize at entrance 72.

Definition at line 2129 of file world_map.c.

Referenced by WorldMap_Initialize(), and WorldMap_RunOpeningRise().

◆ WorldMap_UpdateAirborneTravelTimer()

void WorldMap_UpdateAirborneTravelTimer ( void )
static

Rotates the traveler and counts down to the raised travel event.

Run each frame while the party is in the air; stores the frames left in the byte at FLAG_SCENE_TEMP_F8.

Definition at line 2167 of file world_map.c.

Referenced by WorldMap_Initialize(), WorldMap_StartAirborneTravel(), and WorldMap_UpdateAirborneTravelTimer().

◆ WorldMap_PlayLighthouseTransition()

void WorldMap_PlayLighthouseTransition ( s32 palette)
static

Animates the lighthouse transition frames, palette, and camera.

Called by WorldMap_Initialize at entrances 90 (Mercury Lighthouse) and 91 (Venus Lighthouse). Clears FLAG_KEEP_PARTY_POSITION and sets FLAG_SKIP_SCENE_CHANGE_SOUND.

Definition at line 2341 of file world_map.c.

Referenced by WorldMap_Initialize(), and WorldMap_PlayLighthouseTransition().

◆ Event_MeetVine()

void Event_MeetVine ( void )
static

Walking near Vine, or talking to him: once a battle is nearly due, half the time Vine fights; otherwise the next step brings an ordinary battle.

Reached by talking to actor 8, or by walking onto cell code 92 until Vine is caught.

Definition at line 114 of file world_map.c.

Referenced by Event_MeetVine().

◆ Event_MeetCorona()

void Event_MeetCorona ( void )
static

Walking near Corona, or talking to him: once a battle is nearly due, Corona fights.

Reached by talking to actor 9, or by walking onto cell code 91 until Corona is caught.

Definition at line 132 of file world_map.c.

Referenced by Event_MeetCorona().

◆ Event_MeetHail()

void Event_MeetHail ( void )
static

Walking near Hail, or talking to him: once a battle is nearly due, Hail fights.

Reached by talking to actor 10, or by walking onto cell code 93 until Hail is caught.

Definition at line 147 of file world_map.c.

Referenced by Event_MeetHail().

◆ WorldMap_ReleaseSparkAfterDelay()

void WorldMap_ReleaseSparkAfterDelay ( union FieldObject * fieldObject)
static

Releases the spark after its initial timer step.

Definition at line 159 of file world_map.c.

Referenced by WorldMap_PulseOrbAndSpawnSparks(), and WorldMap_ReleaseSparkAfterDelay().

◆ WorldMap_PulseOrbAndSpawnSparks()

void WorldMap_PulseOrbAndSpawnSparks ( union FieldObject * fieldObject)
static

Pulses the orb's scale and emits short-lived sparks.

Definition at line 169 of file world_map.c.

Referenced by Event_UseBlackOrb(), and WorldMap_PulseOrbAndSpawnSparks().

◆ WorldMap_UpdateBobbingMarker()

void WorldMap_UpdateBobbingMarker ( union FieldObject * fieldObject)
static

Cycles the marker's palette and orbits it around its map position.

Definition at line 201 of file world_map.c.

Referenced by WorldMap_InitializeFirstDjinni(), and WorldMap_UpdateBobbingMarker().

◆ WorldMap_InitializeFirstDjinni()

s32 WorldMap_InitializeFirstDjinni ( struct ScriptInterpreter * interpreter)
static

Animates the first Djinni until it has met the party.

Definition at line 223 of file world_map.c.

Referenced by WorldMap_InitializeFirstDjinni().

◆ WorldMap_GetEntrances()

const struct SceneEntrance * WorldMap_GetEntrances ( void )

Definition at line 240 of file world_map.c.

Referenced by WorldMap_GetEntrances().

◆ WorldMap_GetRegions()

const struct SceneRegion * WorldMap_GetRegions ( void )

Definition at line 244 of file world_map.c.

Referenced by WorldMap_GetRegions().

◆ WorldMap_GetExits()

const u32 * WorldMap_GetExits ( void )

Definition at line 246 of file world_map.c.

Referenced by WorldMap_GetExits().

◆ WorldMap_ApplyMapRotationAndMode()

s32 WorldMap_ApplyMapRotationAndMode ( struct ScriptInterpreter * interpreter)
static

Aligns the actor to the map and selects its flagged animation mode.

Definition at line 250 of file world_map.c.

Referenced by WorldMap_ApplyMapRotationAndMode().

◆ WorldMap_ApplyMapRotationAndCollision()

s32 WorldMap_ApplyMapRotationAndCollision ( struct ScriptInterpreter * interpreter)
static

Enables the actor's collision and aligns its sprite to the map.

Definition at line 272 of file world_map.c.

Referenced by WorldMap_ApplyMapRotationAndCollision().

◆ WorldMap_InitializeProgressMarker()

s32 WorldMap_InitializeProgressMarker ( struct ScriptInterpreter * interpreter)
static

Resets the map marker after the corresponding story progress.

Called by its object script as the travel marker is placed. Once the Tolbi ship lies at anchor off the island (FLAG_TOLBI_SHIP_AT_ISLAND), sets FLAG_SCENE_TEMP_F1 and puts the marker away at the map's origin.

Definition at line 287 of file world_map.c.

Referenced by WorldMap_InitializeProgressMarker().

◆ WorldMap_BlinkActorSprite()

s32 WorldMap_BlinkActorSprite ( struct ScriptInterpreter * interpreter)
static

Blinks a visible actor on alternating frames.

Definition at line 301 of file world_map.c.

Referenced by WorldMap_BlinkActorSprite().

◆ WorldMap_GetPlacements()

const struct ScenePlacement * WorldMap_GetPlacements ( void )

Definition at line 308 of file world_map.c.

Referenced by WorldMap_GetPlacements().

◆ WorldMap_SelectExitByX()

void WorldMap_SelectExitByX ( s32 trigger,
s32 exitBefore,
s32 exitAfter )
static

Chooses a passage exit from the side of the actor the leader approaches.

Definition at line 347 of file world_map.c.

Referenced by Event_PassThroughWestEastPassage(), and WorldMap_SelectExitByX().

◆ WorldMap_SelectExitByZ()

void WorldMap_SelectExitByZ ( s32 trigger,
s32 exitBefore,
s32 exitAfter )
static

◆ Event_PassThroughWestEastPassage()

void Event_PassThroughWestEastPassage ( void )
static

Walking into a passage: the side the party comes from decides which exit takes it through to the other side.

Reached by walking onto cell code 130.

Definition at line 383 of file world_map.c.

Referenced by Event_PassThroughWestEastPassage().

◆ Event_PassThroughFirstNorthSouthPassage()

void Event_PassThroughFirstNorthSouthPassage ( void )
static

As Event_PassThroughWestEastPassage, for a passage crossed north to south.

Reached by walking onto cell code 150.

Definition at line 389 of file world_map.c.

Referenced by Event_PassThroughFirstNorthSouthPassage().

◆ Event_PassThroughSecondNorthSouthPassage()

void Event_PassThroughSecondNorthSouthPassage ( void )
static

As Event_PassThroughFirstNorthSouthPassage.

Reached by walking onto cell code 116.

Definition at line 395 of file world_map.c.

Referenced by Event_PassThroughSecondNorthSouthPassage().

◆ Event_PassThroughThirdNorthSouthPassage()

void Event_PassThroughThirdNorthSouthPassage ( void )
static

As Event_PassThroughFirstNorthSouthPassage.

Reached by walking onto cell code 151.

Definition at line 401 of file world_map.c.

Referenced by Event_PassThroughThirdNorthSouthPassage().

◆ Event_PassThroughFourthNorthSouthPassage()

void Event_PassThroughFourthNorthSouthPassage ( void )
static

As Event_PassThroughFirstNorthSouthPassage.

Reached by walking onto cell code 125.

Definition at line 407 of file world_map.c.

Referenced by Event_PassThroughFourthNorthSouthPassage().

◆ WorldMap_GetEvents()

const struct SceneEvent * WorldMap_GetEvents ( void )

Definition at line 412 of file world_map.c.

Referenced by WorldMap_GetEvents().

◆ WorldMap_UpdateLocationContacts()

void WorldMap_UpdateLocationContacts ( void )
static

Culls distant location sprites and detects the leader touching nearby ones.

Run each frame on the world map; WorldMap_Initialize adds it.

Definition at line 416 of file world_map.c.

Referenced by WorldMap_Initialize(), and WorldMap_UpdateLocationContacts().

◆ Event_EnterTransferRoute()

void Event_EnterTransferRoute ( void )
static

Walking onto this spot: the first time the travel scene plays, later it is an ordinary entrance.

Reached by walking onto cell code 112.

Definition at line 476 of file world_map.c.

Referenced by Event_EnterTransferRoute().

◆ Event_LeaveEastward()

void Event_LeaveEastward ( void )
static

Walking east off this edge of the map, once allowed.

Reached by walking east into cell code 74 once the Tolbi ship lies at anchor off the island (FLAG_TOLBI_SHIP_AT_ISLAND).

Definition at line 488 of file world_map.c.

Referenced by Event_LeaveEastward().

◆ WorldMap_Initialize()

s32 WorldMap_Initialize ( void )

Restores the map's state and runs the sequence its arrival entrance selects: 90 and 91 carry the party from a lighthouse's beam up to its aerie, 1 marks the first time the party leaves Vale, 33 the Black Orb, 49 Bunza's wagon, 64 the travellers' departure, 65 to 70 the Tolbi ship's crossing, 71 the carriage, 78 a discarded item, 72 and 73 the transitions, 75 the travelling actor, 80 the ending, and 74, 76 and 77 resume airborne travel.

The scene's initialization. Sets FLAG_RETREAT_BLOCKED on the map; entrance 99, a debug start, sets FLAG_NO_ENCOUNTERS, FLAG_DEBUG_STEPS_OFF and flag 0x161. Entrance 1 sets FLAG_PARTY_LEFT_VALE and flag 0x85c the first time. XXX: flags 0x161 and 0x85c are read by no code of this game; a reader would say what they record.

Definition at line 506 of file world_map.c.

Referenced by WorldMap_Initialize().

◆ WorldMap_MoveShakeCamera()

void WorldMap_MoveShakeCamera ( s32 x,
s32 z )
inlinestatic

Moves to the next camera-shake point and holds it for four frames.

Definition at line 961 of file world_map.c.

Referenced by WorldMap_MoveShakeCamera(), WorldMap_ShakeTransferLandingCamera(), and WorldMap_ShakeTransferStartCamera().

◆ WorldMap_ShowDjinnTutorial()

void WorldMap_ShowDjinnTutorial ( void )
static

Demonstrates setting a Djinni and placing it on standby.

Called by Event_MeetFlint; sets and clears FLAG_DJINN_TUTORIAL_PART_A and _PART_B to choose the menu's two lessons.

Definition at line 1193 of file world_map.c.

Referenced by Event_MeetFlint(), and WorldMap_ShowDjinnTutorial().

◆ Event_MeetFlint()

void Event_MeetFlint ( void )
static

Walking up to Flint: he joins the party and shows how Djinn are set and put on standby; then comes the tutorial battle.

Reached by walking onto cell code 90 until Flint (Djinni 0) is caught. Sets FLAG_DJINN_TUTORIAL and its two part flags for each lesson, and clears them all after the battle.

Definition at line 1222 of file world_map.c.

Referenced by Event_MeetFlint().

◆ WorldMap_RestoreExitTrigger()

void WorldMap_RestoreExitTrigger ( void )
static

Makes cell code 138 an exit again, to exit 33.

Called by Event_UseBlackOrb once the orb is handed back.

Definition at line 1608 of file world_map.c.

Referenced by Event_UseBlackOrb(), and WorldMap_RestoreExitTrigger().

◆ Event_TalkAboutBlackOrb()

void Event_TalkAboutBlackOrb ( void )
static

Talking to the one who gave the Black Orb (or reading his mind): he urges its use.

"Now use it... on the ship." Reached by talking to actor 55, or by Mind Read on it.

Definition at line 1628 of file world_map.c.

Referenced by Event_TalkAboutBlackOrb().

◆ Event_SearchShipwreck()

void Event_SearchShipwreck ( void )
static

Searching the shipwreck.

"The wreckage of a ship scuttled off the coast." Reached by searching cell code 96.

Definition at line 1654 of file world_map.c.

Referenced by Event_SearchShipwreck().

◆ Event_UseBlackOrb()

void Event_UseBlackOrb ( void )
static

Using the Black Orb on the shipwreck: nothing happens, the orb is taken back and the party is to press on to Babi Lighthouse.

Reached by using the Black Orb on cell code 96 until it is handed back. Clears FLAG_SCENE_TEMP_34 and sets FLAG_BLACK_ORB_RETURNED.

Definition at line 1676 of file world_map.c.

Referenced by Event_UseBlackOrb().

◆ WorldMap_SpawnActorEightPuff()

void WorldMap_SpawnActorEightPuff ( void )
static

Spawns a puff behind the moving actor at staggered intervals.

Definition at line 2091 of file world_map.c.

Referenced by WorldMap_RunOpeningRise(), and WorldMap_SpawnActorEightPuff().

◆ WorldMap_StartAirborneTravel()

void WorldMap_StartAirborneTravel ( s32 targetActor)
static

Moves the selected actor toward the travel marker and starts its timer.

Called by Event_EnterAirborneTravel. Sets FLAG_SCENE_TEMP_F0 and gives the party 180 frames in the air (FLAG_SCENE_TEMP_F8).

Definition at line 2191 of file world_map.c.

Referenced by Event_EnterAirborneTravel(), and WorldMap_StartAirborneTravel().

◆ Event_EnterAirborneTravel()

void Event_EnterAirborneTravel ( void )
static

Walking onto the marker: the party is lifted up into the air.

Reached by walking onto cell code 95 until the airborne journey is over (FLAG_SCENE_TEMP_F1).

Definition at line 2228 of file world_map.c.

Referenced by Event_EnterAirborneTravel().

◆ Event_StartDousingTravelMarker()

void Event_StartDousingTravelMarker ( void )
static

Starting to cast Douse on the marker.

Reached by the first phase of Douse on the marker (actor 54) while the party is in the air (FLAG_SCENE_TEMP_F0).

Definition at line 2235 of file world_map.c.

Referenced by Event_StartDousingTravelMarker().

◆ Event_DouseTravelMarker()

void Event_DouseTravelMarker ( void )
static

Douse on the marker: the party comes down and a battle begins.

Reached by Douse on the marker (actor 54) while the party is in the air. Clears FLAG_SCENE_TEMP_F0, sets FLAG_SCENE_TEMP_F1 and empties the timer.

Definition at line 2242 of file world_map.c.

Referenced by Event_DouseTravelMarker().

◆ Event_FinishAirborneTravel()

void Event_FinishAirborneTravel ( void )
static

When the time in the air runs out: the party and the marker fly off, and the map reopens elsewhere.

Reached by the scene raising 99 as the timer runs out. Sets FLAG_ARRIVE_FALLING and sends the party to the world map's entrance 27.

Definition at line 2262 of file world_map.c.

Referenced by Event_FinishAirborneTravel().

◆ WorldMap_UpdateTransitionBlend()

void WorldMap_UpdateTransitionBlend ( void )
static

Refreshes the transition's blend registers on alternating frames.

Definition at line 2289 of file world_map.c.

Referenced by WorldMap_PlayLighthouseTransition(), and WorldMap_UpdateTransitionBlend().

◆ WorldMap_JitterTransitionCamera()

void WorldMap_JitterTransitionCamera ( void )
static

Jitters the view around the selected actor during the transition.

Definition at line 2300 of file world_map.c.

Referenced by WorldMap_JitterTransitionCamera(), and WorldMap_PlayLighthouseTransition().

◆ WorldMap_ShowTransitionFrame()

void WorldMap_ShowTransitionFrame ( u8 * buffer,
s32 offset,
s32 frames )
inlinestatic

Displays a transition frame before advancing its animation delay.

Definition at line 2331 of file world_map.c.

Referenced by WorldMap_PlayLighthouseTransition(), and WorldMap_ShowTransitionFrame().

◆ WorldMap_UpdateBlinkingLinkedEffects()

UNUSED void WorldMap_UpdateBlinkingLinkedEffects ( struct FieldActor * actor)
static

Blinks an unused actor and periodically creates its linked effects.

Definition at line 2407 of file world_map.c.

Referenced by WorldMap_UpdateBlinkingLinkedEffects().

◆ WorldMap_UpdateCyclingLinkedEffects()

UNUSED void WorldMap_UpdateCyclingLinkedEffects ( struct FieldActor * actor)
static

Cycles an unused actor's palettes and periodically creates linked effects.

Definition at line 2420 of file world_map.c.

Referenced by WorldMap_UpdateCyclingLinkedEffects().

◆ WorldMap_CycleActorPalettes()

UNUSED void WorldMap_CycleActorPalettes ( struct FieldActor * actor)
static

Advances an unused actor's palette on odd frames.

Definition at line 2430 of file world_map.c.

Referenced by WorldMap_CycleActorPalettes().

Variable Documentation

◆ gWorldMapTriggerActor

◆ gWorldMapBlend

u16 gWorldMapBlend

◆ gTransferArrive10

s32 gTransferArrive10[]
Initial value:
= {
SC_POS(PIXELS(5848), 0, PIXELS(1576)),
SC_WAIT(1),
SC_ARG(2),
SC_MOVE(PIXELS(5848), 0, PIXELS(1544)),
SC_MOVE(PIXELS(5795), 0, PIXELS(1544)),
SC_MOVE(PIXELS(5800), 0, PIXELS(1614)),
SC_MOVE(PIXELS(5864), 0, PIXELS(1624)),
SC_ARG(1),
}
#define PIXELS(value)
#define Q16_ONE
One in the engine's signed 16.16 fixed-point format.
Definition fixed_math.h:10
#define SC_SET(w, v)
Write a work value.
Definition objcmd.h:37
#define SC_POS(x, y, z)
Set position.
Definition objcmd.h:18
#define SC_SYNC
Wait for arrival.
Definition objcmd.h:17
#define SC_ARG(v)
Definition objcmd.h:44
#define SC_MOVE(x, y, z)
Move toward the target.
Definition objcmd.h:19
#define SC_WAIT(n)
Wait n frames.
Definition objcmd.h:16
#define SC_END
Return to the main script.
Definition objcmd.h:32
@ SW_SCALE_Y
Definition objcmd.h:63
@ SW_SCALE_X
Definition objcmd.h:62

Definition at line 2441 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers().

◆ gTransferDepart10

s32 gTransferDepart10[]
Initial value:
= {
SC_ARG(2),
SC_MOVE(PIXELS(5868), 0, PIXELS(1624)),
SC_MOVE(PIXELS(5868), 0, PIXELS(1736)),
SC_ARG(1),
SC_POS(PIXELS(5656), 0, PIXELS(1800)),
}

Definition at line 2459 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers().

◆ gTransferReturn10

s32 gTransferReturn10[]
Initial value:
= {
SC_ARG(2), SC_MOVE(PIXELS(5800), 0, PIXELS(1800)), SC_SYNC, SC_POS(0, 0, 0),
}

Definition at line 2470 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers().

◆ gTransferGather

s32 gTransferGather[]
Initial value:
= {
SC_POS(PIXELS(5868), 0, PIXELS(1704)),
SC_WAIT(1),
SC_ARG(2),
SC_MOVE(PIXELS(5872), 0, PIXELS(1528)),
SC_MOVE(PIXELS(5880), 0, PIXELS(1352)),
SC_POS(0, 0, 0),
}

Definition at line 2475 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers().

◆ gTransferArrive11

s32 gTransferArrive11[]
Initial value:
= {
SC_POS(PIXELS(5848), 0, PIXELS(1576)),
SC_WAIT(1),
SC_ARG(2),
SC_MOVE(PIXELS(5848), 0, PIXELS(1544)),
SC_MOVE(PIXELS(5795), 0, PIXELS(1544)),
SC_MOVE(PIXELS(5800), 0, PIXELS(1630)),
SC_MOVE(PIXELS(5832), 0, PIXELS(1640)),
SC_ARG(1),
}

Definition at line 2487 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers().

◆ gTransferDepart11

s32 gTransferDepart11[]
Initial value:
= {
SC_ARG(2),
SC_MOVE(PIXELS(5863), 0, PIXELS(1640)),
SC_MOVE(PIXELS(5868), 0, PIXELS(1736)),
SC_ARG(1),
SC_POS(PIXELS(5640), 0, PIXELS(1768)),
}

Definition at line 2505 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers().

◆ gTransferReturn11

s32 gTransferReturn11[]
Initial value:
= {
SC_ARG(2), SC_MOVE(PIXELS(5640), 0, PIXELS(1795)),
SC_SYNC, SC_MOVE(PIXELS(5800), 0, PIXELS(1800)),
SC_SYNC, SC_POS(0, 0, 0),
}

Definition at line 2516 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers().

◆ gTransferArrive12

s32 gTransferArrive12[]
Initial value:
= {
SC_POS(PIXELS(5848), 0, PIXELS(1576)),
SC_WAIT(1),
SC_ARG(2),
SC_MOVE(PIXELS(5848), 0, PIXELS(1544)),
SC_MOVE(PIXELS(5795), 0, PIXELS(1544)),
SC_MOVE(PIXELS(5800), 0, PIXELS(1614)),
SC_MOVE(PIXELS(5832), 0, PIXELS(1624)),
SC_ARG(1),
}

Definition at line 2523 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers().

◆ gTransferDepart12

s32 gTransferDepart12[]
Initial value:
= {
SC_ARG(2),
SC_MOVE(PIXELS(5863), 0, PIXELS(1624)),
SC_MOVE(PIXELS(5868), 0, PIXELS(1736)),
SC_ARG(1),
SC_POS(PIXELS(5656), 0, PIXELS(1768)),
}

Definition at line 2541 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers().

◆ gTransferReturn12

s32 gTransferReturn12[]
Initial value:
= {
SC_ARG(2), SC_MOVE(PIXELS(5656), 0, PIXELS(1795)),
SC_SYNC, SC_MOVE(PIXELS(5800), 0, PIXELS(1800)),
SC_SYNC, SC_POS(0, 0, 0),
}

Definition at line 2552 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers().

◆ gTransferArrive13

s32 gTransferArrive13[]
Initial value:
= {
SC_POS(PIXELS(5848), 0, PIXELS(1576)),
SC_WAIT(1),
SC_ARG(2),
SC_MOVE(PIXELS(5848), 0, PIXELS(1544)),
SC_MOVE(PIXELS(5795), 0, PIXELS(1544)),
SC_MOVE(PIXELS(5800), 0, PIXELS(1598)),
SC_MOVE(PIXELS(5832), 0, PIXELS(1608)),
SC_ARG(1),
}

Definition at line 2559 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers().

◆ gTransferDepart13

s32 gTransferDepart13[]
Initial value:
= {
SC_ARG(2),
SC_MOVE(PIXELS(5863), 0, PIXELS(1608)),
SC_MOVE(PIXELS(5868), 0, PIXELS(1736)),
SC_ARG(1),
SC_POS(PIXELS(5672), 0, PIXELS(1768)),
}

Definition at line 2577 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers().

◆ gTransferReturn13

s32 gTransferReturn13[]
Initial value:
= {
SC_ARG(3), SC_MOVE(PIXELS(5672), 0, PIXELS(1795)),
SC_SYNC, SC_MOVE(PIXELS(5800), 0, PIXELS(1800)),
SC_SYNC, SC_POS(0, 0, 0),
}

Definition at line 2588 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers().

◆ gTransferGuide14

s32 gTransferGuide14[]
Initial value:
= {
SC_WAIT(1),
SC_MOVE(PIXELS(5608), 0, PIXELS(1720)),
SC_WAIT(1),
SC_LOOP(160, SC_TO(1)),
}
#define SC_LABEL(n)
Branch destination.
Definition objcmd.h:11
#define SC_LOOP(n, to)
Repeat up to n times.
Definition objcmd.h:28
#define SC_TO(n)
Definition objcmd.h:12
#define SC_ADD(w, v)
Definition objcmd.h:38

Definition at line 2595 of file world_map.c.

Referenced by WorldMap_DepartWithTravelers().

◆ gBlackOrbLeaderScript

s32 gBlackOrbLeaderScript[]
Initial value:
= {
SC_SET(0x23, 0),
SC_ARG(2),
SC_MOVE(PIXELS(6008), 0, PIXELS(3400)),
SC_MOVE(PIXELS(6020), 0, PIXELS(3400)),
SC_ARG(1),
SC_SET(0x23, 1),
SC_WAIT(1),
}

Definition at line 2608 of file world_map.c.

Referenced by WorldMap_RunBlackOrbScene().

◆ gPresentGuide9

s32 gPresentGuide9[]
Initial value:
= {
SC_ARG(2),
SC_MOVE(PIXELS(7564), 0, PIXELS(3476)),
SC_MOVE(PIXELS(7576), 0, PIXELS(3464)),
SC_MOVE(PIXELS(7640), 0, PIXELS(3464)),
SC_MOVE(PIXELS(7656), 0, PIXELS(3480)),
SC_MOVE(PIXELS(7720), 0, PIXELS(3480)),
SC_MOVE(PIXELS(7752), 0, PIXELS(3496)),
SC_ARG(1),
SC_WAIT(1),
}
@ FACING_STEP
Definition field_scene.h:36
@ FACING_SOUTHEAST
Definition field_scene.h:27
@ SW_FACING
Definition objcmd.h:57

Definition at line 2621 of file world_map.c.

Referenced by WorldMap_ShowEndingScene().

◆ gPresentGuide8

s32 gPresentGuide8[]
Initial value:
= {
SC_ARG(2),
SC_MOVE(PIXELS(7564), 0, PIXELS(3476)),
SC_MOVE(PIXELS(7576), 0, PIXELS(3464)),
SC_MOVE(PIXELS(7640), 0, PIXELS(3464)),
SC_MOVE(PIXELS(7656), 0, PIXELS(3480)),
SC_MOVE(PIXELS(7704), 0, PIXELS(3512)),
SC_ARG(1),
SC_WAIT(1),
}
@ FACING_EAST
Definition field_scene.h:26

Definition at line 2641 of file world_map.c.

Referenced by WorldMap_ShowEndingScene().

◆ gPresentGuide5

s32 gPresentGuide5[]
Initial value:
= {
SC_SET(0x23, 0),
SC_ARG(2),
SC_MOVE(PIXELS(7564), 0, PIXELS(3476)),
SC_MOVE(PIXELS(7576), 0, PIXELS(3464)),
SC_MOVE(PIXELS(7640), 0, PIXELS(3464)),
SC_MOVE(PIXELS(7656), 0, PIXELS(3480)),
SC_MOVE(PIXELS(7688), 0, PIXELS(3528)),
SC_ARG(1),
SC_SET(0x23, 1),
SC_WAIT(1),
}

Definition at line 2659 of file world_map.c.

Referenced by WorldMap_ShowEndingScene().

◆ gTransitionSparkScript

s32 gTransitionSparkScript[]
Initial value:
= {
SC_WAIT(16),
}
#define SC_FREE
Release.
Definition objcmd.h:43

Definition at line 2679 of file world_map.c.

Referenced by WorldMap_UpdateTransitionEffect().

◆ gTransferLeaderIdle

s32 gTransferLeaderIdle[]
Initial value:
= {
SC_ARG(2), SC_MOVE_BY(PIXELS(-8), 0, 0),
SC_SET(0x23, 1), SC_MOVE_BY(PIXELS(-8), 0, 0),
SC_SYNC, SC_MOVE_BY(PIXELS(-8), 0, 0),
}
#define SC_TOP
Script start.
Definition objcmd.h:13
#define SC_MOVE_BY(x, y, z)
Move by a relative offset.
Definition objcmd.h:20

Definition at line 2684 of file world_map.c.

Referenced by WorldMap_TransferToExit103(), WorldMap_TransferToExit104(), WorldMap_TransferToExit106(), and WorldMap_TransferToTolbiShipInteriors().

◆ gTransferLeaderTurn

s32 gTransferLeaderTurn[]
Initial value:
= {
SC_ARG(2), SC_MOVE_BY(PIXELS(-8), 0, PIXELS(-2)),
SC_SET(0x23, 1), SC_MOVE_BY(PIXELS(-8), 0, PIXELS(-2)),
}

Definition at line 2692 of file world_map.c.

Referenced by WorldMap_TransferToExit106().

◆ gOpeningLeaderRise

s32 gOpeningLeaderRise[]
Initial value:
= {
SC_MOVE_BY(PIXELS(24), 0, 0),
SC_SET(0x23, 1),
SC_MOVE_BY(PIXELS(24), 0, 0),
SC_MOVE_BY(PIXELS(24), 0, 0),
}

Definition at line 2700 of file world_map.c.

Referenced by WorldMap_RunOpeningRise().

◆ gWorldMapPlacement0

s32 gWorldMapPlacement0[]
Initial value:
= {
}
#define SC_CALL(fn)
Definition objcmd.h:50
static s32 WorldMap_InitializeFirstDjinni(struct ScriptInterpreter *interpreter)
Animates the first Djinni until it has met the party.
Definition world_map.c:223

Definition at line 2712 of file world_map.c.

◆ gWorldMapEntrances

struct SceneEntrance gWorldMapEntrances[]

Definition at line 2717 of file world_map.c.

Referenced by WorldMap_GetEntrances().

◆ gWorldMapExits

u32 gWorldMapExits[]

Definition at line 2802 of file world_map.c.

Referenced by WorldMap_GetExits().

◆ gWorldMapPlacement2

s32 gWorldMapPlacement2[]
Initial value:
= {
}
static s32 WorldMap_ApplyMapRotationAndMode(struct ScriptInterpreter *interpreter)
Aligns the actor to the map and selects its flagged animation mode.
Definition world_map.c:250

Definition at line 2841 of file world_map.c.

◆ gWorldMapPlacement1

s32 gWorldMapPlacement1[]
Initial value:
= {
}
static s32 WorldMap_ApplyMapRotation(struct ScriptInterpreter *interpreter)
Aligns the actor's sprite rotation to the map.
Definition world_map.c:260

Definition at line 2846 of file world_map.c.

◆ gWorldMapPlacement4

s32 gWorldMapPlacement4[]
Initial value:
= {
}
static s32 WorldMap_ApplyMapRotationAndCollision(struct ScriptInterpreter *interpreter)
Enables the actor's collision and aligns its sprite to the map.
Definition world_map.c:272

Definition at line 2851 of file world_map.c.

◆ gWorldMapPlacement3

s32 gWorldMapPlacement3[]
Initial value:
= {
}
static s32 WorldMap_InitializeProgressMarker(struct ScriptInterpreter *interpreter)
Resets the map marker after the corresponding story progress.
Definition world_map.c:287
static s32 WorldMap_BlinkActorSprite(struct ScriptInterpreter *interpreter)
Blinks a visible actor on alternating frames.
Definition world_map.c:301

Definition at line 2856 of file world_map.c.

◆ gWorldMapPlacements

struct ScenePlacement gWorldMapPlacements[]

Definition at line 2863 of file world_map.c.

Referenced by WorldMap_ActivateSite138(), and WorldMap_GetPlacements().

◆ gWorldMapPlacements64

struct ScenePlacement gWorldMapPlacements64[]
Initial value:

Definition at line 2966 of file world_map.c.

Referenced by WorldMap_GetPlacements().

◆ gWorldMapPlacements49

struct ScenePlacement gWorldMapPlacements49[]
Initial value:

Definition at line 2990 of file world_map.c.

Referenced by WorldMap_GetPlacements().

◆ gWorldMapPlacements65

struct ScenePlacement gWorldMapPlacements65[]
Initial value:

Definition at line 3004 of file world_map.c.

Referenced by WorldMap_GetPlacements().

◆ gWorldMapPlacements66

struct ScenePlacement gWorldMapPlacements66[]
Initial value:

Definition at line 3016 of file world_map.c.

Referenced by WorldMap_GetPlacements().

◆ gWorldMapPlacements71

struct ScenePlacement gWorldMapPlacements71[]
Initial value:

Definition at line 3022 of file world_map.c.

Referenced by WorldMap_GetPlacements().

◆ gWorldMapPlacements80

◆ gWorldMapPlacements72

struct ScenePlacement gWorldMapPlacements72[]
Initial value:

Definition at line 3048 of file world_map.c.

Referenced by WorldMap_GetPlacements().

◆ gWorldMapPlacements73

struct ScenePlacement gWorldMapPlacements73[]
Initial value:

Definition at line 3054 of file world_map.c.

Referenced by WorldMap_GetPlacements().

◆ gWorldMapEvents

struct SceneEvent gWorldMapEvents[]

◆ gWorldMapRewards

u32 gWorldMapRewards[]
Initial value:
= {
7, 5, 8, 4, 9, 12, 6, 3,
0,
}

Definition at line 3130 of file world_map.c.

Referenced by WorldMap_GetSelectedReward().

◆ gActorEightPuffScript

s32 gActorEightPuffScript[]
Initial value:
= {
SC_ADD(SW_X, -PIXELS(1) / 10),
SC_ADD(SW_Z, PIXELS(1) / 10),
SC_ADD(SW_SCALE_X, 7 * Q16_ONE / 128),
SC_ADD(SW_SCALE_Y, -3 * Q16_ONE / 512),
SC_WAIT(1),
SC_POS(0, 0, 0),
SC_WAIT(1),
}
@ SW_Z
Definition objcmd.h:60
@ SW_X
Definition objcmd.h:58

Definition at line 3136 of file world_map.c.

Referenced by WorldMap_SpawnActorEightPuff().