Skip to Content
The Alchemy Project

Tret Tree Branch

Tret Tree's branches.

Tret Tree's branches (SceneIdTretTreeBranch): the outside of Tret, the holy tree of Kolima Forest, high up under open sky, with clouds drifting past above and the green of the forest far below (places/tret-tree-branch/map-0.png). Isaac climbs Tret from the inside (SceneIdTreeRooms, tree_rooms.c), where the story is told; out here there is no story script, and nothing tests a story flag.

Arched doors in Tret's trunk lead out onto the branches, two from each of the
second to fifth floors. Walking into one goes back inside:
- the second floor's west door (metatile (20, 26)) opens onto a branch
that  leads nowhere, and its east door (metatile (26, 27)) onto the branch
below  the southeast vine; - the third floor's south door (metatile (23,
22)) opens onto a branch that  runs west, and its east door (metatile (26,
20)) onto the branch above the  southeast vine; - the fourth floor's south
door (metatile (23, 16)) opens onto the branch below  the northeast vine,
and its west door (metatile (20, 15)) onto the branch  below the west
vine; - the fifth floor's west door (metatile (20, 9)) opens onto the
branch above the  west vine, and its east door (metatile (26, 8)) onto the
branch above the  northeast vine.

So the way up Tret goes out of the second floor's east door, up the southeast vine and in at the third floor's east door; then out of the fourth floor's south door, east and up the northeast vine to the fifth floor's east door, where the Nut's chest is; and out of the fourth floor's west door, along the branch and up the west vine to the fifth floor's west door, which leads to the leaf that drops Isaac to Tret.

Breeze, a Jupiter Djinni, waits at the east end of the highest branch, above the fifth floor's east door, until it has joined the party.

The three vines climb like any vine: Isaac stands on the vine and holds Up or Down. Nothing visible happens at the vines' tops, but the game has work to do there. The stretch of upper branch at each vine's top is stored twice in the map: once as the branch Isaac walks on, and once as a hidden copy, 5 or 6 metatiles further south and as much higher, so that both are drawn on the same pixels. Only the hidden copy joins the vine. One metatile beside each vine moves Isaac onto the copy, and one on the copy moves him back (scTretTreeBranchJoinWestVine and the others).

Leaves hang in front of the branches, so the scene keeps an oval round Isaac in which they are see-through, from when he steps out until he goes back in. Reveal's own ripple takes its place while Reveal lasts, and the scene puts it back afterwards.

The clouds above the forest drift slowly right while the forest below moves only with the map (scTretTreeBranchUpdateBg3ScrollSplit).

The overlay also keeps three unused hooks and a link-cable input exchange no table reaches.

The whole of Tret Tree Branch as the game draws it
The whole of Tret Tree Branch as the game draws it

Events

scTretTreeBranchTalkToBreeze

Talking to Breeze, the Jupiter Djinni at the east end of Tret's highest branch, makes it hop and starts the battle with it.

Talking to Breeze, the Jupiter Djinni at the east end of Tret's highest branch, makes it hop and starts the battle with it, as it plays
Talking to Breeze, the Jupiter Djinni at the east end of Tret's highest branch, makes it hop and starts the…

In tret_tree_branch.c, line 124

scTretTreeBranchJoinWestVine

On the upper branch beside the west vine's top (metatile), moves Isaac onto the hidden copy that joins the vine, so that Down climbs him down it.

On the upper branch beside the west vine's top (metatile (7, 12)), moves Isaac onto the hidden copy that joins the vine, so that Down climbs him down it.

In tret_tree_branch.c, line 191

scTretTreeBranchLeaveWestVine

Stepping east off the west vine's top (metatile) moves Isaac back onto the drawn branch, the one to the fifth floor's west door.

Stepping east off the west vine's top (metatile (8, 17)) moves Isaac back onto the drawn branch, the one to the fifth floor's west door.

In tret_tree_branch.c, line 198

scTretTreeBranchJoinNortheastVine

On the northeast vine's top (metatile), on the branch to the fifth floor's east door, moves Isaac onto the hidden copy that joins the vine.

On the northeast vine's top (metatile (37, 11)), on the branch to the fifth floor's east door, moves Isaac onto the hidden copy that joins the vine.

In tret_tree_branch.c, line 205

scTretTreeBranchLeaveNortheastVine

Stepping west off the northeast vine's top (metatile) moves Isaac back onto the drawn branch, the one to the fifth floor's east door and Breeze.

Stepping west off the northeast vine's top (metatile (36, 16)) moves Isaac back onto the drawn branch, the one to the fifth floor's east door and Breeze.

In tret_tree_branch.c, line 213

scTretTreeBranchJoinSoutheastVine

At the southeast vine's top (metatile), on the branch from the third floor's east door, moves Isaac onto the hidden copy that joins the vine, down which he climbs to the second floor's east door.

At the southeast vine's top (metatile (41, 20)), on the branch from the third floor's east door, moves Isaac onto the hidden copy that joins the vine, down which he climbs to the second floor's east door.

In tret_tree_branch.c, line 221

scTretTreeBranchLeaveSoutheastVine

Stepping west off the southeast vine's top (metatile) moves Isaac back onto the drawn branch to the third floor's east door.

Stepping west off the southeast vine's top (metatile (40, 26)) moves Isaac back onto the drawn branch to the third floor's east door.

In tret_tree_branch.c, line 228

scTretTreeBranchEnterTretTreeRooms

Isaac walks into one of the arched doors in Tret's trunk, such as the second floor's west door at the end of the lowest branch (metatile), and goes back inside Tret Tree to the floor that door belongs to.

Isaac walks into one of the arched doors in Tret's trunk, such as the second floor's west door at the end of the lowest branch (metatile), and goes back inside Tret Tree to the floor that door belongs to, as it plays
Isaac walks into one of the arched doors in Tret's trunk, such as the second floor's west door at the end of…

Isaac walks into one of the arched doors in Tret's trunk, such as the second floor's west door at the end of the lowest branch (metatile (20, 26)), and goes back inside Tret Tree to the floor that door belongs to. A moment's push against the doorway is enough (STEP_CUE_FLAG_QUICK). The exit sound plays, and the door's metatile carries its own exit number, which the step cue hands on as the exit to take.

In tret_tree_branch.c, line 240

scTretTreeBranchRevealFades

When Reveal wears off, the leaves round Isaac turn see-through again.

Reveal drew its own rippling oval in place of the scene's, so the scene's oval and the leaves' blend are set back as scInit set them.

In tret_tree_branch.c, line 269

scTretTreeBranchUnusedHookFirst (unused)

An empty function nothing refers to, the first of two here.

In tret_tree_branch.c, line 294

scTretTreeBranchUnusedHookSecond (unused)

An empty function nothing refers to, the second of two here.

In tret_tree_branch.c, line 299

Its code is in tret_tree_branch.c.