Skip to Content
The Alchemy Project

src/scene/treasure_isle.c

Treasure Isle, the island cave in the north-east corner of the world, its five rooms one overlay. More…

Structures

NameDescription
structPALETTEOne palette's sixteen colours.

Macros

NameDescription
#defineEFFECT_SET_MODE fdActorSelectAnimation
#defineEFFECT_SET_SCRIPT fdActorStartScript
#defineEFFECT_SPRITE_PRIORITY
#defineFLAG_TREASURE_ISLE_ENTRANCE_PILLAR_MOVED (n) (FLAG_AREA_TEMP(0x00) + (n))Set as Move pushes the entrance room's pillar n aside from its doorway: 0 the middle doorway's, 1 the east doorway's, 2 the chests' room's.
#defineFLAG_TREASURE_ISLE_CHESTS_ROCK_RISEN (n) (FLAG_AREA_TEMP(0x03) + (n))Set as spiky rock n (0 to 4) of the chests' room rises, cleared as Grind breaks it (TreasureIsleChestsSpikyRocks).
#defineFLAG_TREASURE_ISLE_CHESTS_PILLAR_MOVED FLAG_AREA_TEMP(0x08)Set as Move pushes the chests' room's stone pillar to its place.
#defineFLAG_TREASURE_ISLE_SPIKY_ROCKS_PILLAR_MOVED FLAG_AREA_TEMP(0x09)Set as Move pushes the spiky rocks' room's stone pillar to its place.
#defineFLAG_TREASURE_ISLE_SPIKY_ROCKS_ROCK_RISEN (n)Set as spiky rock n (0 to 2) of the spiky rocks' room rises, cleared as Grind breaks it (TreasureIsleSpikyRocksRoomRocks).
#defineFLAG_TREASURE_ISLE_GALE_ROOM_PILLAR_MOVED FLAG_AREA_TEMP(0x0d)Set as Move pushes the stone pillar of Gale's room to its place.
#defineFLAG_TREASURE_ISLE_BOULDER_LIFTED (n) (FLAG_SCENE_TEMP(0x00) + (n))Set as Lift raises boulder n (0 to 7) of Gale's room; while it is clear the boulder stands and the party can jump onto it.
#defineFLAG_STAR_MAGICIAN_BEATEN 0x9bbSet once the Star Magician, the guardian of water, has been beaten; it is gone.
#defineGALE_TALK_CUEGale answers from any side in the Japanese edition; from the international editions on, only while the leader faces east.
#defineMIDDLE_DOORWAY_PILLAR_MOVED_X 264Where Move leaves each stone pillar, in pixels: scInit puts a pillar whose flag is set back there.
#defineMIDDLE_DOORWAY_PILLAR_MOVED_Z 440
#defineEAST_DOORWAY_PILLAR_MOVED_X 328
#defineEAST_DOORWAY_PILLAR_MOVED_Z 440
#defineCHESTS_DOORWAY_PILLAR_MOVED_X 440
#defineCHESTS_DOORWAY_PILLAR_MOVED_Z 344
#defineCHESTS_PILLAR_MOVED_X 264
#defineCHESTS_PILLAR_MOVED_Z 184
#defineSPIKY_ROCKS_PILLAR_MOVED_X 664
#defineSPIKY_ROCKS_PILLAR_MOVED_Z 248
#defineGALE_ROOM_PILLAR_MOVED_X 696
#defineGALE_ROOM_PILLAR_MOVED_Z 600
#defineCHESTS_SECOND_PILLAR_MOVED_X 680The place of the chests' room's second pillar that raises the last spiky rock.
#defineCHESTS_SECOND_PILLAR_MOVED_Z 664
#defineCHESTS_FIRST_ROCK_METATILE 40The metatiles Grind breaks each spiky rock from, the chests' room's from CHESTS_FIRST_ROCK_METATILE and the spiky rocks' room's from SPIKY_ROCKS_FIRST_ROCK_METATILE, in the order of their rooms' lists.
#defineSPIKY_ROCKS_FIRST_ROCK_METATILE 50
#defineDRAW_SPIKY_ROCK (metatiles, index, picture)Draws one of a listed spiky rock's pictures over its metatile, on the map's upper layer, which the map keeps 64 metatiles east of the ground: from a metatile west of the rock and two north.
#defineWATER_PALETTE_A 3The two background palettes of water whose colours cycle, and the four colours of each that cycle.
#defineWATER_PALETTE_B 10
#defineWATER_FIRST_CYCLING_COLOR 2
#defineWATER_CYCLING_COLORS 4
#defineRAISE_SPIKY_ROCK_UNLESS_RISEN (rocks, index, risenFlag, count)One spiky rock of a red button's list: unless it stands already, it rises, the button's script starting with the first that does; count counts the rocks risen.
#defineDEFINE_LIFT_BOULDER (name, n)Lift on one of Gale's room's boulders raises it into the air out of the way for good: its sprite is drawn at priority 1 from then on, no longer by its place on the map, and its flag is set.

Enumerations

NameDescription
enumanonymous enum { ACTOR_MIDDLE_DOORWAY_PILLAR, ACTOR_EAST_DOORWAY_PILLAR, ACTO … }The entrance room's three stone pillars (TreasureIsleEntrancePlacements), placed in the doorways they block and always found pushed aside beside them: the hall's middle and east doorways, and the one at the top of the east passage into the chests' room.
enumanonymous enum { ACTOR_TIGHTROPE_POST_A, ACTOR_TIGHTROPE_POST_B, ACTOR_STONE_ … }The chests' and the spiky rocks' rooms' tightrope posts and the stone pillar Move pushes; the chests' room has a second pillar.
enumTREASURE_ISLE_GALE_ROOM_ACTOR_ID { ACTOR_GALE_ROOM_PILLAR, ACTOR_FIRST_BOULDER, ACTOR_LAST_BOUL … }Gale's room (TreasureIsleGalePlacements): its stone pillar, the eight boulders Lift raises, the posts of its three tightropes, and Gale.
enumanonymous enum { ACTOR_STAR_MAGICIAN, ACTOR_VENUS_DJINNI }The Star Magician, the guardian of water, in the last room (TreasureIsleGuardianPlacements), and the Venus Djinni waiting there: the spare DJINNI_EARTH19 stands for one of The Broken Seal's Venus Djinn the party lacks (SCENE_STATE_CHOSEN_DJINN), and with none lacking it is not placed.
enumTREASURE_ISLE_WAY { HALL_WEST_DOORWAY, WEST_ALCOVE, HALL_MIDDLE_DOORWAY, MIDDLE_ … }The ways between two parts of one room: each leads to its partner's entrance and back.
enumanonymous enum { CUE_BUTTON, CUE_SWITCH, CUE_JUMP, CUE_FIRST_BOULDER_JUMP, CU … }What the rooms' map metatiles do when Felix steps on them or casts at them, beside their exits.
enumanonymous enum { SPIKY_ROCK_RISEN, SPIKY_ROCK_HIGH, SPIKY_ROCK_LOW, SPIKY_ROC … }A spiky rock's pictures, 3 by 4 metatiles each, side by side from x 0 of row 100 of the map: from standing to broken in the water, as Grind breaks it, and back as it rises.

