Kolima Forest's bridge, where the road from the world map enters the forest. More...
Go to the source code of this file.
Macros | |
| #define | DIRECTION_STEP(dx, dz) |
| Pixel step by direction: X in the upper halfword, Z in the lower. | |
Enumerations | |
| enum | { ENTRANCE_FROM_WORLD_MAP = 4 } |
| enum | { RIVER_LOG = 10 , TRET = 11 , LAUREL = 12 , LEADER_BARRIER = 13 , IVAN_BARRIER = 14 , MIA_BARRIER = 15 , GARET_BARRIER = 16 , FIRST_GROUND_SPARKLE = 17 , LAST_GROUND_SPARKLE = 21 } |
Functions | |
| static void | KolimaForestBridge_WitnessForestCurse (void) |
| The party, on the bridge, sees the curse fall. | |
| static void | KolimaForestBridge_ShowMessageAndWait (s32 speaker, s32 frames) |
| static void | KolimaForestBridge_FaceActorAndWait (s32 actorId, s32 facing, s32 waitFrames) |
| Turns an actor at once, then leaves time for the next beat. | |
| static void | KolimaForestBridge_SpawnCurseSparkle (void) |
| Every eighth frame a sparkle of Tret's glamour (object 26) falls toward the party, with its tinkle while the rain is at its height. | |
| static void | KolimaForestBridge_FlickerBarriers (void) |
| Each frame the domes flicker: two show on even frames and two on odd, the hidden ones lifted 500 pixels out of sight. | |
| static s32 | KolimaForestBridge_FlashHitBarriers (struct ScriptInterpreter *interpreter) |
| The end of a dome's growing: if a sparkle has burst on a dome, the dome takes its next pose. | |
| static s32 | KolimaForestBridge_TwinkleGroundSparkle (struct ScriptInterpreter *interpreter) |
| Each frame: a ground sparkle's timer runs on at random, and the sparkle shows its bright frame (7) while the timer is past 1000, its dim one (10) before; at 1200 the timer starts over. | |
| const struct SceneEntrance * | KolimaForestBridge_GetEntrances (void) |
| Where the party enters from the clearing and the world map. | |
| const struct SceneRegion * | KolimaForestBridge_GetRegions (void) |
| const u32 * | KolimaForestBridge_GetExits (void) |
| The paths to the clearing and the world map. | |
| const struct ScenePlacement * | KolimaForestBridge_GetPlacements (void) |
| The party's companions, the logs, Tret, Laurel, the domes and the ground sparkles. | |
| static void | KolimaForestBridge_PushLog (void) |
| Walking into a log: it rolls ahead until something stops it. | |
| const struct SceneEvent * | KolimaForestBridge_GetEvents (void) |
| The logs, the jump east from the bank and the two paths. | |
| s32 | KolimaForestBridge_Initialize (void) |
| On entry a log already in the river floats there again and the logs mark the cells they cover. | |
| static s32 | KolimaForestBridge_BurstOnBarrier (struct ScriptInterpreter *interpreter) |
| The end of a sparkle's fall: one that lands on a dome (the domes' area, which differs with Mia) bursts with a sound, and the domes are told. | |
Kolima Forest's bridge, where the road from the world map enters the forest.
Of its three logs, the one pushed west to the bank tips into the river and bridges it. Arriving from the world map before the party has seen the curse in Kolima, they see it fall here: sparkles of Tret's glamour rain down, domes of their own Psynergy shield them, and Tret and Laurel, unseen, speak of the dying forest.
FLAG_SCENE_TEMP_00: the log is in the river.
Definition in file kolima_forest_bridge.c.
| #define DIRECTION_STEP | ( | dx, | |
| dz ) |
Pixel step by direction: X in the upper halfword, Z in the lower.
Definition at line 1149 of file kolima_forest_bridge.c.
| anonymous enum |
| Enumerator | |
|---|---|
| ENTRANCE_FROM_WORLD_MAP | |
Definition at line 44 of file kolima_forest_bridge.c.
| anonymous enum |
Definition at line 46 of file kolima_forest_bridge.c.
|
static |
The party, on the bridge, sees the curse fall.
Ivan notices sparkly stuff on the ground; sparkles rain from the sky, the party sinks under them, and domes of Psynergy rise around each member before the sparkles reach them. They argue over whose Psynergy it was, the sparkles fall again and the domes rise again, and Tret and Laurel speak: Tret turned Kolima's people into trees for cutting him, and only his gentle side, deep in the forest, can save them. Lines and choices for Mia are skipped when she is not in the party.
Definition at line 197 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_Initialize(), and KolimaForestBridge_WitnessForestCurse().
Definition at line 1013 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_ShowMessageAndWait(), and KolimaForestBridge_WitnessForestCurse().
Turns an actor at once, then leaves time for the next beat.
Definition at line 1019 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_FaceActorAndWait(), and KolimaForestBridge_WitnessForestCurse().
|
static |
Every eighth frame a sparkle of Tret's glamour (object 26) falls toward the party, with its tinkle while the rain is at its height.
Definition at line 1029 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_SpawnCurseSparkle(), and KolimaForestBridge_WitnessForestCurse().
|
static |
Each frame the domes flicker: two show on even frames and two on odd, the hidden ones lifted 500 pixels out of sight.
Definition at line 1107 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_FlickerBarriers(), and KolimaForestBridge_WitnessForestCurse().
|
static |
The end of a dome's growing: if a sparkle has burst on a dome, the dome takes its next pose.
Definition at line 77 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_FlashHitBarriers().
|
static |
Each frame: a ground sparkle's timer runs on at random, and the sparkle shows its bright frame (7) while the timer is past 1000, its dim one (10) before; at 1200 the timer starts over.
Definition at line 91 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_TwinkleGroundSparkle().
| const struct SceneEntrance * KolimaForestBridge_GetEntrances | ( | void | ) |
Where the party enters from the clearing and the world map.
Definition at line 107 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_GetEntrances().
| const struct SceneRegion * KolimaForestBridge_GetRegions | ( | void | ) |
Definition at line 111 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_GetRegions().
| const u32 * KolimaForestBridge_GetExits | ( | void | ) |
The paths to the clearing and the world map.
Definition at line 114 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_GetExits().
| const struct ScenePlacement * KolimaForestBridge_GetPlacements | ( | void | ) |
The party's companions, the logs, Tret, Laurel, the domes and the ground sparkles.
Definition at line 120 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_GetPlacements().
|
static |
Walking into a log: it rolls ahead until something stops it.
The river log, stopped at the bank (cell column 20), tips over with a splash and floats in the water; its cells become ground the party can cross.
Definition at line 127 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_PushLog().
| const struct SceneEvent * KolimaForestBridge_GetEvents | ( | void | ) |
The logs, the jump east from the bank and the two paths.
Definition at line 156 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_GetEvents().
| s32 KolimaForestBridge_Initialize | ( | void | ) |
On entry a log already in the river floats there again and the logs mark the cells they cover.
From the world map, before the curse has been seen, the party sees it fall; once the curse is lifted the ground sparkles are gone.
Definition at line 164 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_Initialize().
|
static |
The end of a sparkle's fall: one that lands on a dome (the domes' area, which differs with Mia) bursts with a sound, and the domes are told.
Definition at line 1067 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_BurstOnBarrier().
| s32 gKolimaForestBridge_BarrierHit |
Definition at line 1101 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_BurstOnBarrier(), KolimaForestBridge_FlashHitBarriers(), and KolimaForestBridge_WitnessForestCurse().
| s32 gKolimaForestBridge_MiaInParty |
Definition at line 1102 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_BurstOnBarrier(), and KolimaForestBridge_WitnessForestCurse().
| s32 gKolimaForestBridge_SparkleSoundOn |
Definition at line 1103 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_SpawnCurseSparkle(), and KolimaForestBridge_WitnessForestCurse().
| s32 gStagedActor_DirectionSteps[] |
Pixel step by direction: X in the upper halfword, Z in the lower.
Definition at line 1151 of file kolima_forest_bridge.c.
| u32 gStagedActor_FootprintKinds[] |
Definition at line 1161 of file kolima_forest_bridge.c.
| s32 gStagedActor_FootprintBounds[] |
Definition at line 1165 of file kolima_forest_bridge.c.
| s32 gKolimaForestBridge_GaretAction[] |
Garet, Ivan and Mia walk to their places beside the leader.
Definition at line 1176 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_WitnessForestCurse().
| s32 gKolimaForestBridge_IvanAction[] |
Definition at line 1182 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_WitnessForestCurse().
| s32 gKolimaForestBridge_MiaAction[] |
Definition at line 1188 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_WitnessForestCurse().
| s32 gKolimaForestBridge_SquashAction[] |
The glamour presses the party down: each squashes and wobbles until released.
Definition at line 1196 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_WitnessForestCurse().
| s32 gKolimaForestBridge_RestoreScaleAction[] |
Definition at line 1204 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_WitnessForestCurse().
| s32 gKolimaForestBridge_BarrierGrowAction[] |
A dome grows from a tenth of its size over 70 frames.
Definition at line 1212 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_WitnessForestCurse().
| s32 gKolimaForestBridge_BarrierShrinkAction[] |
A dome sinks and shrinks away over 90 frames.
Definition at line 1226 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_WitnessForestCurse().
| s32 gKolimaForestBridge_GroundSparkleAction[] |
Definition at line 1238 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_WitnessForestCurse().
| struct SceneEntrance gKolimaForestBridge_Entrances[] |
Definition at line 1248 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_GetEntrances().
| u32 gKolimaForestBridge_Exits[] |
Exit 1 to the clearing (scene 41) and exit 4 to the world map (scene 2).
Exits 2 and 3, which no event uses, lead into this map (scene 40).
Definition at line 1257 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_GetExits().
| struct ScenePlacement gKolimaForestBridge_Placements[] |
Garet, Ivan and Mia for the curse; the three logs; Tret and Laurel; the four domes; and the five ground sparkles.
Definition at line 1265 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_GetPlacements().
| struct SceneEvent gKolimaForestBridge_Events[] |
Definition at line 1302 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_GetEvents().
| s32 gKolimaForestBridge_SparkleScript[] |
Definition at line 1312 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_SpawnCurseSparkle().
| s32 gKolimaForestBridge_SparkleBurstScript[] |
A sparkle bursts on a dome: it doubles in size and is gone.
Definition at line 1318 of file kolima_forest_bridge.c.
Referenced by KolimaForestBridge_BurstOnBarrier().
| s32 gFallingEffectScript[] |
Definition at line 1325 of file kolima_forest_bridge.c.