A branch of Tret, the great tree, where Breeze, a Jupiter Djinni, waits; touch triggers move the leader and the camera along the branch. More...
Go to the source code of this file.
Enumerations | |
| enum | { ACTOR_BREEZE = ACTOR_FIRST_PLACED , SPRITE_JUPITER_DJINNI = 0x5d } |
| Breeze, the Jupiter Djinni on the branch: Djinni 61 is the name message "Breeze", and its placement is gone once its flag (FLAG_DJINNI_0 + 61) is set. More... | |
Functions | |
| static void | TretTreeBranch_StartBg3Split (void) |
| Starts the scanline-dependent BG3 scroll callbacks. | |
| static void | Event_TalkToBreeze (void) |
| Talking to Breeze: the Djinni hops and its battle starts. | |
| const struct SceneEntrance * | TretTreeBranch_GetEntrances (void) |
| const struct SceneRegion * | TretTreeBranch_GetRegions (void) |
| const u32 * | TretTreeBranch_GetExits (void) |
| const struct ScenePlacement * | TretTreeBranch_GetPlacements (void) |
| static void | TretTreeBranch_ShiftLeaderAndCameraByCells (s32 cellOffsetX, s32 cellOffsetZ) |
| Moves the leader and camera by signed 16-pixel cell offsets, placing each at the terrain height of its destination. | |
| static void | Event_ShiftSouthFiveCells (void) |
| Touch trigger 10: the leader and camera move 80 pixels south at once. | |
| static void | Event_ShiftNorthFiveCells (void) |
| Touch trigger 11: the leader and camera move 80 pixels north at once. | |
| static void | Event_ShiftSouthFiveCellsSecond (void) |
| Touch trigger 12: the same 80-pixel move south as trigger 10. | |
| static void | Event_ShiftNorthFiveCellsSecond (void) |
| Touch trigger 13: the same 80-pixel move north as trigger 11. | |
| static void | Event_ShiftSouthSixCells (void) |
| Touch trigger 14: the leader and camera move 96 pixels south at once. | |
| static void | Event_ShiftNorthSixCells (void) |
| Touch trigger 15: the leader and camera move 96 pixels north at once. | |
| static void | Event_TakeTouchedExit (void) |
| Walking into one of exits 1 to 8: the exit sound plays and the party leaves by the exit touched. | |
| static void | TretTreeBranch_SetRevealWindow (struct DisplayTransitionState *state) |
| Selects the same mask and window parameters for Reveal and scene entry. | |
| static void | Event_CastReveal (void) |
| Casting Reveal on the branch (its phase 2): the window transition and BG1's blend over the rest of the screen are set again, as when the scene opened. | |
| const struct SceneEvent * | TretTreeBranch_GetEvents (void) |
| Returns the touch, talk, exit and Reveal events for this branch. | |
| static void UNUSED | TretTreeBranch_RunEmptyEvent (void) |
| Unused event hook: begins and immediately ends an event. | |
| static void UNUSED | TretTreeBranch_UnusedHookFirst (void) |
| static void UNUSED | TretTreeBranch_UnusedHookSecond (void) |
| static void UNUSED | TretTreeBranch_ExchangeInputPacket (void) |
| Unused exchange callback: puts held/repeated keys in the transfer header. | |
| s32 | TretTreeBranch_Initialize (void) |
| Initializes the backdrop transition and installs BG3's scanline scroll split. | |
| static void | TretTreeBranch_ApplyBg3ScrollAtScanline (void) |
| HBlank selects BG3's horizontal offset for the next scanline. | |
| static void | TretTreeBranch_UpdateBg3ScrollSplit (void) |
| Updates the split from the first map layer's pixel position. | |
Variables | |
| static u16 | sTransferHeader [16] |
| static u8 | sTransferData [96] |
| static s32 | sSplitLine |
| static u16 | sHofsAtOrAfterSplit |
| static u16 | sHofsBeforeSplit |
| struct SceneEntrance | gTretTreeBranch_Entrances [] |
| u32 | gTretTreeBranch_Exits [] |
| struct ScenePlacement | gTretTreeBranch_Placements [] |
| struct SceneEvent | gTretTreeBranch_Events [] |
| u16 | gTretTreeBranch_CellSteps [] |
A branch of Tret, the great tree, where Breeze, a Jupiter Djinni, waits; touch triggers move the leader and the camera along the branch.
Definition in file tret_tree_branch.c.
| anonymous enum |
Breeze, the Jupiter Djinni on the branch: Djinni 61 is the name message "Breeze", and its placement is gone once its flag (FLAG_DJINNI_0 + 61) is set.
| Enumerator | |
|---|---|
| ACTOR_BREEZE | |
| SPRITE_JUPITER_DJINNI | |
Definition at line 42 of file tret_tree_branch.c.
|
static |
Starts the scanline-dependent BG3 scroll callbacks.
Runs the BG3 scroll selection at every HBlank, updating the split each frame.
Definition at line 250 of file tret_tree_branch.c.
Referenced by TretTreeBranch_Initialize(), and TretTreeBranch_StartBg3Split().
|
static |
Talking to Breeze: the Djinni hops and its battle starts.
Definition at line 54 of file tret_tree_branch.c.
Referenced by Event_TalkToBreeze().
| const struct SceneEntrance * TretTreeBranch_GetEntrances | ( | void | ) |
Definition at line 58 of file tret_tree_branch.c.
Referenced by TretTreeBranch_GetEntrances().
| const struct SceneRegion * TretTreeBranch_GetRegions | ( | void | ) |
Definition at line 62 of file tret_tree_branch.c.
Referenced by TretTreeBranch_GetRegions().
| const u32 * TretTreeBranch_GetExits | ( | void | ) |
Definition at line 64 of file tret_tree_branch.c.
Referenced by TretTreeBranch_GetExits().
| const struct ScenePlacement * TretTreeBranch_GetPlacements | ( | void | ) |
Definition at line 66 of file tret_tree_branch.c.
Referenced by TretTreeBranch_GetPlacements().
Moves the leader and camera by signed 16-pixel cell offsets, placing each at the terrain height of its destination.
Definition at line 72 of file tret_tree_branch.c.
Referenced by Event_ShiftNorthFiveCells(), Event_ShiftNorthFiveCellsSecond(), Event_ShiftNorthSixCells(), Event_ShiftSouthFiveCells(), Event_ShiftSouthFiveCellsSecond(), Event_ShiftSouthSixCells(), and TretTreeBranch_ShiftLeaderAndCameraByCells().
|
static |
Touch trigger 10: the leader and camera move 80 pixels south at once.
Definition at line 108 of file tret_tree_branch.c.
Referenced by Event_ShiftSouthFiveCells().
|
static |
Touch trigger 11: the leader and camera move 80 pixels north at once.
Definition at line 113 of file tret_tree_branch.c.
Referenced by Event_ShiftNorthFiveCells().
|
static |
Touch trigger 12: the same 80-pixel move south as trigger 10.
Definition at line 118 of file tret_tree_branch.c.
Referenced by Event_ShiftSouthFiveCellsSecond().
|
static |
Touch trigger 13: the same 80-pixel move north as trigger 11.
Definition at line 123 of file tret_tree_branch.c.
Referenced by Event_ShiftNorthFiveCellsSecond().
|
static |
Touch trigger 14: the leader and camera move 96 pixels south at once.
Definition at line 128 of file tret_tree_branch.c.
Referenced by Event_ShiftSouthSixCells().
|
static |
Touch trigger 15: the leader and camera move 96 pixels north at once.
Definition at line 133 of file tret_tree_branch.c.
Referenced by Event_ShiftNorthSixCells().
|
static |
Walking into one of exits 1 to 8: the exit sound plays and the party leaves by the exit touched.
Definition at line 139 of file tret_tree_branch.c.
Referenced by Event_TakeTouchedExit().
|
inlinestatic |
Selects the same mask and window parameters for Reveal and scene entry.
Definition at line 150 of file tret_tree_branch.c.
Referenced by Event_CastReveal(), TretTreeBranch_Initialize(), and TretTreeBranch_SetRevealWindow().
|
static |
Casting Reveal on the branch (its phase 2): the window transition and BG1's blend over the rest of the screen are set again, as when the scene opened.
Definition at line 158 of file tret_tree_branch.c.
Referenced by Event_CastReveal(), and Event_CastReveal().
| const struct SceneEvent * TretTreeBranch_GetEvents | ( | void | ) |
Returns the touch, talk, exit and Reveal events for this branch.
Definition at line 171 of file tret_tree_branch.c.
Referenced by TretTreeBranch_GetEvents().
|
static |
Unused event hook: begins and immediately ends an event.
Definition at line 176 of file tret_tree_branch.c.
Referenced by TretTreeBranch_RunEmptyEvent().
|
static |
Definition at line 181 of file tret_tree_branch.c.
Referenced by TretTreeBranch_UnusedHookFirst().
|
static |
Definition at line 183 of file tret_tree_branch.c.
Referenced by TretTreeBranch_UnusedHookSecond().
|
static |
Unused exchange callback: puts held/repeated keys in the transfer header.
Definition at line 186 of file tret_tree_branch.c.
Referenced by TretTreeBranch_ExchangeInputPacket().
| s32 TretTreeBranch_Initialize | ( | void | ) |
Initializes the backdrop transition and installs BG3's scanline scroll split.
Returns 0 for the overlay initialization entry point.
Definition at line 196 of file tret_tree_branch.c.
Referenced by TretTreeBranch_Initialize().
|
static |
HBlank selects BG3's horizontal offset for the next scanline.
Definition at line 223 of file tret_tree_branch.c.
Referenced by TretTreeBranch_ApplyBg3ScrollAtScanline(), and TretTreeBranch_StartBg3Split().
|
static |
Updates the split from the first map layer's pixel position.
Before the split, scroll subtracts one pixel for every four elapsed frames.
Definition at line 238 of file tret_tree_branch.c.
Referenced by TretTreeBranch_StartBg3Split(), and TretTreeBranch_UpdateBg3ScrollSplit().
|
static |
Definition at line 47 of file tret_tree_branch.c.
Referenced by TretTreeBranch_ExchangeInputPacket().
|
static |
Definition at line 48 of file tret_tree_branch.c.
Referenced by TretTreeBranch_ExchangeInputPacket().
|
static |
Definition at line 49 of file tret_tree_branch.c.
Referenced by TretTreeBranch_ApplyBg3ScrollAtScanline(), and TretTreeBranch_UpdateBg3ScrollSplit().
|
static |
Definition at line 50 of file tret_tree_branch.c.
Referenced by TretTreeBranch_ApplyBg3ScrollAtScanline(), and TretTreeBranch_UpdateBg3ScrollSplit().
|
static |
Definition at line 51 of file tret_tree_branch.c.
Referenced by TretTreeBranch_ApplyBg3ScrollAtScanline(), and TretTreeBranch_UpdateBg3ScrollSplit().
| struct SceneEntrance gTretTreeBranch_Entrances[] |
Definition at line 256 of file tret_tree_branch.c.
Referenced by TretTreeBranch_GetEntrances().
| u32 gTretTreeBranch_Exits[] |
Definition at line 269 of file tret_tree_branch.c.
Referenced by TretTreeBranch_GetExits().
| struct ScenePlacement gTretTreeBranch_Placements[] |
Definition at line 277 of file tret_tree_branch.c.
Referenced by TretTreeBranch_GetPlacements().
| struct SceneEvent gTretTreeBranch_Events[] |
Definition at line 284 of file tret_tree_branch.c.
Referenced by TretTreeBranch_GetEvents().
| u16 gTretTreeBranch_CellSteps[] |
Definition at line 310 of file tret_tree_branch.c.