Functions

NameDescription
voidscTreasureIsleSetSpikyRock (TREASURE_ISLE_METATILE *metatiles, Sint16 index)Draws a spiky rock risen at its metatile, blocks the metatile and sets its flag.
voidscTreasureIsleCycleWaterColors (void)An event: cycles four colours of the two water palettes every eight ticks, saving both palettes the first time.
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 actors of the room the party enters.
voidscTreasureIsleRaiseSpikyRock (TREASURE_ISLE_METATILE *metatiles, Sint16 index)A spiky rock rises out of the water at a listed metatile: the camera goes to it, the ground shakes, the water sprays up around it, and scTreasureIsleSetSpikyRock leaves it standing.
voidscTreasureIslePressChestsRoomButton (void)Stepping on the red button on a small island in the chests' room's water, metatile (9, 15), raises the room's first four spiky rocks out of the water one after another, the camera going to each as it bursts up in a spray: at metatiles (7, 21), (7, 17), (12, 15) and (9, 11).
voidscTreasureIslePressSpikyRocksRoomButton (void)Stepping on the red button in the spiky rocks' room, metatile (47, 27), raises the room's three spiky rocks out of the water in a row, one after another, at metatiles (41, 23), (47, 23) and (53, 23).
voidscTreasureIsleRaiseLastSpikyRock (void)Stepping on the switch in the chests' room's east part, metatile (42, 41), or pushing its stone pillar onto it, raises a fifth spiky rock out of the water at metatile (46, 38), once.
voidscTreasureIsleSettleMovedPillar (Sint32 unused, Sint32 id)Move or a push leaving one of the stone pillars where it belongs sets its flag, so the pillar is put back there next time; nothing more is seen.
voidscTreasureIsleFightGale (void)Talking to Gale, the Jupiter Djinni, starts its battle.
voidscTreasureIsleVenusDjinniJoins (void)Talking to the Venus Djinni waiting in the west room before the Star Magician's chamber, metatile (12, 8), makes it join the party without a fight.
voidscTreasureIsleGrindSpikyRock (Sint32 unused, Sint32 frame, Sint32 id)Grind on a spiky rock in the chests' or the spiky rocks' room crushes it back into the water in three steps, clearing the way.
DEFINE_LIFT_BOULDER(scTreasureIsleLiftSouthRowEastBoulder , 0)The south row's east, middle and west boulders, metatiles (20, 20), (13, 19) and (6, 20).
DEFINE_LIFT_BOULDER(scTreasureIsleLiftSouthRowMiddleBoulder , 1)
DEFINE_LIFT_BOULDER(scTreasureIsleLiftSouthRowWestBoulder , 2)
DEFINE_LIFT_BOULDER(scTreasureIsleLiftNorthRowEastBoulder , 3)The north row's east, middle and west boulders, metatiles (19, 13), (13, 12) and (7, 13).
DEFINE_LIFT_BOULDER(scTreasureIsleLiftNorthRowMiddleBoulder , 4)
DEFINE_LIFT_BOULDER(scTreasureIsleLiftNorthRowWestBoulder , 5)
DEFINE_LIFT_BOULDER(scTreasureIsleLiftPillarDoorwayBoulder , 6)In the south part, the boulder blocking the narrow passage north to the stone pillar's doorway, metatile (46, 45), which rises above the passage.
DEFINE_LIFT_BOULDER(scTreasureIsleLiftChestDoorwayBoulder , 7)In the south part, the boulder in the passage north to the doorway by the chest, metatile (26, 42).
voidscTreasureIsleMeetStarMagician (void)Walking up the steps to the Star Magician in the last chamber, metatiles (48, 10) to (50, 10), until it is beaten: it stirs, the screen glows warm and it speaks, then it moves at Felix and the battle with it and its balls starts, with no escape.
const CUE *scGetCues (void)The cues of the room the party enters.
Sint32scInit (void)Treasure Isle's setup for each of its rooms: places the pillars already pushed to their places, cycles the water colours in the chests' and the spiky rocks' rooms and stands their risen spiky rocks again, and in Gale's room strings the tightropes and draws the boulders' shadows at the lowest priority.
Sint32scPrepareMap (void)Once Briggs is caught the pool has dried up: its colours take the dry ground's.
voidscTreasureIsleJumpForward (void)Walking towards a gap from one of its jump metatiles, Felix jumps two metatiles across it if there is ground to land on: in the chests' room from metatile (18, 11) east, in the spiky rocks' room from metatile (43, 15) north or east, and in Gale's room across a standing boulder.

Variables

NameDescription
extern ACTOR_PLACETreasureIsleEntrancePlacements []
extern ACTOR_PLACETreasureIsleChestsPlacements []
extern ACTOR_PLACETreasureIsleSpikyRocksPlacements []
extern ACTOR_PLACETreasureIsleGalePlacements []
extern ACTOR_PLACETreasureIsleGuardianPlacements []
extern Uint32TreasureIsleRockSpray []
extern TREASURE_ISLE_METATILETreasureIsleChestsSpikyRocks []The spiky rocks that rise in the chests' room and the spiky rocks' room: each rock's metatile, a number no code reads (in the chests' room, one of its five sea rocks' actor ids), and the flag set while it stands.
extern TREASURE_ISLE_METATILETreasureIsleSpikyRocksRoomRocks []
extern CUETreasureIsleChestsCues []
extern CUETreasureIsleSpikyRocksCues []
extern CUETreasureIsleGaleCues []Gale's room: its exits, the jumps between the pillar tops and boulders while each boulder stands, Gale, the stone pillar Move pushes and the boulders Lift raises.
extern CUETreasureIsleGuardianCues []
extern Uint32FieldEffectShortScript []
extern Uint32FieldEffectMediumScript []The flash about the Tomegathericon: held 45 ticks, then put away and freed.
extern Uint32FieldEffectLongScript []
extern Uint32TreasureIslePostStill []
extern Uint32TreasureIsleBoulderScale []
PALETTETreasureIsleSavedWaterColorsA
PALETTETreasureIsleWaterColorsA
PALETTETreasureIsleSavedWaterColorsB
PALETTETreasureIsleWaterColorsB
extern CUETreasureIsleEntranceCues []
extern Sint32TreasureIsleColorCycleTickThe water colours' cycle tick, -1 until the first tick saves the palettes.
const Sint32 *FieldEffectDurationScripts []The field effects' three scripts by how long an effect lasts: short, medium and long.
Uint32SceneExits []The room has no exits of its own.

