src/scene/prox.c
Prox, Felix's home in the frozen north, where Puelle's clan lives in poverty in the shadow of the Mars Lighthouse. More…
#include "graphics/palette_buffers.h"#include "field/actor_script.h"#include "macros.h"#include "shared/actor_set_sprite_priority.c"#include "../field/field_effect_move.c"#include "field/script_inline.h"#include "scene/script_check_spheres_overlap.h"#include "field/field_engine.h"#include "edition.h"#include "game/game.h"#include "field/call.h"#include "window/window.h"#include "text/msg_ids.h"#include "scene/falling_rocks.h"#include "scene/scene.h"#include "shop/shop.h"#include "shared/field_effect_spawn.c"#include "shared/position_distance.c"#include "shared/leader_is_facing_north.c"#include "shared/smoke_drift.c"#include "shared/smoke_spawn.c"#include "shared/actor_steer_by_pad.c"#include "shared/leader_stop_if_pending.c"#include "shared/leader_slide_on_ice.c"#include "shared/slide_on_ice_from_edge.c"#include "shared/leader_slide_on_ice_ahead.c"#include "shared/particle_update_falling.c"#include "shared/rock_spawn.c"#include "shared/rock_end_falling.c"#include "shared/field_effect_duration_scripts.c"#include "shared/leader_walk_through_door_script.c"#include "shared/slide_on_ice_angles.c"#include "shared/scene_entrances_default.c"
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_SAID_FAREWELL 0x9cc | The farewells at the south gate, before the credits. |
#define | FLAG_MOLD_HID_IN_SNOW 0xa2d | Mold hid in the snow pile at the head of the frozen river. |
#define | FLAG_DOOR_LEFT_OPEN FLAG_SCENE_TEMP(0x00) | The door of the upper house, which the warrior comes out of, stays open. |
#define | FLAG_STORM_RAGING FLAG_SCENE_TEMP(0x01) | Set while the Mars Lighthouse is unlit: rain and storm over the village. |
#define | FLAG_DIG_SPOT_SCOOPED FLAG_AREA_TEMP(0x00) | |
#define | KRADEN_ANIMATION_WAVE 9 | Kraden, Felix and Isaac waving goodbye to the player before the credits, each in his own sprite sheet's numbering. |
#define | FELIX_ANIMATION_WAVE 33 | |
#define | ISAAC_ANIMATION_WAVE 40 | |
#define | EFFECT_SET_MODE fdActorSelectAnimation | |
#define | EFFECT_SET_SCRIPT fdActorStartScript | |
#define | HEADING_SECTOR_MASK (TRIG_TURN - FACING_STEP) | The sixteenth of a turn a heading points into, as a mask. |
#define | CHASE_GIVE_WAY_TICKS 120 | The ticks the leader must have pushed against a chasing child before it gives way. |
#define | CHASE_CHILD_RANGE 24 | How near, in pixels, a child chases another child or the leader, and how near the leader stops a child in its game (in every edition but the Japanese). |
#define | CHASE_LEADER_RANGE 32 | |
#define | CHASE_STOP_RANGE 11 | |
#define | CHASE_QUARRY (actor) ((actor)->chaseQuarry) | The child each child at chase runs after, kept in its chaseQuarry. |
Enumerations
| Name | Description | |
|---|---|---|
enum | PROX_SOUTH_GATE_ACTOR_ID { ACTOR_KYLE, ACTOR_JENNAS_FATHER, ACTOR_JENNAS_MOTHER, ACTOR_ … } | The people at the south gate for the farewell after the ending, numbering the rows of ProxSouthGateFarewellPlacements; the party's rows go to their party slots. |
enum | PROX_TOWN_ACTOR_ID { ACTOR_VILLAGER_WELCOMING_FELIX, ACTOR_VILLAGER_ON_AGATIO_AND … } | The people of the lower village, numbering the rows of ProxTownPlacements. |
enum | PROX_NORTH_ACTOR_ID { ACTOR_WARRIOR_SENT_FOR_PARENTS, ACTOR_WARRIOR_SEARCHING_FOR_ … } | The people of the upper village, numbering the rows of ProxNorthPlacements and ProxNorthPlacementsOnceLit; Isaac's row goes to his party slot. |
enum | PROX_HOUSES_ACTOR_ID { ACTOR_VILLAGER_ON_THE_RIFT_GETTING_WIDER, ACTOR_VILLAGER_TOL … } | The people inside the houses and the igloo, numbering the rows of ProxHousesPlacements and ProxHousesPlacementsOnceLit; Isaac's and Jenna's rows go to their party slots. |
enum | PROX_CAVE_HOMES_ACTOR_ID { ACTOR_VILLAGER_ON_PROXS_PURPOSE, ACTOR_VILLAGER_REMEMBERING_ … } | The people of the basements and the shop's cave room, numbering the rows of ProxCaveHomesPlacements and ProxCaveHomesPlacementsOnceLit. |
enum | PROX_SANCTUM_ACTOR_ID { ACTOR_HEALER } | The Sanctum: one old man, the healer behind its lectern. |
enum | PROX_METATILE_BEHAVIOR { METATILE_BEHAVIOR_MOLD_SNOW_PILE, METATILE_BEHAVIOR_BESIDE_M … } | The metatiles the cue tables answer, other than doors and exits, whose metatiles carry the number of the exit they leave by. |
enum | anonymous enum { CHASE_TRAINING_CHILD, CHASE_PLAYING_CHILD, CHASE_CHILD_WHO_M … } | |
enum | anonymous enum { SHOP_PROX } | Prox's shops, as mnShopRun numbers them. |
enum | anonymous enum { INN_ID_PROX } | Prox's inn, as mnInnCheckIn numbers the inns. |
enum | PROX_RAISED_CUE { RAISED_MOLD_JOINS } | The raised cue scProxScoopUpMold leaves for scProxMoldJoins. |
Functions
| Name | Description | |
|---|---|---|
void | scProxMoldJoins (void) | Mold, just dug out of the snow pile at the head of the frozen river, joins the party: "Felix found the Venus Djinni Mold!" It runs as soon as scProxScoopUpMold has set it off, while the lighthouse is still unlit. |
void | scProxMercuryDjinniJoins (void) | Felix talks to the Mercury Djinni in the upper house, the one Puelle's warrior comes out of, and it joins the party. |
void | scProxInitTown (void) | Sets up the lower village: after the ending, its three children play chase outside the igloo. |
void | scProxInitNorth (void) | Sets up the upper village. |
void | scProxInitHouses (void) | Sets up the houses: on the arrival from the Mars Lighthouse after the ending, the clan's thanks in the big north-west house. |
void | scProxInitCaveHomes (void) | Sets up the basements: arriving from a house, Felix comes down its stairs. |
void | scProxComeDownStairs (Sint32 westOrSouth) | Felix comes down the stairs from a house into its basement: he appears on the stairs, steps down and walks a few steps on. |
void | fdLeaderStopIfPending (void) | Stops the leader while an action waits. |
void | scParticleUpdateFalling (void) | Each tick, the falling rocks in flight: each falls, damped and pulled down, for FALLING_ROCK_TICKS ticks, keeping all but a sixty-fourth of its speed each tick, and shows the five pictures of falling_rock.png in turn, four ticks apiece, shrinking as it goes. |
void | scProxTalkToShopkeeper (void) | Felix talks to the shopkeeper, the old woman behind the counter in the cave room behind the small door in the east cliff. |
void | scProxTalkToHealer (void) | Felix talks to the healer, the old man behind the lectern in the Sanctum behind the wide wooden door in the west cliff. |
void | scProxTalkToPlayingChild (void) | After the ending, Felix stops one of the three children playing chase outside the igloo, the first boy. |
void | scProxTalkToTrainingChild (void) | After the ending, Felix stops the second boy playing chase outside the igloo. |
void | scProxSearchForParents (void) | Felix comes up to the upper house in the upper village, at metatiles (36, 20) to (37, 22) just east of its door, while the lighthouse is unlit. |
void | scProxDecideToGoToLighthouse (void) | Felix walks partway up the west path in the upper village, metatiles (7, 16) to (9, 16), and the camera moves up to its top, where Puelle tells the clan they cannot wait for Agatio any longer and he will go to the Mars Lighthouse himself. |
void | scProxMeetPuelle (void) | Felix reaches the top of the west path in the upper village, metatiles (7, 8) to (8, 10), and walks up to Puelle and the elder before the clan. |
void | scProxMoldHidesInSnow (void) | Felix walks up to Mold, who stands on the frozen river just south of the wooden bridge in the upper village, and Mold bolts away north under the bridge and up the river. |
void | scProxScoopUpMold (void) | Felix casts Scoop on the pile of snow at the head of the frozen river in the upper village, metatile (25, 9), and digs Mold out: the Djinni hops up and turns to him. |
void | scProxStartScoop (void) | Nothing visible happens when Felix starts to cast Scoop facing a wall in the upper village. |
void | scProxEndScoop (void) | Nothing visible happens when Scoop's cast ends in the upper village: the snow pile at the head of the frozen river, metatile (25, 9), is a wall again, as Felix found it. |
void | scProxEnterInn (void) | Felix walks north into the door of the inn, the house on the left just inside the south entrance of the lower village, metatile (12, 28). |
void | scProxEnterSouthHouse (void) | Felix walks north into the door of the house east of the inn, metatile (20, 26). |
void | scProxEnterWestHouse (void) | Felix walks north into the door of the house north of the inn, on the west side of the lower village, metatile (11, 21). |
void | scProxEnterNorthwestHouse (void) | Felix walks north into the door of the big house in the north-west of the lower village, metatile (16, 15). |
void | scProxEnterEastHouse (void) | Felix walks north into the door of the house in the east of the lower village, north of the igloo, metatile (35, 18). |
void | scProxEnterSanctum (void) | Felix walks north into the wide wooden door in the west cliff of the lower village, metatiles (5, 13) and (6, 13), and enters the Sanctum. |
void | scProxEnterUpperHouse (void) | Felix walks north into the door of the upper house in the upper village, metatile (32, 22), which stands open once the warrior has come out of it. |
void | scProxClimbStairs (void) | Felix walks north onto the stairs in one of the three basements and climbs up into the house above it: the east house, the big north-west house, or the inn. |
void | scProxSayFarewell (void) | After the thanks in the big north-west house, Felix walks south through the south gate, metatiles (8, 9) and (9, 9), where everyone is waiting. |
void | scProxSmokeFromChimneys (void) | After the ending, with the storm over, smoke rises from the chimneys of the lower village's houses and of the upper house. |
Sint32 | scProxEndScript () | The overlay's call to fdScriptEnd. |
void | fdLeaderSlideOnIce (void) | Felix steps onto the frozen river in the upper village, between the cliff and the wooden bridge, and slides on the way he was going, metatile by metatile, until a wall, a rise in the ground, a person or the end of the ice stops him. |
Sint32 | scProxChaseTarget (ACTOR *actor, ACTOR *target, Sint32 range, Sint32 force) | A child at chase stands still once its target is within range and ahead of it (or always, with force), until the leader has pushed against it long enough; otherwise it runs on. |
Sint32 | scProxPlayChase (ACTOR *actor) | The children's game of chase after the ending: each runs at the child it chases, and in every edition but the Japanese stops when the leader comes up close. |
const SCENE_ENTRANCE * | scGetEntrances (void) | Where the party can enter: the cave under the spring has its own entrances. |
const SCENE_REGION * | scGetExitRegions (void) | The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room. |
const Uint32 * | scGetExits (void) | The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN. |
const ACTOR_PLACE * | scGetActorPlacements (void) | The scene's actor placements: a room of names for its entrance, else the debug room's. |
void | scProxScoopUpDarkMatter (Sint32 mode) | Felix casts Scoop on the hidden spot just east of the igloo, past its fence among the snowy rocks, metatile (40, 21), and digs up Dark Matter: "Felix got some Dark Matter." |
const CUE * | scGetCues (void) | The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's. |
void | scProxAskAboutIgloos (void) | The boy inside the igloo asks Felix whether he likes igloos. |
void | scProxTalkToInnkeeper (void) | Felix talks to the innkeeper behind the inn's counter. |
void | scProxTalkToChildWhoMissesRunning (void) | After the ending, Felix stops the girl playing chase outside the igloo. |
void | scProxEnterDoor ( Sint32 srcX, Sint32 srcY, Sint32 x, Sint32 y, Sint32 width, Sint32 height) | Felix walks into a door: it opens (the Sanctum's wide door with a thump) unless it was left open, he steps to the middle of a single door, walks in, growing smaller as he passes the doorway, and the screen fades. |
void | scProxEnterShopCave (void) | Felix walks north into the small door in the east cliff of the lower village, metatile (35, 11), and enters the cave room where the shop is. |
void | scProxGiveThanksForBeacon (void) | After the ending, the party arrives from the Mars Lighthouse in the big north-west house, where Felix, Isaac and Kraden stand before Puelle and the elder. |
Sint32 | scInit (void) | Opens the room through the window transition, and in the debug room draws the cat 1.7 times its size. |
Sint32 | scPrepareMap (void) | Once Briggs is caught the pool has dried up: its colours take the dry ground's. |
void | scProxStartPlayingChase (Sint32 actorId, Sint32 x, Sint32 z, Sint32 quarry) | Puts a child at its place and starts its game of chase: quarry picks the child it runs after (scProxPlayChase). |
void | scProxMatchHousesPriority (void) | Each tick, draws the child hiding from the wind in the igloo in front of or behind things as Felix is. |
void | scProxMatchCaveHomesPriority (void) | Each tick, draws two of the basements' people in front of or behind things as Felix is. |
void | scLeaderSetSlideStopped (Sint32 stopped) | Stops the leader's slide on the ice where it is (nonzero), or lets it run. |
void | scProxInitRockSprite (EFFECT_SPR *sprite, Sint32 pivotX, Sint32 pivotY, Uint32 attributes, Sint32 tile) | The overlay's call to fdEffectSpriteInit: one rock's sprite, its size, pivot and attributes. |
void | scProxStartFallingRocks (void) | Unused: loads the falling rocks' tiles and 64 sprites and starts their event, as Magma Rock does. |
Variables
| Name | Description | |
|---|---|---|
extern const Sint32 * | FieldEffectDurationScripts [] | The field effects' three scripts by how long an effect lasts: short, medium and long. |
extern ACTOR_PLACE | ProxSouthGatePlacements [] | |
extern ACTOR_PLACE | ProxSouthGateFarewellPlacements [] | |
extern ACTOR_PLACE | ProxTownPlacements [] | |
extern ACTOR_PLACE | ProxNorthPlacements [] | |
extern ACTOR_PLACE | ProxNorthPlacementsOnceLit [] | |
extern ACTOR_PLACE | ProxHousesPlacements [] | |
extern ACTOR_PLACE | ProxHousesPlacementsOnceLit [] | |
extern ACTOR_PLACE | ProxCaveHomesPlacements [] | |
extern ACTOR_PLACE | ProxCaveHomesPlacementsOnceLit [] | |
extern ACTOR_PLACE | ProxSanctumPlacements [] | |
extern CUE | ProxCues [] | |
extern CUE | ProxSouthGateCues [] | |
extern CUE | ProxTownCues [] | |
extern CUE | ProxNorthCues [] | |
extern CUE | ProxHousesCues [] | |
extern CUE | ProxCaveHomesCues [] | |
extern CUE | ProxSanctumCues [] | |
extern Sint32 | ProxFirstChildRuns [] | |
extern Sint32 | ProxSecondChildRuns [] | |
extern Sint32 | ProxThirdChildRuns [] | |
extern Sint32 | ProxKradenStepsUpToPuelle [] | |
extern Sint32 | ProxIsaacStepsUpToPuelle [] | |
extern Sint32 | ProxStepBackFromPuelle [] | |
extern Sint32 | ProxIsaacStepsForward [] | |
extern Sint32 | ProxKradenStepsForward [] | |
extern Sint32 | ProxJennasFatherWalksSouth [] | |
extern Sint32 | ProxJennasMotherWalksSouth [] | |
extern Sint32 | ProxLeftFileWalksSouth [] | |
extern Sint32 | ProxRightFileWalksSouth [] | |
extern Sint32 | ProxGaretWalksSouth [] | |
extern Sint32 | ProxJennaWalksSouth [] | |
extern Sint32 | ProxIsaacWalksSouth [] | |
extern Sint32 | ProxLeaderWalksSouth [] | |
extern Sint32 | ProxKradenWalksSouth [] | |
extern Sint32 | ProxJennaRunsAhead [] | |
extern Sint32 | ProxGaretRunsAhead [] | The same script as ProxJennasMotherWalksSouth, under another name. |
extern Sint32 | LeaderWalkThroughDoorScript [] | The leader's actor script as he walks north through a doorway, growing smaller as he goes: in Madra's catacombs, the Lemurian ship's passage, and the doors of the Islets, Kibombo, Prox and the Shaman Village. |
extern Uint32 | FieldEffectShortScript [] | |
extern Uint32 | FieldEffectMediumScript [] | The flash about the Tomegathericon: held 45 ticks, then put away and freed. |
extern Sint16 | SlideOnIceSteerAngles [] | The heading fdActorSteerByPad turns toward, diagonals included; a second row of sixteen keeps only the four straight headings. |
extern Sint16 | SlideOnIceAnglesByKey [] | The heading a slide sets off in: a diagonal goes the way of its left or right key. |
volatile Sint16 | SlideOnIceStopped | |
extern Uint32 | FieldEffectLongScript [] | |
Uint32 | SceneExits [] | The room has no exits of its own. |
Description
Prox, Felix's home in the frozen north, where Puelle's clan lives in poverty in the shadow of the Mars Lighthouse. Six scenes share this overlay: the south gate, the lower village, the upper village to its north, the insides of the houses, the basements and cave rooms under them, and the Sanctum.
The party reaches Prox once the ship's cannon has broken the ice wall in the Northern Reaches, and a storm rages over the village until the lighthouse is lit. In the lower village the inn is the house on the left just inside the south entrance, the shop is in a cave room behind the small door in the east cliff, and the Sanctum is behind the wide wooden door in the west cliff. On the frozen river by the upper village's wooden bridge, the Venus Djinni Mold runs off and hides in a pile of snow at the river's head until Scoop digs him out. Beside the upper house two warriors are overheard saying they cannot find Felix's parents, and at the top of the west path Puelle, the elder and the clan argue over going to the lighthouse, then meet Felix. After the ending the storm is over: the clan thanks the party in the big north-west house, the children play chase outside the igloo, and the families say farewell at the south gate before the credits.
Macros in detail
FLAG_SAID_FAREWELL
#define FLAG_SAID_FAREWELL 0x9cc
The farewells at the south gate, before the credits.
Referenced by ProxSouthGateCues, scGetActorPlacements() and scProxSayFarewell().
Definition at line 201 of file prox.c.
FLAG_MOLD_HID_IN_SNOW
#define FLAG_MOLD_HID_IN_SNOW 0xa2d
Mold hid in the snow pile at the head of the frozen river.
Referenced by ProxNorthCues, scProxInitNorth() and scProxMoldHidesInSnow().
Definition at line 203 of file prox.c.
FLAG_DOOR_LEFT_OPEN
#define FLAG_DOOR_LEFT_OPEN FLAG_SCENE_TEMP(0x00)
The door of the upper house, which the warrior comes out of, stays open.
Referenced by scProxEnterDoor(), scProxInitNorth() and scProxSearchForParents().
Definition at line 205 of file prox.c.
FLAG_STORM_RAGING
#define FLAG_STORM_RAGING FLAG_SCENE_TEMP(0x01)
Set while the Mars Lighthouse is unlit: rain and storm over the village.
Referenced by scInit().
Definition at line 207 of file prox.c.
FLAG_DIG_SPOT_SCOOPED
#define FLAG_DIG_SPOT_SCOOPED FLAG_AREA_TEMP(0x00)
Referenced by ProxTownCues, scInit() and scProxScoopUpDarkMatter().
Definition at line 208 of file prox.c.
KRADEN_ANIMATION_WAVE
#define KRADEN_ANIMATION_WAVE 9
Kraden, Felix and Isaac waving goodbye to the player before the credits, each in his own sprite sheet's numbering.
Referenced by scProxSayFarewell().
Definition at line 257 of file prox.c.
FELIX_ANIMATION_WAVE
#define FELIX_ANIMATION_WAVE 33
Referenced by scProxSayFarewell().
Definition at line 258 of file prox.c.
ISAAC_ANIMATION_WAVE
#define ISAAC_ANIMATION_WAVE 40
Referenced by scProxSayFarewell().
Definition at line 259 of file prox.c.
EFFECT_SET_MODE
#define EFFECT_SET_MODE fdActorSelectAnimation
Referenced by EFFECT_SPAWN.
Definition at line 262 of file prox.c.
EFFECT_SET_SCRIPT
#define EFFECT_SET_SCRIPT fdActorStartScript
Referenced by EFFECT_SPAWN.
Definition at line 263 of file prox.c.
HEADING_SECTOR_MASK
#define HEADING_SECTOR_MASK (TRIG_TURN - FACING_STEP)
The sixteenth of a turn a heading points into, as a mask.
Referenced by scProxChaseTarget().
Definition at line 368 of file prox.c.
CHASE_GIVE_WAY_TICKS
#define CHASE_GIVE_WAY_TICKS 120
The ticks the leader must have pushed against a chasing child before it gives way.
Referenced by scProxChaseTarget().
Definition at line 371 of file prox.c.
CHASE_CHILD_RANGE
#define CHASE_CHILD_RANGE 24
How near, in pixels, a child chases another child or the leader, and how near the leader stops a child in its game (in every edition but the Japanese).
Referenced by scProxPlayChase().
Definition at line 374 of file prox.c.
CHASE_LEADER_RANGE
#define CHASE_LEADER_RANGE 32
Referenced by scProxPlayChase().
Definition at line 375 of file prox.c.
CHASE_STOP_RANGE
#define CHASE_STOP_RANGE 11
Referenced by scProxPlayChase().
Definition at line 376 of file prox.c.
CHASE_QUARRY
#define CHASE_QUARRY(actor) ((actor)->chaseQuarry)
The child each child at chase runs after, kept in its chaseQuarry.
Referenced by scProxPlayChase() and scProxStartPlayingChase().
Definition at line 379 of file prox.c.
Enumerations in detail
PROX_SOUTH_GATE_ACTOR_ID
enum PROX_SOUTH_GATE_ACTOR_ID
The people at the south gate for the farewell after the ending, numbering the
rows of ProxSouthGateFarewellPlacements; the party's rows go to their party
slots.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_KYLE | ACTOR_FIRST_PLACED | Isaac's father. "Don't worry, Son. I'm sure Dora's doing fine." |
ACTOR_JENNAS_FATHER | A man with brown hair in a green shirt, as in Vale. | |
ACTOR_JENNAS_MOTHER | A woman with pink hair in a white apron. | |
ACTOR_SOUTH_GATE_KRADEN | "Oh, were you crying, Jenna?" |
Definition at line 39 of file prox.c.
PROX_TOWN_ACTOR_ID
enum PROX_TOWN_ACTOR_ID
The people of the lower village, numbering the rows of ProxTownPlacements.
Each villager is named for what they talk of while the lighthouse is unlit.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_VILLAGER_WELCOMING_FELIX | ACTOR_FIRST_PLACED | "Felix! Welcome back to Prox! It looks like only Mars Lighthouse still needs..." |
ACTOR_VILLAGER_ON_AGATIO_AND_KARST | "Agatio and Karst left for Mars Lighthouse a little while ago..." | |
ACTOR_VILLAGER_ON_THE_ICE | "I'm glad you made it back safely... The ice is making it very difficult..." | |
ACTOR_VILLAGER_ON_THE_COLD | "We're used to the cold up here in Prox, but lately..." | |
ACTOR_VILLAGER_WATCHING_THE_SKIES | "I've been keeping a close eye on the northern skies..." | |
ACTOR_VILLAGER_ASKING_FOR_SATUROS | "Have you seen Saturos or Menardi?" | |
ACTOR_VILLAGER_SENSING_FELIXS_POWER | "Felix, you're back? And you learned how to use Psynergy?" | |
ACTOR_VILLAGER_ON_THE_WINDS | "Once the final lighthouse is lit, the winds should weaken." | |
ACTOR_PLAYING_CHILD | The three children of scProxTalkToPlayingChild, scProxTalkToChildWhoMissesRunning and scProxTalkToTrainingChild, who play chase outside the igloo once the beacon is lit. | |
ACTOR_CHILD_WHO_MISSES_RUNNING | ||
ACTOR_TRAINING_CHILD | ||
ACTOR_BOULDER | The round boulder by the wooden bridge, which Lift raises. | |
ACTOR_TOWN_CRATE | Unused: a crate drawn hidden on the roof of the north-east house; nothing but scProxInitTown names it. |
Definition at line 52 of file prox.c.
PROX_NORTH_ACTOR_ID
enum PROX_NORTH_ACTOR_ID
The people of the upper village, numbering the rows of ProxNorthPlacements
and ProxNorthPlacementsOnceLit; Isaac's row goes to his party slot.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_WARRIOR_SENT_FOR_PARENTS | ACTOR_FIRST_PLACED | The two warriors Puelle ordered to free Felix's parents, who stand beside the upper house. "Puelle ordered me to set your parents free." |
ACTOR_WARRIOR_SEARCHING_FOR_PARENTS | ||
ACTOR_PUELLE | ||
ACTOR_ELDER | "I'm speaking to you too, Puelle." | |
ACTOR_VILLAGER_GUARDING_THE_ROAD | The three men and three women of the clan who would go to the lighthouse in Puelle's stead. "Puelle, I can't let you go on your own..." | |
ACTOR_VILLAGER_WISHING_FOR_BETTER_ADEPTS | "If something were to happen to you, who would lead our village?" | |
ACTOR_VILLAGER_FEELING_HELPLESS | "I feel so helpless... Agatio has not returned..." | |
ACTOR_VILLAGER_WAITING_FOR_AGATIO | "All we can do now is wait for Agatio and his men to return..." | |
ACTOR_VILLAGER_WITH_WEAK_PSYNERGY | "Our Psynergy feels weak..." | |
ACTOR_VILLAGER_ON_THE_HOSTAGES | "Puelle promised that he would return our hostages to Vale." | |
ACTOR_MOLD_KRADEN | ||
ACTOR_MOLD_CRATE | ||
ACTOR_MOLD |
Definition at line 96 of file prox.c.
PROX_HOUSES_ACTOR_ID
enum PROX_HOUSES_ACTOR_ID
The people inside the houses and the igloo, numbering the rows of
ProxHousesPlacements and ProxHousesPlacementsOnceLit; Isaac's and Jenna's
rows go to their party slots.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_VILLAGER_ON_THE_RIFT_GETTING_WIDER | ACTOR_FIRST_PLACED | "The rift at Mars Lighthouse gets wider every day." |
ACTOR_VILLAGER_TOLD_OF_THE_RIFT | "Our chieftain told me that the rift is growing larger by the day..." | |
ACTOR_VILLAGER_WHO_SAW_THE_RIFT | "Not too long ago, I climbed the mountains to the north to look at the..." | |
ACTOR_VILLAGER_ON_THE_SEALING | "No one thought about our needs when they extinguished the great lighthouses..." | |
ACTOR_VILLAGER_FEARING_FOR_PROX | "If Mars Lighthouse's fires are not rekindled, Prox will be destroyed..." | |
ACTOR_OLD_MAN_ON_THE_EMISSARIES | "We sent emissaries to Vale to tell them that Weyard was dying." | |
ACTOR_VILLAGER_ON_VALES_ELDERS | "Vale's elders were stubborn..." | |
ACTOR_VILLAGER_ON_IGLOOS | The boy inside the igloo who asks Felix whether he likes igloos. | |
ACTOR_CHILD_HIDING_FROM_THE_WIND | "The wind is so cold and bitter that we decided to hide out inside..." | |
ACTOR_CHILD_SENT_OUTSIDE | "My parents told me that it would do me good to get some fresh air..." | |
ACTOR_VILLAGER_PITYING_THE_CHILDREN | "Those poor children." | |
ACTOR_VILLAGER_ON_PUELLES_WORRY | "Puelle, our chieftain, grew worried about Agatio and Karst." | |
ACTOR_VILLAGER_ON_THE_RESCUED | "The people Saturos rescued from the storm in Vale should be waiting..." | |
ACTOR_VILLAGER_POINTING_TO_PARENTS | "Don't forget, Felix, your mother and father are staying in the north end..." | |
ACTOR_INNKEEPER | The innkeeper behind the inn's counter. | |
ACTOR_VILLAGER_ON_FELIXS_MOTHER | "Your mother knows that you're strong and healthy..." | |
ACTOR_MERCURY_DJINNI | The Mercury Djinni in the upper house, which the game's text calls Water19. | |
ACTOR_HOUSES_PUELLE | ||
ACTOR_HOUSES_ELDER | ||
ACTOR_HOUSES_KRADEN |
Definition at line 130 of file prox.c.
PROX_CAVE_HOMES_ACTOR_ID
enum PROX_CAVE_HOMES_ACTOR_ID
The people of the basements and the shop's cave room, numbering the rows of
ProxCaveHomesPlacements and ProxCaveHomesPlacementsOnceLit.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_VILLAGER_ON_PROXS_PURPOSE | ACTOR_FIRST_PLACED | "Prox originally flourished because concerned Adepts lit the fires..." |
ACTOR_VILLAGER_REMEMBERING_YOUNG_FELIX | "When you left Prox, you were so young that you could barely lift a sword..." | |
ACTOR_SHOPKEEPER | The shopkeeper, the old woman behind the counter in the cave room reached by the small door in the east cliff. | |
ACTOR_OLD_WOMAN_ON_HER_COOKING | "Think of your old grandma's cooking every now and then..." |
Definition at line 177 of file prox.c.
PROX_SANCTUM_ACTOR_ID
enum PROX_SANCTUM_ACTOR_ID
The Sanctum: one old man, the healer behind its lectern.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_HEALER | ACTOR_FIRST_PLACED |
Definition at line 195 of file prox.c.
PROX_METATILE_BEHAVIOR
enum PROX_METATILE_BEHAVIOR
The metatiles the cue tables answer, other than doors and exits, whose metatiles carry the number of the exit they leave by.
| Enumerator | Value | Description |
|---|---|---|
METATILE_BEHAVIOR_MOLD_SNOW_PILE | 8 | Upper village: the metatile of the snow pile Mold hides in, kept at metatile (25, 2) and copied onto the pile at (25, 9) while Scoop is cast. |
METATILE_BEHAVIOR_BESIDE_MOLD | 9 | Upper village: the frozen river beside Mold, where he stands at metatile (25, 20). The river's upper layer keeps these metatiles 45 columns east, at (70, 20) to (70, 22). |
METATILE_BEHAVIOR_ICE | 10 | Upper village: the ice of the frozen river between the cliff and the wooden bridge, metatiles (22, 7) to (36, 21), and its upper layer's at (67, 11) to (73, 20). |
METATILE_BEHAVIOR_FAREWELL | 10 | South gate: metatiles (8, 9) and (9, 9), a few steps south of the way into the village. |
METATILE_BEHAVIOR_BESIDE_UPPER_HOUSE | 11 | Upper village: metatiles (36, 20) to (37, 22), east of the upper house's door. |
METATILE_BEHAVIOR_WEST_PATH | 12 | Upper village: metatiles (7, 16) to (9, 16), partway up the west path. |
METATILE_BEHAVIOR_BEFORE_PUELLE | 13 | Upper village: metatiles (7, 8) to (8, 10), at the top of the west path by Puelle. |
METATILE_BEHAVIOR_DARK_MATTER | 100 | Lower village: the hidden spot east of the igloo, metatile (40, 21). |
METATILE_BEHAVIOR_OVEN_OF_VEGETABLES | 200 | Houses and basements: the ovens Felix can look into, each with its own dish. |
METATILE_BEHAVIOR_OVEN_OF_CHEESE_STEW | ||
METATILE_BEHAVIOR_OVEN_OF_STRANGE_DISH | ||
METATILE_BEHAVIOR_OVEN_OF_STRANGE_MEAT |
Definition at line 212 of file prox.c.
anonymous enum
enum { CHASE_TRAINING_CHILD, CHASE_PLAYING_CHILD, CHASE_CHILD_WHO_MISSES_RUNNING }
| Enumerator | Value | Description |
|---|---|---|
CHASE_TRAINING_CHILD | ||
CHASE_PLAYING_CHILD | ||
CHASE_CHILD_WHO_MISSES_RUNNING |
Definition at line 381 of file prox.c.
anonymous enum
enum { SHOP_PROX }
Prox's shops, as mnShopRun numbers them.
| Enumerator | Value | Description |
|---|---|---|
SHOP_PROX | 31 |
Definition at line 577 of file prox.c.
anonymous enum
enum { INN_ID_PROX }
Prox's inn, as mnInnCheckIn numbers the inns.
| Enumerator | Value | Description |
|---|---|---|
INN_ID_PROX | 14 |
Definition at line 583 of file prox.c.
PROX_RAISED_CUE
enum PROX_RAISED_CUE
The raised cue scProxScoopUpMold leaves for scProxMoldJoins.
| Enumerator | Value | Description |
|---|---|---|
RAISED_MOLD_JOINS | 200 |
Definition at line 1335 of file prox.c.
Functions in detail
scProxMoldJoins
void scProxMoldJoins(void)
Mold, just dug out of the snow pile at the head of the frozen river, joins
the party: "Felix found the Venus Djinni Mold!" It runs as soon as
scProxScoopUpMold has set it off, while the lighthouse is still unlit.
References fdDjinnJoinParty().
Referenced by ProxNorthCues.
Definition at line 272 of file prox.c.
scProxMercuryDjinniJoins
void scProxMercuryDjinniJoins(void)
Felix talks to the Mercury Djinni in the upper house, the one Puelle's warrior comes out of, and it joins the party.
References fdDjinnJoinParty().
Referenced by ProxHousesCues.
Definition at lines 280 and 337 of file prox.c.
scProxInitTown
void scProxInitTown(void)
Sets up the lower village: after the ending, its three children play chase outside the igloo.
References fdActorGet(), fdActorSetScript(), fdScriptGetFlag(), ProxFirstChildRuns, ProxSecondChildRuns, ProxThirdChildRuns, scFieldActorSetSpriteColor(), scFieldActorSetSpritePriority(), scProxStartPlayingChase() and sySynch().
Referenced by scInit().
Definition at lines 330 and 2032 of file prox.c.
scProxInitNorth
void scProxInitNorth(void)
Sets up the upper village. While the lighthouse is unlit, the warrior from the upper house is there only once Felix has overheard the two warriors, the house's door stays open, and Puelle faces away once the clan has argued. Mold stays hidden in his snow pile once he has run into it.
References fdActorGet(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdScriptGetFlag(), scFieldActorSetSpriteColor(), scFieldActorSetSpritePriority() and sySynch().
Referenced by scInit().
Definition at lines 331 and 2061 of file prox.c.
scProxInitHouses
void scProxInitHouses(void)
Sets up the houses: on the arrival from the Mars Lighthouse after the ending, the clan's thanks in the big north-west house.
References fdEffectStartBlankOverlay(), fdScriptGetFlag(), MainRoutineStateWork, scProxGiveThanksForBeacon(), scProxMatchHousesPriority() and sySetTickEvent().
Referenced by scInit().
Definition at lines 332 and 2123 of file prox.c.
scProxInitCaveHomes
void scProxInitCaveHomes(void)
Sets up the basements: arriving from a house, Felix comes down its stairs.
References fdEffectStartBlankOverlay(), fdScriptGetFlag(), MainRoutineStateWork, scProxComeDownStairs(), scProxMatchCaveHomesPriority() and sySetTickEvent().
Referenced by scInit().
Definition at lines 333 and 2149 of file prox.c.
scProxComeDownStairs
void scProxComeDownStairs(Sint32 westOrSouth)
Felix comes down the stairs from a house into its basement: he appears on the
stairs, steps down and walks a few steps on. westOrSouth is set for the
stairs under the big north-west house and the inn.
References fdActorGet(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetDestinationOffset(), fdActorSetSpriteFlags(), fdScriptStart(), fdScriptStartScreenTransition(), MainRoutineStateWork, scFieldActorSetPosAndResetMotion(), scFieldActorWaitForMoveById(), scFieldScriptEndLastingPsynergy(), scProxEndScript(), Sint32 and sySynch().
Referenced by scProxInitCaveHomes().
Definition at lines 334 and 1552 of file prox.c.
scProxTalkToShopkeeper
void scProxTalkToShopkeeper(void)
Felix talks to the shopkeeper, the old woman behind the counter in the cave room behind the small door in the east cliff. From across the counter, facing north, she opens the shop; from anywhere else she marvels at the strong warrior he has become, or after the ending says his foster grandmother always knew he would return.
References fdScriptGetFlag(), fdScriptShowMessage(), fdScriptStart(), mnShopRun(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scLeaderIsFacingNorth(), scProxEndScript() and Sint32.
Referenced by ProxCaveHomesCues.
Definition at lines 338 and 620 of file prox.c.
scProxTalkToHealer
void scProxTalkToHealer(void)
Felix talks to the healer, the old man behind the lectern in the Sanctum behind the wide wooden door in the west cliff. From in front of the lectern, facing north, he offers the Sanctum's services; from anywhere else he speaks of Agatio and Karst going to the Mars Lighthouse, or after the ending fears for Weyard.
References fdScriptGetFlag(), fdScriptShowMessage(), fdScriptStart(), mnSanctumRun(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scLeaderIsFacingNorth(), scProxEndScript() and Sint32.
Referenced by ProxSanctumCues.
Definition at lines 339 and 648 of file prox.c.
scProxTalkToPlayingChild
void scProxTalkToPlayingChild(void)
After the ending, Felix stops one of the three children playing chase outside the igloo, the first boy. Spoken to, he turns and cries how much fun it is to play outside now it has stopped snowing; under Mind Read he is glad not to have to play in the igloo any more. Then he runs on.
References fdActorFaceActor(), fdActorGet(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scProxEndScript() and Sint32.
Referenced by ProxTownCues.
Definition at lines 340 and 675 of file prox.c.
scProxTalkToTrainingChild
void scProxTalkToTrainingChild(void)
After the ending, Felix stops the second boy playing chase outside the igloo. Spoken to, he turns and says he must train hard to be a great warrior like Felix; under Mind Read he thinks running in the snow is better exercise. Then he runs on.
References fdActorFaceActor(), fdActorGet(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scProxEndScript() and Sint32.
Referenced by ProxTownCues.
Definition at lines 341 and 742 of file prox.c.
scProxSearchForParents
void scProxSearchForParents(void)
Felix comes up to the upper house in the upper village, at metatiles (36, 20) to (37, 22) just east of its door, while the lighthouse is unlit. The door opens, a warrior comes out to the one waiting outside, and Felix overhears them: they cannot find his parents anywhere in the village, and Puelle will be upset, as he ordered them freed when Felix returned. The door stays open.
References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetPosAndFacing(), fdActorShowEmote(), fdActorWalkToAndWait(), fdCameraGetActor(), fdMapGridCopyMetatilesTo(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptShowMessage(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptWait(), scProxEndScript() and Sint32.
Referenced by ProxNorthCues.
Definition at lines 342 and 777 of file prox.c.
scProxDecideToGoToLighthouse
void scProxDecideToGoToLighthouse(void)
Felix walks partway up the west path in the upper village, metatiles (7, 16) to (9, 16), and the camera moves up to its top, where Puelle tells the clan they cannot wait for Agatio any longer and he will go to the Mars Lighthouse himself. The villagers beg to go in his stead, the elder forbids them all, and Puelle is left to wait for a miracle.
References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorShowEmote(), fdCameraWaitForArrival(), fdScriptSetFlag(), fdScriptShowMessage(), fdScriptStart(), scFieldActorJump(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptWait(), scProxEndScript() and Sint32.
Referenced by ProxNorthCues.
Definition at lines 343 and 867 of file prox.c.
scProxMeetPuelle
void scProxMeetPuelle(void)
Felix reaches the top of the west path in the upper village, metatiles (7, 8) to (8, 10), and walks up to Puelle and the elder before the clan. The elder knows him at once; Kraden and Isaac introduce themselves, Puelle names Isaac as the one Agatio said killed Saturos and Menardi, and Isaac and Kraden tell how it happened. Talk turns to Agatio and Karst, who have the Mars Star now, and to the lighthouse.
References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorGet(), fdActorPlaceOnActor(), fdActorRunRepeatedMotion(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetScript(), fdActorShowEmote(), fdActorWaitForAnimationChange(), fdActorWalkToAndWait(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, PerWork, ProxIsaacStepsUpToPuelle, ProxKradenStepsUpToPuelle, ProxStepBackFromPuelle, scFieldActorShowEmote(), scFieldActorWaitForMoveById(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptWait(), scProxEndScript(), Sint32 and sySynch().
Referenced by ProxNorthCues.
Definition at lines 344 and 990 of file prox.c.
scProxMoldHidesInSnow
void scProxMoldHidesInSnow(void)
Felix walks up to Mold, who stands on the frozen river just south of the wooden bridge in the upper village, and Mold bolts away north under the bridge and up the river. There is a thud, the ground shakes, a cry is heard, and Felix is left with "...". Mold has hidden in the pile of snow at the river's head, where Scoop will find him.
References fdActorFaceDirection(), fdActorGet(), fdActorShowEmote(), fdActorWalkToAndWait(), fdCameraGetActor(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatilesTo(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptStart(), MainRoutineStateWork, scFieldActorSetSpritePriority(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait() and scProxEndScript().
Referenced by ProxNorthCues.
Definition at lines 345 and 1281 of file prox.c.
scProxScoopUpMold
void scProxScoopUpMold(void)
Felix casts Scoop on the pile of snow at the head of the frozen river in the upper village, metatile (25, 9), and digs Mold out: the Djinni hops up and turns to him.
References fdActorFaceActor(), fdActorSetPosAndFacing(), fdScriptGetFlag(), fdScriptStart(), MainRoutineStateWork, scFieldActorJump(), scFieldScriptEndLastingPsynergy(), scProxEndScript() and sySynch().
Referenced by ProxNorthCues.
Definition at lines 346 and 1343 of file prox.c.
scProxStartScoop
void scProxStartScoop(void)
Nothing visible happens when Felix starts to cast Scoop facing a wall in the upper village. The game quietly turns the snow pile at the head of the frozen river, metatile (25, 9), from a wall into Mold's hiding place for the length of the cast, so that Scoop aimed at the pile can find him.
References fdMapGridCopyMetatileAttributes().
Referenced by ProxNorthCues.
Definition at lines 347 and 1366 of file prox.c.
scProxEndScoop
void scProxEndScoop(void)
Nothing visible happens when Scoop's cast ends in the upper village: the snow pile at the head of the frozen river, metatile (25, 9), is a wall again, as Felix found it.
References fdMapGridCopyMetatileAttributes().
Referenced by ProxNorthCues.
Definition at lines 348 and 1374 of file prox.c.
scProxEnterInn
void scProxEnterInn(void)
Felix walks north into the door of the inn, the house on the left just inside the south entrance of the lower village, metatile (12, 28).
References scProxEnterDoor().
Referenced by ProxTownCues.
Definition at lines 349 and 1460 of file prox.c.
scProxEnterSouthHouse
void scProxEnterSouthHouse(void)
Felix walks north into the door of the house east of the inn, metatile (20, 26).
References scProxEnterDoor().
Referenced by ProxTownCues.
Definition at lines 350 and 1467 of file prox.c.
scProxEnterWestHouse
void scProxEnterWestHouse(void)
Felix walks north into the door of the house north of the inn, on the west side of the lower village, metatile (11, 21).
References scProxEnterDoor().
Referenced by ProxTownCues.
Definition at lines 351 and 1474 of file prox.c.
scProxEnterNorthwestHouse
void scProxEnterNorthwestHouse(void)
Felix walks north into the door of the big house in the north-west of the lower village, metatile (16, 15).
References scProxEnterDoor().
Referenced by ProxTownCues.
Definition at lines 352 and 1481 of file prox.c.
scProxEnterEastHouse
void scProxEnterEastHouse(void)
Felix walks north into the door of the house in the east of the lower village, north of the igloo, metatile (35, 18).
References scProxEnterDoor().
Referenced by ProxTownCues.
Definition at lines 353 and 1488 of file prox.c.
scProxEnterSanctum
void scProxEnterSanctum(void)
Felix walks north into the wide wooden door in the west cliff of the lower village, metatiles (5, 13) and (6, 13), and enters the Sanctum.
References scProxEnterDoor().
Referenced by ProxTownCues.
Definition at lines 354 and 1496 of file prox.c.
scProxEnterUpperHouse
void scProxEnterUpperHouse(void)
Felix walks north into the door of the upper house in the upper village, metatile (32, 22), which stands open once the warrior has come out of it.
References scProxEnterDoor().
Referenced by ProxNorthCues.
Definition at lines 355 and 1510 of file prox.c.
scProxClimbStairs
void scProxClimbStairs(void)
Felix walks north onto the stairs in one of the three basements and climbs up into the house above it: the east house, the big north-west house, or the inn.
References fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldActorSetMoveTargetFX(), scFieldActorWaitForMove(), scFieldScriptSetExitRequest(), Sint32 and sySynch().
Referenced by ProxCaveHomesCues.
Definition at lines 356 and 1518 of file prox.c.
scProxSayFarewell
void scProxSayFarewell(void)
After the thanks in the big north-west house, Felix walks south through the south gate, metatiles (8, 9) and (9, 9), where everyone is waiting. Jenna asks what took him so long, the families and both parties say their farewells, Felix, Isaac and Kraden wave goodbye, and the picture dims and fades to black for the credits.
References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorPlaceOnActor(), fdActorRunScriptAndWait(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetScript(), fdActorShowEmote(), fdActorWalkToAndWait(), fdCameraWaitForArrival(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdScriptGetFlag(), fdScriptOpenMessage(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptShowMessage(), fdScriptStart(), fdTilesetAnimationPause(), MainRoutineStateWork, PerWork, ProxGaretRunsAhead, ProxGaretWalksSouth, ProxIsaacStepsForward, ProxIsaacWalksSouth, ProxJennaRunsAhead, ProxJennasFatherWalksSouth, ProxJennasMotherWalksSouth, ProxJennaWalksSouth, ProxKradenStepsForward, ProxKradenWalksSouth, ProxLeaderWalksSouth, ProxLeftFileWalksSouth, ProxRightFileWalksSouth, scFieldActorJump(), scFieldActorSetSpritePriority(), scFieldActorShowEmote(), scFieldActorWaitForScriptEndById(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), Sint32 and sySynch().
Referenced by ProxSouthGateCues.
Definition at lines 357 and 2170 of file prox.c.
scProxSmokeFromChimneys
void scProxSmokeFromChimneys(void)
After the ending, with the storm over, smoke rises from the chimneys of the lower village's houses and of the upper house.
References MainRoutineStateWork, scSmokeSpawn(), Sint32 and TickCount.
Referenced by scInit().
Definition at lines 358 and 1384 of file prox.c.
scProxEndScript
Sint32 scProxEndScript()
The overlay's call to fdScriptEnd.
Referenced by scProxAskAboutIgloos(), scProxComeDownStairs(), scProxDecideToGoToLighthouse(), scProxGiveThanksForBeacon(), scProxMeetPuelle(), scProxMoldHidesInSnow(), scProxScoopUpMold(), scProxSearchForParents(), scProxTalkToChildWhoMissesRunning(), scProxTalkToHealer(), scProxTalkToInnkeeper(), scProxTalkToPlayingChild(), scProxTalkToShopkeeper() and scProxTalkToTrainingChild().
Definition at line 360 of file prox.c.
scProxChaseTarget
Sint32 scProxChaseTarget(ACTOR *actor, ACTOR *target, Sint32 range, Sint32 force)
A child at chase stands still once its target is within range and ahead of
it (or always, with force), until the leader has pushed against it long
enough; otherwise it runs on. Returns 1 while it stands, and while it is
being talked to.
References fdActorSelectAnimation(), result, scPosDistance(), Sint32 and syAtan().
Referenced by scProxPlayChase().
Definition at line 392 of file prox.c.
scProxPlayChase
Sint32 scProxPlayChase(ACTOR *actor)
The children's game of chase after the ending: each runs at the child it chases, and in every edition but the Japanese stops when the leader comes up close.
References fdActorGet(), fdActorSelectAnimation(), MainRoutineStateWork, scPosDistance(), scProxChaseTarget() and Sint32.
Referenced by scProxStartPlayingChase().
Definition at line 442 of file prox.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 479 of file prox.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 484 of file prox.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 489 of file prox.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References fdScriptGetFlag(), MainRoutineStateWork, ProxCaveHomesPlacements, ProxCaveHomesPlacementsOnceLit, ProxHousesPlacements, ProxHousesPlacementsOnceLit, ProxNorthPlacements, ProxNorthPlacementsOnceLit, ProxSanctumPlacements, ProxSouthGateFarewellPlacements, ProxSouthGatePlacements and ProxTownPlacements.
Definition at line 494 of file prox.c.
scProxScoopUpDarkMatter
void scProxScoopUpDarkMatter(Sint32 mode)
Felix casts Scoop on the hidden spot just east of the igloo, past its fence among the snowy rocks, metatile (40, 21), and digs up Dark Matter: "Felix got some Dark Matter."
References fdScriptDigUpTreasure() and Sint32.
Referenced by ProxTownCues.
Definition at line 539 of file prox.c.
scGetCues
const CUE *scGetCues(void)
References MainRoutineStateWork, ProxCaveHomesCues, ProxCues, ProxHousesCues, ProxNorthCues, ProxSanctumCues, ProxSouthGateCues, ProxTownCues and Sint32.
Definition at line 544 of file prox.c.
scProxAskAboutIgloos
void scProxAskAboutIgloos(void)
The boy inside the igloo asks Felix whether he likes igloos. Either way, the boy says the children built it to have something to do in the cold.
References fdScriptAskYesNo(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scProxEndScript() and Sint32.
Referenced by ProxHousesCues.
Definition at line 565 of file prox.c.
scProxTalkToInnkeeper
void scProxTalkToInnkeeper(void)
Felix talks to the innkeeper behind the inn's counter. From across the counter, facing north, he is offered a room; from anywhere else he hears that his parents have gone away, worried about him, or after the ending how the earthquake shook the inn when the beacon was lit.
References fdScriptGetFlag(), fdScriptShowMessage(), fdScriptStart(), mnInnCheckIn(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scLeaderIsFacingNorth(), scProxEndScript() and Sint32.
Referenced by ProxHousesCues.
Definition at line 592 of file prox.c.
scProxTalkToChildWhoMissesRunning
void scProxTalkToChildWhoMissesRunning(void)
After the ending, Felix stops the girl playing chase outside the igloo. Spoken to, she turns and says how she missed running around outside; under Mind Read she thinks how unreal the blizzard was. Then she runs on.
References fdActorFaceActor(), fdActorGet(), fdScriptShowMessage(), fdScriptStart(), MainRoutineStateWork, scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scProxEndScript() and Sint32.
Referenced by ProxTownCues.
Definition at line 708 of file prox.c.
scProxEnterDoor
void scProxEnterDoor( Sint32 srcX, Sint32 srcY, Sint32 x, Sint32 y, Sint32 width, Sint32 height)
Felix walks into a door: it opens (the Sanctum's wide door with a thump) unless it was left open, he steps to the middle of a single door, walks in, growing smaller as he passes the doorway, and the screen fades.
The open door is drawn by copying its picture over the door's metatiles, from
srcX, srcY to x, y, width by height metatiles; the copies sit on
the map's upper layer, 45 columns east of the metatiles Felix walks on.
References fdActorGet(), fdActorSetScript(), fdMapGridCopyMetatilesTo(), fdScriptFinishScreenTransition(), fdScriptGetFlag(), fdScriptPlaySound(), fdScriptStart(), fdScriptWaitTransitionTicks(), LeaderWalkThroughDoorScript, MainRoutineStateWork, scFieldActorSetMoveTargetFX(), scFieldActorWaitForMove(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptWait(), Sint32 and sySynch().
Referenced by scProxEnterEastHouse(), scProxEnterInn(), scProxEnterNorthwestHouse(), scProxEnterSanctum(), scProxEnterShopCave(), scProxEnterSouthHouse(), scProxEnterUpperHouse() and scProxEnterWestHouse().
Definition at line 1416 of file prox.c.
scProxEnterShopCave
void scProxEnterShopCave(void)
Felix walks north into the small door in the east cliff of the lower village, metatile (35, 11), and enters the cave room where the shop is.
References scProxEnterDoor().
Referenced by ProxTownCues.
Definition at line 1503 of file prox.c.
scProxGiveThanksForBeacon
void scProxGiveThanksForBeacon(void)
After the ending, the party arrives from the Mars Lighthouse in the big north-west house, where Felix, Isaac and Kraden stand before Puelle and the elder. The elder thanks them for lighting the beacon; talk turns to the Golden Sun forming over Mt. Aleph, and to how the beacon's Psynergy saved Felix's parents. Then Jenna calls for Isaac to hurry up, Isaac asks Felix whether to tell her they are leaving now, a child runs out of the house, and Isaac and Kraden take their leave and rejoin Felix.
References fdActorFaceDirection(), fdActorFaceDirectionAndWait(), fdActorGet(), fdActorSetAnimation(), fdActorSetAnimationAndWait(), fdActorSetAttachedEffect(), fdActorSetDestination(), fdActorSetPosAndFacing(), fdActorShowEmote(), fdActorWalkToAndWait(), fdCameraGetActor(), fdCameraWaitForArrival(), fdScriptClearFlag(), fdScriptOpenMessage(), fdScriptSetFlag(), fdScriptShowMessage(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldActorJump(), scFieldActorShowEmote(), scFieldActorStop(), scFieldActorWaitForMoveById(), scFieldActorWatchAndSetScript(), scFieldScriptAskYesNoWithActorAnimation(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetMessageId(), scFieldScriptShowMessageThenWait(), scFieldScriptWait(), scProxEndScript(), Sint32 and sySynch().
Referenced by scProxInitHouses().
Definition at line 1600 of file prox.c.
scInit
Sint32 scInit(void)
References fdActorSetWideSprite(), fdEffectStartBlankOverlay(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdScriptGetFlag(), fdScriptSetFlag(), fdTilesetAnimationPause(), fdTilesetAnimationResume(), fdWeatherStartRain(), MainRoutineStateWork, scProxInitCaveHomes(), scProxInitHouses(), scProxInitNorth(), scProxInitTown(), scProxSmokeFromChimneys(), Sint32, sySetEvent() and sySynch().
Definition at line 1941 of file prox.c.
scPrepareMap
Sint32 scPrepareMap(void)
References Sint32.
Definition at line 2013 of file prox.c.
scProxStartPlayingChase
void scProxStartPlayingChase(Sint32 actorId, Sint32 x, Sint32 z, Sint32 quarry)
Puts a child at its place and starts its game of chase: quarry picks the
child it runs after (scProxPlayChase).
References fdActorGet(), scProxPlayChase() and Sint32.
Referenced by scProxInitTown().
Definition at line 2020 of file prox.c.
scProxMatchHousesPriority
void scProxMatchHousesPriority(void)
Each tick, draws the child hiding from the wind in the igloo in front of or behind things as Felix is.
References fdActorGet(), MainRoutineStateWork and scFieldActorSetSpritePriority().
Referenced by scProxInitHouses().
Definition at line 2112 of file prox.c.
scProxMatchCaveHomesPriority
void scProxMatchCaveHomesPriority(void)
Each tick, draws two of the basements' people in front of or behind things as Felix is.
References fdActorGet(), MainRoutineStateWork, scFieldActorSetSpritePriority() and Sint32.
Referenced by scProxInitCaveHomes().
Definition at line 2138 of file prox.c.
scLeaderSetSlideStopped
void scLeaderSetSlideStopped(Sint32 stopped)
Stops the leader's slide on the ice where it is (nonzero), or lets it run.
References Sint32 and SlideOnIceStopped.
Referenced by scMarsLighthouseEntranceStopSlideWhileRiding() and scMarsLighthouseTowersStopSlideWhileHit().
Definition at line 2774 of file prox.c.
scProxInitRockSprite
void scProxInitRockSprite(EFFECT_SPR *sprite, Sint32 pivotX, Sint32 pivotY, Uint32 attributes, Sint32 tile)
The overlay's call to fdEffectSpriteInit: one rock's sprite, its size, pivot
and attributes.
Referenced by scProxStartFallingRocks().
Definition at line 2787 of file prox.c.
scProxStartFallingRocks
void scProxStartFallingRocks(void)
Unused: loads the falling rocks' tiles and 64 sprites and starts their event, as Magma Rock does.
References mnVRAMLoad(), scFieldSetTickEvent(), scParticleUpdateFalling(), scProxInitRockSprite(), Sint32, syDecompressTaggedLZ(), syHeapSlotAllocate(), syResourceGetTableEntry() and syVRAMCacheFindFreeEntry().
Definition at line 2795 of file prox.c.
Variables in detail
FieldEffectDurationScripts
extern const Sint32 *FieldEffectDurationScripts[]
const Sint32 *FieldEffectDurationScripts[]
References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.
Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().
Definition at lines 261 and 2836 of file prox.c.
ProxSouthGatePlacements
extern ACTOR_PLACE ProxSouthGatePlacements[]
ACTOR_PLACE ProxSouthGatePlacements[]
Referenced by scGetActorPlacements().
Definition at lines 289 and 2989 of file prox.c.
ProxSouthGateFarewellPlacements
extern ACTOR_PLACE ProxSouthGateFarewellPlacements[]
ACTOR_PLACE ProxSouthGateFarewellPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 290 and 2993 of file prox.c.
ProxTownPlacements
extern ACTOR_PLACE ProxTownPlacements[]
ACTOR_PLACE ProxTownPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 291 and 3019 of file prox.c.
ProxNorthPlacements
extern ACTOR_PLACE ProxNorthPlacements[]
ACTOR_PLACE ProxNorthPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 292 and 3049 of file prox.c.
ProxNorthPlacementsOnceLit
extern ACTOR_PLACE ProxNorthPlacementsOnceLit[]
ACTOR_PLACE ProxNorthPlacementsOnceLit[]
Referenced by scGetActorPlacements().
Definition at lines 293 and 3081 of file prox.c.
ProxHousesPlacements
extern ACTOR_PLACE ProxHousesPlacements[]
ACTOR_PLACE ProxHousesPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 294 and 3113 of file prox.c.
ProxHousesPlacementsOnceLit
extern ACTOR_PLACE ProxHousesPlacementsOnceLit[]
ACTOR_PLACE ProxHousesPlacementsOnceLit[]
Referenced by scGetActorPlacements().
Definition at lines 295 and 3151 of file prox.c.
ProxCaveHomesPlacements
extern ACTOR_PLACE ProxCaveHomesPlacements[]
ACTOR_PLACE ProxCaveHomesPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 296 and 3199 of file prox.c.
ProxCaveHomesPlacementsOnceLit
extern ACTOR_PLACE ProxCaveHomesPlacementsOnceLit[]
ACTOR_PLACE ProxCaveHomesPlacementsOnceLit[]
Referenced by scGetActorPlacements().
Definition at lines 297 and 3209 of file prox.c.
ProxSanctumPlacements
extern ACTOR_PLACE ProxSanctumPlacements[]
ACTOR_PLACE ProxSanctumPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 298 and 3221 of file prox.c.
ProxCues
extern CUE ProxCues[]
CUE ProxCues[]
Referenced by scGetCues().
Definition at lines 299 and 3227 of file prox.c.
ProxSouthGateCues
extern CUE ProxSouthGateCues[]
CUE ProxSouthGateCues[]
References scProxSayFarewell().
Referenced by scGetCues().
Definition at lines 300 and 3231 of file prox.c.
ProxTownCues
extern CUE ProxTownCues[]
CUE ProxTownCues[]
References scProxEnterEastHouse(), scProxEnterInn(), scProxEnterNorthwestHouse(), scProxEnterSanctum(), scProxEnterShopCave(), scProxEnterSouthHouse(), scProxEnterWestHouse(), scProxScoopUpDarkMatter(), scProxTalkToChildWhoMissesRunning(), scProxTalkToPlayingChild() and scProxTalkToTrainingChild().
Referenced by scGetCues().
Definition at lines 301 and 3238 of file prox.c.
ProxNorthCues
extern CUE ProxNorthCues[]
CUE ProxNorthCues[]
References fdLeaderSlideOnIce(), scProxDecideToGoToLighthouse(), scProxEndScoop(), scProxEnterUpperHouse(), scProxMeetPuelle(), scProxMoldHidesInSnow(), scProxMoldJoins(), scProxScoopUpMold(), scProxSearchForParents() and scProxStartScoop().
Referenced by scGetCues().
Definition at lines 302 and 3332 of file prox.c.
ProxHousesCues
extern CUE ProxHousesCues[]
CUE ProxHousesCues[]
References scProxAskAboutIgloos(), scProxMercuryDjinniJoins() and scProxTalkToInnkeeper().
Referenced by scGetCues().
Definition at lines 303 and 3417 of file prox.c.
ProxCaveHomesCues
extern CUE ProxCaveHomesCues[]
CUE ProxCaveHomesCues[]
References scProxClimbStairs() and scProxTalkToShopkeeper().
Referenced by scGetCues().
Definition at lines 304 and 3551 of file prox.c.
ProxSanctumCues
extern CUE ProxSanctumCues[]
CUE ProxSanctumCues[]
References scProxTalkToHealer().
Referenced by scGetCues().
Definition at lines 305 and 3595 of file prox.c.
ProxFirstChildRuns
extern Sint32 ProxFirstChildRuns[]
Sint32 ProxFirstChildRuns[]
References Sint32.
Referenced by scProxInitTown().
Definition at lines 307 and 2842 of file prox.c.
ProxSecondChildRuns
extern Sint32 ProxSecondChildRuns[]
Sint32 ProxSecondChildRuns[]
References Sint32.
Referenced by scProxInitTown().
Definition at lines 308 and 2861 of file prox.c.
ProxThirdChildRuns
extern Sint32 ProxThirdChildRuns[]
Sint32 ProxThirdChildRuns[]
References Sint32.
Referenced by scProxInitTown().
Definition at lines 309 and 2880 of file prox.c.
ProxKradenStepsUpToPuelle
extern Sint32 ProxKradenStepsUpToPuelle[]
Sint32 ProxKradenStepsUpToPuelle[]
References Sint32.
Referenced by scProxMeetPuelle().
Definition at lines 310 and 2899 of file prox.c.
ProxIsaacStepsUpToPuelle
extern Sint32 ProxIsaacStepsUpToPuelle[]
Sint32 ProxIsaacStepsUpToPuelle[]
References Sint32.
Referenced by scProxMeetPuelle().
Definition at lines 311 and 2910 of file prox.c.
ProxStepBackFromPuelle
extern Sint32 ProxStepBackFromPuelle[]
Sint32 ProxStepBackFromPuelle[]
References Sint32.
Referenced by scProxMeetPuelle().
Definition at lines 312 and 2921 of file prox.c.
ProxIsaacStepsForward
extern Sint32 ProxIsaacStepsForward[]
Sint32 ProxIsaacStepsForward[]
References Sint32.
Referenced by scProxSayFarewell().
Definition at lines 313 and 3605 of file prox.c.
ProxKradenStepsForward
extern Sint32 ProxKradenStepsForward[]
Sint32 ProxKradenStepsForward[]
References Sint32.
Referenced by scProxSayFarewell().
Definition at lines 314 and 3616 of file prox.c.
ProxJennasFatherWalksSouth
extern Sint32 ProxJennasFatherWalksSouth[]
Sint32 ProxJennasFatherWalksSouth[]
References Sint32.
Referenced by scProxSayFarewell().
Definition at lines 315 and 3627 of file prox.c.
ProxJennasMotherWalksSouth
extern Sint32 ProxJennasMotherWalksSouth[]
Sint32 ProxJennasMotherWalksSouth[]
References Sint32.
Referenced by scProxSayFarewell().
Definition at lines 316 and 3638 of file prox.c.
ProxLeftFileWalksSouth
extern Sint32 ProxLeftFileWalksSouth[]
Sint32 ProxLeftFileWalksSouth[]
References Sint32.
Referenced by scProxSayFarewell().
Definition at lines 317 and 3649 of file prox.c.
ProxRightFileWalksSouth
extern Sint32 ProxRightFileWalksSouth[]
Sint32 ProxRightFileWalksSouth[]
References Sint32.
Referenced by scProxSayFarewell().
Definition at lines 318 and 3662 of file prox.c.
ProxGaretWalksSouth
extern Sint32 ProxGaretWalksSouth[]
Sint32 ProxGaretWalksSouth[]
References Sint32.
Referenced by scProxSayFarewell().
Definition at lines 319 and 3675 of file prox.c.
ProxJennaWalksSouth
extern Sint32 ProxJennaWalksSouth[]
Sint32 ProxJennaWalksSouth[]
References Sint32.
Referenced by scProxSayFarewell().
Definition at lines 320 and 3686 of file prox.c.
ProxIsaacWalksSouth
extern Sint32 ProxIsaacWalksSouth[]
Sint32 ProxIsaacWalksSouth[]
References Sint32.
Referenced by scProxSayFarewell().
Definition at lines 321 and 3695 of file prox.c.
ProxLeaderWalksSouth
extern Sint32 ProxLeaderWalksSouth[]
Sint32 ProxLeaderWalksSouth[]
References Sint32.
Referenced by scProxSayFarewell().
Definition at lines 322 and 3712 of file prox.c.
ProxKradenWalksSouth
extern Sint32 ProxKradenWalksSouth[]
Sint32 ProxKradenWalksSouth[]
References Sint32.
Referenced by scProxSayFarewell().
Definition at lines 323 and 3729 of file prox.c.
ProxJennaRunsAhead
extern Sint32 ProxJennaRunsAhead[]
Sint32 ProxJennaRunsAhead[]
References Sint32.
Referenced by scProxSayFarewell().
Definition at lines 324 and 3738 of file prox.c.
ProxGaretRunsAhead
extern Sint32 ProxGaretRunsAhead[]
Sint32 ProxGaretRunsAhead[]
The same script as ProxJennasMotherWalksSouth, under another name.
References Sint32.
Referenced by scProxSayFarewell().
Definition at lines 325 and 3750 of file prox.c.
SlideOnIceStopped
volatile Sint16 SlideOnIceStopped
Referenced by scLeaderSetSlideStopped() and scLeaderSlideOnIceFromEdge().
Definition at line 2769 of file prox.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 2934 of file prox.c.