kolima_forest_clearing.c
Kolima Forest's clearing, between the bridge and the river.
games/tbs/src/scene/kolima_forest_clearing.c on GitHub
Kolima Forest's clearing, between the bridge and the river. Three logs lie in the grass for the party to push, and a Nut circles out of reach until Catch pulls it in.
Functions
KolimaForestClearing_GetEntrances
const struct SceneEntrance *KolimaForestClearing_GetEntrances(void)
Where the party enters from the bridge and the river.
KolimaForestClearing_GetExits
const u32 *KolimaForestClearing_GetExits(void)
The paths to the river and back to the bridge.
KolimaForestClearing_GetPlacements
const struct ScenePlacement *KolimaForestClearing_GetPlacements(void)
The three logs and the Nut.
KolimaForestClearing_PushLog
static void KolimaForestClearing_PushLog(void)
Walking into a log: it rolls ahead until something stops it.
Used by gKolimaForestClearing_Events.
KolimaForestClearing_CatchNut
static void KolimaForestClearing_CatchNut(void)
Catch on the circling Nut: it vanishes and the party finds a Nut.
Used by gKolimaForestClearing_Events.
KolimaForestClearing_GetEvents
const struct SceneEvent *KolimaForestClearing_GetEvents(void)
The logs, the Nut and the two paths.
KolimaForestClearing_Initialize
s32 KolimaForestClearing_Initialize(void)
On entry the Nut circles until it is caught, the logs mark the cells they cover, and the forest keeps its cursed colours until the curse is lifted.
Also, functions without a comment: KolimaForestClearing_GetRegions.
Macros
DIRECTION_STEP
#define DIRECTION_STEP(dx, dz) (((dx) << 16) | ((dz) & 0xffff))
Pixel step by direction: X in the upper halfword, Z in the lower.
Used by gBilibinCave_PushSteps, gBilibin_FacingCellSteps, gColossoRiver_DirectionSteps, gColossoWall_DirectionSteps, gStagedActor_DirectionSteps.
Globals
gKolimaForestClearing_Exits
u32 gKolimaForestClearing_Exits[]
Exit 1 to the river (scene 42), exit 2 to the bridge (scene 40).
Used by KolimaForestClearing_GetExits.
gKolimaForestClearing_Placements
struct ScenePlacement gKolimaForestClearing_Placements[]
Until the third patch the Nut's placement tested flag 0xfd0, not the flag catching it sets.
Used by KolimaForestClearing_GetPlacements.
Also, globals without a comment: gStagedActor_DirectionSteps, gStagedActor_FootprintKinds, gStagedActor_FootprintBounds, gKolimaForestClearing_Entrances, gKolimaForestClearing_Events, gKolimaPalette_First, gKolimaPalette_Second.