Description

Treasure Isle, the island cave in the north-east corner of the world, its five rooms one overlay. It can be entered early, but finishing it needs Grind and Isaac's Lift.

Past the entrance room's three pillars, the chests' room is a lake of small islands joined by jumps and a tightrope: a red button on one island raises spiky rocks out of the water, which Grind breaks again, and a pillar Moved onto a switch in its east part raises one more. The spiky rocks' room beyond has another button and three spiky rocks in a row. In Gale's room, boulders stand in the way; Lift raises them into the air for good, and Gale, the Jupiter Djinni, waits on the west side. In the last rooms, a Venus Djinni from The Broken Seal that the party lacks waits in the west room, and in the east chamber the Star Magician, the guardian of water, fights for the Azul tablet behind it.

Macros in detail

EFFECT_SET_MODE

#define EFFECT_SET_MODE fdActorSelectAnimation

Referenced by EFFECT_SPAWN.

Definition at line 32 of file treasure_isle.c.

EFFECT_SET_SCRIPT

#define EFFECT_SET_SCRIPT fdActorStartScript

Referenced by EFFECT_SPAWN.

Definition at line 33 of file treasure_isle.c.

EFFECT_SPRITE_PRIORITY

#define EFFECT_SPRITE_PRIORITY

Definition at line 34 of file treasure_isle.c.

FLAG_TREASURE_ISLE_ENTRANCE_PILLAR_MOVED

#define FLAG_TREASURE_ISLE_ENTRANCE_PILLAR_MOVED(n) (FLAG_AREA_TEMP(0x00) + (n))

Set as Move pushes the entrance room's pillar n aside from its doorway: 0 the middle doorway's, 1 the east doorway's, 2 the chests' room's. scInit sets all three on entry, so the doorways always stand open.

Referenced by scInit(), scTreasureIsleSettleMovedPillar() and TreasureIsleEntranceCues.

Definition at line 40 of file treasure_isle.c.

FLAG_TREASURE_ISLE_CHESTS_ROCK_RISEN

#define FLAG_TREASURE_ISLE_CHESTS_ROCK_RISEN(n) (FLAG_AREA_TEMP(0x03) + (n))

Set as spiky rock n (0 to 4) of the chests' room rises, cleared as Grind breaks it (TreasureIsleChestsSpikyRocks).

Referenced by scInit(), scTreasureIslePressChestsRoomButton(), scTreasureIsleRaiseLastSpikyRock(), TreasureIsleChestsCues and TreasureIsleChestsSpikyRocks.

Definition at line 43 of file treasure_isle.c.

FLAG_TREASURE_ISLE_CHESTS_PILLAR_MOVED

#define FLAG_TREASURE_ISLE_CHESTS_PILLAR_MOVED FLAG_AREA_TEMP(0x08)

Set as Move pushes the chests' room's stone pillar to its place.

Referenced by scInit(), scTreasureIsleSettleMovedPillar() and TreasureIsleChestsCues.

Definition at line 45 of file treasure_isle.c.

FLAG_TREASURE_ISLE_SPIKY_ROCKS_PILLAR_MOVED

#define FLAG_TREASURE_ISLE_SPIKY_ROCKS_PILLAR_MOVED FLAG_AREA_TEMP(0x09)

Set as Move pushes the spiky rocks' room's stone pillar to its place.

Referenced by scInit(), scTreasureIsleSettleMovedPillar() and TreasureIsleSpikyRocksCues.

Definition at line 47 of file treasure_isle.c.

FLAG_TREASURE_ISLE_SPIKY_ROCKS_ROCK_RISEN

#define FLAG_TREASURE_ISLE_SPIKY_ROCKS_ROCK_RISEN(n)

Set as spiky rock n (0 to 2) of the spiky rocks' room rises, cleared as Grind breaks it (TreasureIsleSpikyRocksRoomRocks).

Referenced by scInit(), scTreasureIslePressSpikyRocksRoomButton(), TreasureIsleSpikyRocksCues and TreasureIsleSpikyRocksRoomRocks.

Definition at line 50 of file treasure_isle.c.

FLAG_TREASURE_ISLE_GALE_ROOM_PILLAR_MOVED

#define FLAG_TREASURE_ISLE_GALE_ROOM_PILLAR_MOVED FLAG_AREA_TEMP(0x0d)

Set as Move pushes the stone pillar of Gale's room to its place.

Referenced by scInit(), scTreasureIsleSettleMovedPillar() and TreasureIsleGaleCues.

Definition at line 53 of file treasure_isle.c.

FLAG_TREASURE_ISLE_BOULDER_LIFTED

#define FLAG_TREASURE_ISLE_BOULDER_LIFTED(n) (FLAG_SCENE_TEMP(0x00) + (n))

Set as Lift raises boulder n (0 to 7) of Gale's room; while it is clear the boulder stands and the party can jump onto it.

Referenced by TreasureIsleGaleCues.

Definition at line 56 of file treasure_isle.c.

FLAG_STAR_MAGICIAN_BEATEN

#define FLAG_STAR_MAGICIAN_BEATEN 0x9bb

Set once the Star Magician, the guardian of water, has been beaten; it is gone.

Referenced by scTreasureIsleMeetStarMagician(), TreasureIsleGuardianCues and TreasureIsleGuardianPlacements.

Definition at line 59 of file treasure_isle.c.

GALE_TALK_CUE

#define GALE_TALK_CUE

Gale answers from any side in the Japanese edition; from the international editions on, only while the leader faces east.

Referenced by TreasureIsleGaleCues.

Definition at line 63 of file treasure_isle.c.

MIDDLE_DOORWAY_PILLAR_MOVED_X

#define MIDDLE_DOORWAY_PILLAR_MOVED_X 264

Where Move leaves each stone pillar, in pixels: scInit puts a pillar whose flag is set back there.

Referenced by scInit() and scTreasureIsleSettleMovedPillar().

Definition at line 118 of file treasure_isle.c.

MIDDLE_DOORWAY_PILLAR_MOVED_Z

#define MIDDLE_DOORWAY_PILLAR_MOVED_Z 440

Referenced by scInit().

Definition at line 119 of file treasure_isle.c.

EAST_DOORWAY_PILLAR_MOVED_X

#define EAST_DOORWAY_PILLAR_MOVED_X 328

Referenced by scInit() and scTreasureIsleSettleMovedPillar().

Definition at line 120 of file treasure_isle.c.

EAST_DOORWAY_PILLAR_MOVED_Z

#define EAST_DOORWAY_PILLAR_MOVED_Z 440

Referenced by scInit().

Definition at line 121 of file treasure_isle.c.

CHESTS_DOORWAY_PILLAR_MOVED_X

#define CHESTS_DOORWAY_PILLAR_MOVED_X 440

Referenced by scInit() and scTreasureIsleSettleMovedPillar().

Definition at line 122 of file treasure_isle.c.

CHESTS_DOORWAY_PILLAR_MOVED_Z

#define CHESTS_DOORWAY_PILLAR_MOVED_Z 344

Referenced by scInit().

Definition at line 123 of file treasure_isle.c.

CHESTS_PILLAR_MOVED_X

#define CHESTS_PILLAR_MOVED_X 264

Referenced by scInit() and scTreasureIsleSettleMovedPillar().

Definition at line 124 of file treasure_isle.c.

CHESTS_PILLAR_MOVED_Z

#define CHESTS_PILLAR_MOVED_Z 184

Referenced by scInit().

Definition at line 125 of file treasure_isle.c.

SPIKY_ROCKS_PILLAR_MOVED_X

#define SPIKY_ROCKS_PILLAR_MOVED_X 664

Referenced by scInit() and scTreasureIsleSettleMovedPillar().

Definition at line 126 of file treasure_isle.c.

SPIKY_ROCKS_PILLAR_MOVED_Z

#define SPIKY_ROCKS_PILLAR_MOVED_Z 248

Referenced by scInit().

Definition at line 127 of file treasure_isle.c.

GALE_ROOM_PILLAR_MOVED_X

#define GALE_ROOM_PILLAR_MOVED_X 696

Referenced by scInit() and scTreasureIsleSettleMovedPillar().

Definition at line 128 of file treasure_isle.c.

GALE_ROOM_PILLAR_MOVED_Z

#define GALE_ROOM_PILLAR_MOVED_Z 600

Referenced by scInit().

Definition at line 129 of file treasure_isle.c.

CHESTS_SECOND_PILLAR_MOVED_X

#define CHESTS_SECOND_PILLAR_MOVED_X 680

The place of the chests' room's second pillar that raises the last spiky rock.

Referenced by scTreasureIsleSettleMovedPillar().

Definition at line 132 of file treasure_isle.c.

CHESTS_SECOND_PILLAR_MOVED_Z

#define CHESTS_SECOND_PILLAR_MOVED_Z 664

Referenced by scTreasureIsleSettleMovedPillar().

Definition at line 133 of file treasure_isle.c.

CHESTS_FIRST_ROCK_METATILE

#define CHESTS_FIRST_ROCK_METATILE 40

The metatiles Grind breaks each spiky rock from, the chests' room's from CHESTS_FIRST_ROCK_METATILE and the spiky rocks' room's from SPIKY_ROCKS_FIRST_ROCK_METATILE, in the order of their rooms' lists.

Referenced by scTreasureIsleGrindSpikyRock() and TreasureIsleChestsCues.

Definition at line 189 of file treasure_isle.c.

SPIKY_ROCKS_FIRST_ROCK_METATILE

#define SPIKY_ROCKS_FIRST_ROCK_METATILE 50

Referenced by scTreasureIsleGrindSpikyRock() and TreasureIsleSpikyRocksCues.

Definition at line 190 of file treasure_isle.c.

DRAW_SPIKY_ROCK

#define DRAW_SPIKY_ROCK(metatiles, index, picture)

Draws one of a listed spiky rock's pictures over its metatile, on the map's upper layer, which the map keeps 64 metatiles east of the ground: from a metatile west of the rock and two north.

Referenced by scTreasureIsleGrindSpikyRock(), scTreasureIsleRaiseSpikyRock() and scTreasureIsleSetSpikyRock().

Definition at line 206 of file treasure_isle.c.

WATER_PALETTE_A

#define WATER_PALETTE_A 3

The two background palettes of water whose colours cycle, and the four colours of each that cycle.

Referenced by scTreasureIsleCycleWaterColors().

Definition at line 216 of file treasure_isle.c.

WATER_PALETTE_B

#define WATER_PALETTE_B 10

Referenced by scTreasureIsleCycleWaterColors().

Definition at line 217 of file treasure_isle.c.

WATER_FIRST_CYCLING_COLOR

#define WATER_FIRST_CYCLING_COLOR 2

Referenced by scTreasureIsleCycleWaterColors().

Definition at line 218 of file treasure_isle.c.

WATER_CYCLING_COLORS

#define WATER_CYCLING_COLORS 4

Referenced by scTreasureIsleCycleWaterColors().

Definition at line 219 of file treasure_isle.c.

RAISE_SPIKY_ROCK_UNLESS_RISEN

#define RAISE_SPIKY_ROCK_UNLESS_RISEN(rocks, index, risenFlag, count)

One spiky rock of a red button's list: unless it stands already, it rises, the button's script starting with the first that does; count counts the rocks risen.

Referenced by scTreasureIslePressChestsRoomButton() and scTreasureIslePressSpikyRocksRoomButton().

Definition at line 361 of file treasure_isle.c.

DEFINE_LIFT_BOULDER

#define DEFINE_LIFT_BOULDER(name, n)

Lift on one of Gale's room's boulders raises it into the air out of the way for good: its sprite is drawn at priority 1 from then on, no longer by its place on the map, and its flag is set. Six stand in two rows of three in the room's north part, and while one stands Felix can jump across it from the metatiles either side.

Definition at line 549 of file treasure_isle.c.

Enumerations in detail

anonymous enum

enum { ACTOR_MIDDLE_DOORWAY_PILLAR, ACTOR_EAST_DOORWAY_PILLAR, ACTOR_CHESTS_DOORWAY_PILLAR }

The entrance room's three stone pillars (TreasureIsleEntrancePlacements), placed in the doorways they block and always found pushed aside beside them: the hall's middle and east doorways, and the one at the top of the east passage into the chests' room. The hall's west doorway has none.

EnumeratorValueDescription
ACTOR_MIDDLE_DOORWAY_PILLARACTOR_FIRST_PLACED
ACTOR_EAST_DOORWAY_PILLAR
ACTOR_CHESTS_DOORWAY_PILLAR

Definition at line 72 of file treasure_isle.c.

anonymous enum

enum { ACTOR_TIGHTROPE_POST_A, ACTOR_TIGHTROPE_POST_B, ACTOR_STONE_PILLAR, ACTOR_SECOND_STONE_PILLAR }

The chests' and the spiky rocks' rooms' tightrope posts and the stone pillar Move pushes; the chests' room has a second pillar.

EnumeratorValueDescription
ACTOR_TIGHTROPE_POST_AACTOR_FIRST_PLACED
ACTOR_TIGHTROPE_POST_B
ACTOR_STONE_PILLAR
ACTOR_SECOND_STONE_PILLAR

Definition at line 81 of file treasure_isle.c.

TREASURE_ISLE_GALE_ROOM_ACTOR_ID

enum TREASURE_ISLE_GALE_ROOM_ACTOR_ID

Gale's room (TreasureIsleGalePlacements): its stone pillar, the eight boulders Lift raises, the posts of its three tightropes, and Gale.

EnumeratorValueDescription
ACTOR_GALE_ROOM_PILLARACTOR_FIRST_PLACED
ACTOR_FIRST_BOULDER
ACTOR_LAST_BOULDERACTOR_FIRST_BOULDER + 7
ACTOR_GALE_ROOM_TIGHTROPE_POST_A
ACTOR_GALE_ROOM_TIGHTROPE_POST_B
ACTOR_GALE_ROOM_TIGHTROPE_POST_C
ACTOR_GALE_ROOM_TIGHTROPE_POST_D
ACTOR_GALE_ROOM_TIGHTROPE_POST_E
ACTOR_GALE_ROOM_TIGHTROPE_POST_F
ACTOR_GALE

Definition at line 91 of file treasure_isle.c.

anonymous enum

enum { ACTOR_STAR_MAGICIAN, ACTOR_VENUS_DJINNI }

The Star Magician, the guardian of water, in the last room (TreasureIsleGuardianPlacements), and the Venus Djinni waiting there: the spare DJINNI_EARTH19 stands for one of The Broken Seal's Venus Djinn the party lacks (SCENE_STATE_CHOSEN_DJINN), and with none lacking it is not placed.

EnumeratorValueDescription
ACTOR_STAR_MAGICIANACTOR_FIRST_PLACED
ACTOR_VENUS_DJINNI

Definition at line 110 of file treasure_isle.c.

TREASURE_ISLE_WAY

enum TREASURE_ISLE_WAY

The ways between two parts of one room: each leads to its partner's entrance and back.

EnumeratorValueDescription
HALL_WEST_DOORWAY2The entrance hall's three doorways in its north wall, each to a small alcove of two chests.
WEST_ALCOVE
HALL_MIDDLE_DOORWAY
MIDDLE_ALCOVE
HALL_EAST_DOORWAY
EAST_ALCOVE
CHESTS_ROOM_WEST_PATH2The chests' room: the south end of
CHESTS_ROOM_EAST_CAVE_MOUTHthe sand path in its west part, to the cave mouth over the east part's water.
SPIKY_ROCKS_ROOM_EAST_CAVE_MOUTH3The spiky rocks' room: the cave
SPIKY_ROCKS_ROOM_WEST_PATHmouth over its east part's water, to the end of the sand path in its west part.
GALE_ROOM_PILLAR_DOORWAY2Gale's room: the south part's doorways, above the stone pillar and by the chest, to the ends of the north part's paths east and west.
GALE_ROOM_EAST_PATH
GALE_ROOM_CHEST_DOORWAY
GALE_ROOM_WEST_PATH
GUARDIAN_ROOM_DOORWAY2The last rooms: the first room's north
STAR_MAGICIAN_CHAMBER_PATHdoorway, to the foot of the path into the Star Magician's chamber.

Definition at line 137 of file treasure_isle.c.

anonymous enum

enum { CUE_BUTTON, CUE_SWITCH, CUE_JUMP, CUE_FIRST_BOULDER_JUMP, … }

What the rooms' map metatiles do when Felix steps on them or casts at them, beside their exits.

EnumeratorValueDescription
CUE_BUTTON30The red button in the chests' and the spiky rocks' rooms.
CUE_SWITCH31The switch in the chests' room's east part, metatile (42, 41).
CUE_JUMP35A metatile Felix jumps two metatiles on from, over a gap in the water.
CUE_FIRST_BOULDER_JUMP31In Gale's room, the metatiles beside its first six boulders Felix jumps from, west and east in turn, two to a boulder.
CUE_BEFORE_STAR_MAGICIAN42The metatiles before the Star Magician in the last chamber.

Definition at line 171 of file treasure_isle.c.

anonymous enum

enum { SPIKY_ROCK_RISEN, SPIKY_ROCK_HIGH, SPIKY_ROCK_LOW, SPIKY_ROCK_BROKEN }

A spiky rock's pictures, 3 by 4 metatiles each, side by side from x 0 of row 100 of the map: from standing to broken in the water, as Grind breaks it, and back as it rises.

EnumeratorValueDescription
SPIKY_ROCK_RISEN0
SPIKY_ROCK_HIGH3
SPIKY_ROCK_LOW6
SPIKY_ROCK_BROKEN9

Definition at line 195 of file treasure_isle.c.

Functions in detail

scTreasureIsleSetSpikyRock

void scTreasureIsleSetSpikyRock(TREASURE_ISLE_METATILE *metatiles, Sint16 index)

Draws a spiky rock risen at its metatile, blocks the metatile and sets its flag.

References fdMapGridCopyMetatileAttributes() and fdScriptSetFlag().

Referenced by scInit() and scTreasureIsleRaiseSpikyRock().

Definition at lines 235 and 292 of file treasure_isle.c.

scTreasureIsleCycleWaterColors

void scTreasureIsleCycleWaterColors(void)

An event: cycles four colours of the two water palettes every eight ticks, saving both palettes the first time.

References Sint32, syWordsCopy(), TreasureIsleColorCycleTick, TreasureIsleSavedWaterColorsA, TreasureIsleSavedWaterColorsB, TreasureIsleWaterColorsA and TreasureIsleWaterColorsB.

Referenced by scInit().

Definition at lines 238 and 637 of file treasure_isle.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 257 of file treasure_isle.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 262 of file treasure_isle.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 267 of file treasure_isle.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

The actors of the room the party enters.

References MainRoutineStateWork, Sint32, TreasureIsleChestsPlacements, TreasureIsleEntrancePlacements, TreasureIsleGalePlacements, TreasureIsleGuardianPlacements and TreasureIsleSpikyRocksPlacements.

Definition at line 273 of file treasure_isle.c.

scTreasureIsleRaiseSpikyRock

void scTreasureIsleRaiseSpikyRock(TREASURE_ISLE_METATILE *metatiles, Sint16 index)

A spiky rock rises out of the water at a listed metatile: the camera goes to it, the ground shakes, the water sprays up around it, and scTreasureIsleSetSpikyRock leaves it standing.

References fdCameraMoveToFX(), fdCameraWaitForArrival(), fdScriptPlaySound(), scFieldEffectSpawn(), scFieldScriptWait(), scTreasureIsleSetSpikyRock() and TreasureIsleRockSpray.

Referenced by scTreasureIsleRaiseLastSpikyRock().

Definition at line 303 of file treasure_isle.c.

scTreasureIslePressChestsRoomButton

void scTreasureIslePressChestsRoomButton(void)

Stepping on the red button on a small island in the chests' room's water, metatile (9, 15), raises the room's first four spiky rocks out of the water one after another, the camera going to each as it bursts up in a spray: at metatiles (7, 21), (7, 17), (12, 15) and (9, 11). A rock Grind has broken rises again; one still standing is left as it is.

References fdScriptEnd() and TreasureIsleChestsSpikyRocks.

Referenced by TreasureIsleChestsCues.

Definition at line 377 of file treasure_isle.c.

scTreasureIslePressSpikyRocksRoomButton

void scTreasureIslePressSpikyRocksRoomButton(void)

Stepping on the red button in the spiky rocks' room, metatile (47, 27), raises the room's three spiky rocks out of the water in a row, one after another, at metatiles (41, 23), (47, 23) and (53, 23). A rock Grind has broken rises again.

References fdScriptEnd() and TreasureIsleSpikyRocksRoomRocks.

Referenced by TreasureIsleSpikyRocksCues.

Definition at line 405 of file treasure_isle.c.

scTreasureIsleRaiseLastSpikyRock

void scTreasureIsleRaiseLastSpikyRock(void)

Stepping on the switch in the chests' room's east part, metatile (42, 41), or pushing its stone pillar onto it, raises a fifth spiky rock out of the water at metatile (46, 38), once.

References fdScriptEnd(), fdScriptGetFlag(), fdScriptSetFlag(), fdScriptStart(), scFieldScriptEndLastingPsynergy(), scTreasureIsleRaiseSpikyRock() and TreasureIsleChestsSpikyRocks.

Referenced by scTreasureIsleSettleMovedPillar() and TreasureIsleChestsCues.

Definition at line 428 of file treasure_isle.c.

scTreasureIsleSettleMovedPillar

void scTreasureIsleSettleMovedPillar(Sint32 unused, Sint32 id)

Move or a push leaving one of the stone pillars where it belongs sets its flag, so the pillar is put back there next time; nothing more is seen. The pillar in the chests' room's east part, left on its switch, metatile (42, 41), raises the fifth spiky rock (scTreasureIsleRaiseLastSpikyRock).

References fdActorGet(), fdScriptSetFlag(), MainRoutineStateWork, scTreasureIsleRaiseLastSpikyRock() and Sint32.

Referenced by TreasureIsleChestsCues, TreasureIsleEntranceCues, TreasureIsleGaleCues and TreasureIsleSpikyRocksCues.

Definition at line 444 of file treasure_isle.c.

scTreasureIsleFightGale

void scTreasureIsleFightGale(void)

Talking to Gale, the Jupiter Djinni, starts its battle.

References fdRequestDjinnBattle().

Referenced by TreasureIsleGaleCues.

Definition at line 494 of file treasure_isle.c.

scTreasureIsleVenusDjinniJoins

void scTreasureIsleVenusDjinniJoins(void)

Talking to the Venus Djinni waiting in the west room before the Star Magician's chamber, metatile (12, 8), makes it join the party without a fight. It is one of The Broken Seal's Venus Djinn the party lacks, and is not there when none is lacking.

References fdDjinnJoinParty().

Referenced by TreasureIsleGuardianCues.

Definition at line 503 of file treasure_isle.c.

scTreasureIsleGrindSpikyRock

void scTreasureIsleGrindSpikyRock(Sint32 unused, Sint32 frame, Sint32 id)

Grind on a spiky rock in the chests' or the spiky rocks' room crushes it back into the water in three steps, clearing the way. Grind calls this as it plays, with how far it has got in frame, and id says which rock.

References fdMapGridCopyMetatileAttributes(), fdScriptClearFlag(), Sint32, TreasureIsleChestsSpikyRocks and TreasureIsleSpikyRocksRoomRocks.

Referenced by TreasureIsleChestsCues and TreasureIsleSpikyRocksCues.

Definition at line 513 of file treasure_isle.c.

scTreasureIsleLiftSouthRowEastBoulder

DEFINE_LIFT_BOULDER(scTreasureIsleLiftSouthRowEastBoulder, 0)

The south row's east, middle and west boulders, metatiles (20, 20), (13, 19) and (6, 20).

Referenced by TreasureIsleGaleCues.

Definition at line 560 of file treasure_isle.c.

scTreasureIsleLiftSouthRowMiddleBoulder

DEFINE_LIFT_BOULDER(scTreasureIsleLiftSouthRowMiddleBoulder, 1)

Referenced by TreasureIsleGaleCues.

Definition at line 561 of file treasure_isle.c.

scTreasureIsleLiftSouthRowWestBoulder

DEFINE_LIFT_BOULDER(scTreasureIsleLiftSouthRowWestBoulder, 2)

Referenced by TreasureIsleGaleCues.

Definition at line 562 of file treasure_isle.c.

scTreasureIsleLiftNorthRowEastBoulder

DEFINE_LIFT_BOULDER(scTreasureIsleLiftNorthRowEastBoulder, 3)

The north row's east, middle and west boulders, metatiles (19, 13), (13, 12) and (7, 13).

Referenced by TreasureIsleGaleCues.

Definition at line 566 of file treasure_isle.c.

scTreasureIsleLiftNorthRowMiddleBoulder

DEFINE_LIFT_BOULDER(scTreasureIsleLiftNorthRowMiddleBoulder, 4)

Referenced by TreasureIsleGaleCues.

Definition at line 567 of file treasure_isle.c.

scTreasureIsleLiftNorthRowWestBoulder

DEFINE_LIFT_BOULDER(scTreasureIsleLiftNorthRowWestBoulder, 5)

Referenced by TreasureIsleGaleCues.

Definition at line 568 of file treasure_isle.c.

scTreasureIsleLiftPillarDoorwayBoulder

DEFINE_LIFT_BOULDER(scTreasureIsleLiftPillarDoorwayBoulder, 6)

In the south part, the boulder blocking the narrow passage north to the stone pillar's doorway, metatile (46, 45), which rises above the passage.

Referenced by TreasureIsleGaleCues.

Definition at line 572 of file treasure_isle.c.

scTreasureIsleLiftChestDoorwayBoulder

DEFINE_LIFT_BOULDER(scTreasureIsleLiftChestDoorwayBoulder, 7)

In the south part, the boulder in the passage north to the doorway by the chest, metatile (26, 42).

Referenced by TreasureIsleGaleCues.

Definition at line 576 of file treasure_isle.c.

scTreasureIsleMeetStarMagician

void scTreasureIsleMeetStarMagician(void)

Walking up the steps to the Star Magician in the last chamber, metatiles (48, 10) to (50, 10), until it is beaten: it stirs, the screen glows warm and it speaks, then it moves at Felix and the battle with it and its balls starts, with no escape.

References fdActorGet(), fdActorSetDestination(), fdPaletteFadeApplySource(), fdPaletteFadeApplyTarget(), fdPaletteFadeInterpolate(), fdRequestBattleFromEncounterTable(), fdScriptStart(), MainRoutineStateWork, mnFieldMessageShowCentered(), scFieldActorStartRepeatedMotion(), scFieldScriptEndLastingPsynergy(), scFieldScriptWait() and Sint32.

Referenced by TreasureIsleGuardianCues.

Definition at line 582 of file treasure_isle.c.

scGetCues

const CUE *scGetCues(void)

The cues of the room the party enters.

References MainRoutineStateWork, Sint32, TreasureIsleChestsCues, TreasureIsleEntranceCues, TreasureIsleGaleCues, TreasureIsleGuardianCues and TreasureIsleSpikyRocksCues.

Definition at line 617 of file treasure_isle.c.

scInit

Sint32 scInit(void)

Treasure Isle's setup for each of its rooms: places the pillars already pushed to their places, cycles the water colours in the chests' and the spiky rocks' rooms and stands their risen spiky rocks again, and in Gale's room strings the tightropes and draws the boulders' shadows at the lowest priority.

References fdActorGet(), fdScriptGetFlag(), fdScriptSetFlag(), fdTightropeInit(), fdTightropePlace(), MainRoutineStateWork, scTreasureIsleCycleWaterColors(), scTreasureIsleSetSpikyRock(), Sint32, sySetTickEvent(), TreasureIsleChestsSpikyRocks and TreasureIsleSpikyRocksRoomRocks.

Definition at line 689 of file treasure_isle.c.

scPrepareMap

Sint32 scPrepareMap(void)

References Sint32.

Definition at line 772 of file treasure_isle.c.

scTreasureIsleJumpForward

void scTreasureIsleJumpForward(void)

Walking towards a gap from one of its jump metatiles, Felix jumps two metatiles across it if there is ground to land on: in the chests' room from metatile (18, 11) east, in the spiky rocks' room from metatile (43, 15) north or east, and in Gale's room across a standing boulder.

References fdTryJumpForward().

Referenced by TreasureIsleChestsCues, TreasureIsleGaleCues and TreasureIsleSpikyRocksCues.

Definition at line 781 of file treasure_isle.c.

Variables in detail

TreasureIsleEntrancePlacements

extern ACTOR_PLACE TreasureIsleEntrancePlacements[]

ACTOR_PLACE TreasureIsleEntrancePlacements[]

Referenced by scGetActorPlacements().

Definition at lines 221 and 930 of file treasure_isle.c.

TreasureIsleChestsPlacements

extern ACTOR_PLACE TreasureIsleChestsPlacements[]

ACTOR_PLACE TreasureIsleChestsPlacements[]

References Sint32 and TreasureIslePostStill.

Referenced by scGetActorPlacements().

Definition at lines 222 and 940 of file treasure_isle.c.

TreasureIsleSpikyRocksPlacements

extern ACTOR_PLACE TreasureIsleSpikyRocksPlacements[]

ACTOR_PLACE TreasureIsleSpikyRocksPlacements[]

References Sint32 and TreasureIslePostStill.

Referenced by scGetActorPlacements().

Definition at lines 223 and 962 of file treasure_isle.c.

TreasureIsleGalePlacements

extern ACTOR_PLACE TreasureIsleGalePlacements[]

ACTOR_PLACE TreasureIsleGalePlacements[]

References Sint32, TreasureIsleBoulderScale and TreasureIslePostStill.

Referenced by scGetActorPlacements().

Definition at lines 224 and 979 of file treasure_isle.c.

TreasureIsleGuardianPlacements

extern ACTOR_PLACE TreasureIsleGuardianPlacements[]

ACTOR_PLACE TreasureIsleGuardianPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 225 and 1015 of file treasure_isle.c.

TreasureIsleRockSpray

extern Uint32 TreasureIsleRockSpray[]

Uint32 TreasureIsleRockSpray[]

Referenced by scTreasureIsleRaiseSpikyRock().

Definition at lines 226 and 789 of file treasure_isle.c.

TreasureIsleChestsSpikyRocks

extern TREASURE_ISLE_METATILE TreasureIsleChestsSpikyRocks[]

TREASURE_ISLE_METATILE TreasureIsleChestsSpikyRocks[]

The spiky rocks that rise in the chests' room and the spiky rocks' room: each rock's metatile, a number no code reads (in the chests' room, one of its five sea rocks' actor ids), and the flag set while it stands.

Referenced by scInit(), scTreasureIsleGrindSpikyRock(), scTreasureIslePressChestsRoomButton() and scTreasureIsleRaiseLastSpikyRock().

Definition at lines 228 and 810 of file treasure_isle.c.

TreasureIsleSpikyRocksRoomRocks

extern TREASURE_ISLE_METATILE TreasureIsleSpikyRocksRoomRocks[]

TREASURE_ISLE_METATILE TreasureIsleSpikyRocksRoomRocks[]

Referenced by scInit(), scTreasureIsleGrindSpikyRock() and scTreasureIslePressSpikyRocksRoomButton().

Definition at lines 229 and 817 of file treasure_isle.c.

TreasureIsleChestsCues

extern CUE TreasureIsleChestsCues[]

CUE TreasureIsleChestsCues[]

References scTreasureIsleGrindSpikyRock(), scTreasureIsleJumpForward(), scTreasureIslePressChestsRoomButton(), scTreasureIsleRaiseLastSpikyRock() and scTreasureIsleSettleMovedPillar().

Referenced by scGetCues().

Definition at lines 230 and 1050 of file treasure_isle.c.

TreasureIsleSpikyRocksCues

extern CUE TreasureIsleSpikyRocksCues[]

CUE TreasureIsleSpikyRocksCues[]

References scTreasureIsleGrindSpikyRock(), scTreasureIsleJumpForward(), scTreasureIslePressSpikyRocksRoomButton() and scTreasureIsleSettleMovedPillar().

Referenced by scGetCues().

Definition at lines 231 and 1104 of file treasure_isle.c.

TreasureIsleGaleCues

extern CUE TreasureIsleGaleCues[]

CUE TreasureIsleGaleCues[]

Gale's room: its exits, the jumps between the pillar tops and boulders while each boulder stands, Gale, the stone pillar Move pushes and the boulders Lift raises.

References scTreasureIsleFightGale(), scTreasureIsleJumpForward(), scTreasureIsleLiftChestDoorwayBoulder(), scTreasureIsleLiftNorthRowEastBoulder(), scTreasureIsleLiftNorthRowMiddleBoulder(), scTreasureIsleLiftNorthRowWestBoulder(), scTreasureIsleLiftPillarDoorwayBoulder(), scTreasureIsleLiftSouthRowEastBoulder(), scTreasureIsleLiftSouthRowMiddleBoulder(), scTreasureIsleLiftSouthRowWestBoulder() and scTreasureIsleSettleMovedPillar().

Referenced by scGetCues().

Definition at lines 232 and 1152 of file treasure_isle.c.

TreasureIsleGuardianCues

extern CUE TreasureIsleGuardianCues[]

CUE TreasureIsleGuardianCues[]

References scTreasureIsleMeetStarMagician() and scTreasureIsleVenusDjinniJoins().

Referenced by scGetCues().

Definition at lines 233 and 1254 of file treasure_isle.c.

TreasureIslePostStill

extern Uint32 TreasureIslePostStill[]

Uint32 TreasureIslePostStill[]

Referenced by TreasureIsleChestsPlacements, TreasureIsleGalePlacements and TreasureIsleSpikyRocksPlacements.

Definition at lines 243 and 924 of file treasure_isle.c.

TreasureIsleBoulderScale

extern Uint32 TreasureIsleBoulderScale[]

Uint32 TreasureIsleBoulderScale[]

Referenced by TreasureIsleGalePlacements.

Definition at lines 244 and 972 of file treasure_isle.c.

TreasureIsleSavedWaterColorsA

PALETTE TreasureIsleSavedWaterColorsA

Referenced by scTreasureIsleCycleWaterColors().

Definition at line 252 of file treasure_isle.c.

TreasureIsleWaterColorsA

PALETTE TreasureIsleWaterColorsA

Referenced by scTreasureIsleCycleWaterColors().

Definition at line 253 of file treasure_isle.c.

TreasureIsleSavedWaterColorsB

PALETTE TreasureIsleSavedWaterColorsB

Referenced by scTreasureIsleCycleWaterColors().

Definition at line 254 of file treasure_isle.c.

TreasureIsleWaterColorsB

PALETTE TreasureIsleWaterColorsB

Referenced by scTreasureIsleCycleWaterColors().

Definition at line 255 of file treasure_isle.c.

TreasureIsleEntranceCues

extern CUE TreasureIsleEntranceCues[]

CUE TreasureIsleEntranceCues[]

References scTreasureIsleSettleMovedPillar().

Referenced by scGetCues().

Definition at lines 614 and 1024 of file treasure_isle.c.

TreasureIsleColorCycleTick

extern Sint32 TreasureIsleColorCycleTick

Sint32 TreasureIsleColorCycleTick

The water colours' cycle tick, -1 until the first tick saves the palettes.

References Sint32.

Referenced by scTreasureIsleCycleWaterColors().

Definition at lines 633 and 1269 of file treasure_isle.c.

FieldEffectDurationScripts

const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

Referenced by fdEffectSpawnResident(), scFieldEffectSpawn() and scFieldEffectSpawnLocal().

Definition at line 801 of file treasure_isle.c.

SceneExits

Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 825 of file treasure_isle.c.

On this page

StructuresMacrosEnumerationsFunctionsVariablesDescriptionMacros in detailEFFECT_SET_MODEEFFECT_SET_SCRIPTEFFECT_SPRITE_PRIORITYFLAG_TREASURE_ISLE_ENTRANCE_PILLAR_MOVEDFLAG_TREASURE_ISLE_CHESTS_ROCK_RISENFLAG_TREASURE_ISLE_CHESTS_PILLAR_MOVEDFLAG_TREASURE_ISLE_SPIKY_ROCKS_PILLAR_MOVEDFLAG_TREASURE_ISLE_SPIKY_ROCKS_ROCK_RISENFLAG_TREASURE_ISLE_GALE_ROOM_PILLAR_MOVEDFLAG_TREASURE_ISLE_BOULDER_LIFTEDFLAG_STAR_MAGICIAN_BEATENGALE_TALK_CUEMIDDLE_DOORWAY_PILLAR_MOVED_XMIDDLE_DOORWAY_PILLAR_MOVED_ZEAST_DOORWAY_PILLAR_MOVED_XEAST_DOORWAY_PILLAR_MOVED_ZCHESTS_DOORWAY_PILLAR_MOVED_XCHESTS_DOORWAY_PILLAR_MOVED_ZCHESTS_PILLAR_MOVED_XCHESTS_PILLAR_MOVED_ZSPIKY_ROCKS_PILLAR_MOVED_XSPIKY_ROCKS_PILLAR_MOVED_ZGALE_ROOM_PILLAR_MOVED_XGALE_ROOM_PILLAR_MOVED_ZCHESTS_SECOND_PILLAR_MOVED_XCHESTS_SECOND_PILLAR_MOVED_ZCHESTS_FIRST_ROCK_METATILESPIKY_ROCKS_FIRST_ROCK_METATILEDRAW_SPIKY_ROCKWATER_PALETTE_AWATER_PALETTE_BWATER_FIRST_CYCLING_COLORWATER_CYCLING_COLORSRAISE_SPIKY_ROCK_UNLESS_RISENDEFINE_LIFT_BOULDEREnumerations in detailanonymous enumanonymous enumTREASURE_ISLE_GALE_ROOM_ACTOR_IDanonymous enumTREASURE_ISLE_WAYanonymous enumanonymous enumFunctions in detailscTreasureIsleSetSpikyRockscTreasureIsleCycleWaterColorsscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscTreasureIsleRaiseSpikyRockscTreasureIslePressChestsRoomButtonscTreasureIslePressSpikyRocksRoomButtonscTreasureIsleRaiseLastSpikyRockscTreasureIsleSettleMovedPillarscTreasureIsleFightGalescTreasureIsleVenusDjinniJoinsscTreasureIsleGrindSpikyRockscTreasureIsleLiftSouthRowEastBoulderscTreasureIsleLiftSouthRowMiddleBoulderscTreasureIsleLiftSouthRowWestBoulderscTreasureIsleLiftNorthRowEastBoulderscTreasureIsleLiftNorthRowMiddleBoulderscTreasureIsleLiftNorthRowWestBoulderscTreasureIsleLiftPillarDoorwayBoulderscTreasureIsleLiftChestDoorwayBoulderscTreasureIsleMeetStarMagicianscGetCuesscInitscPrepareMapscTreasureIsleJumpForwardVariables in detailTreasureIsleEntrancePlacementsTreasureIsleChestsPlacementsTreasureIsleSpikyRocksPlacementsTreasureIsleGalePlacementsTreasureIsleGuardianPlacementsTreasureIsleRockSprayTreasureIsleChestsSpikyRocksTreasureIsleSpikyRocksRoomRocksTreasureIsleChestsCuesTreasureIsleSpikyRocksCuesTreasureIsleGaleCuesTreasureIsleGuardianCuesTreasureIslePostStillTreasureIsleBoulderScaleTreasureIsleSavedWaterColorsATreasureIsleWaterColorsATreasureIsleSavedWaterColorsBTreasureIsleWaterColorsBTreasureIsleEntranceCuesTreasureIsleColorCycleTickFieldEffectDurationScriptsSceneExits