Skip to Content
The Alchemy Project

src/scene/lamakan_desert.c

Lamakan Desert, south of Lama Temple: four scenes that share one cue table, built around a heat gauge and the secrets Reveal uncovers. More…

Macros

NameDescription
#defineHEAT_GAUGE_TILE_BYTES (36 * TILE_SIZE_4BPP)The heat gauge's picture, 36 tiles in two columns of 18; its tile buffer holds two, the bar and then the tick laid over it.
#defineHEAT_GAUGE_LEVELS 120The heat gauge's levels: the party's steps scaled from 0 to HEAT_GAUGE_LEVELS by the area's hazard limit.
#defineHEAT_GAUGE_WIDTH 16The gauge's place on the screen: 16 pixels wide, from line 8 down four 16x32 sprites and a 16x16 bulb.
#defineHEAT_GAUGE_TOP 8
#defineHEAT_GAUGE_HEIGHT (4 * 32 + 16)
#defineHEAT_GAUGE_TUBE_TOP 12The gauge's tube in its pictures, from the row below its cap to the row above its bulb; the heat fills it from below.
#defineHEAT_GAUGE_TUBE_FOOT 128
#defineHEAT_GAUGE_ROW_WORD (row) ((row) / 8 * 16 + (row) % 8)The word of the gauge's tiles that holds the left half of pixel row row: each band of eight rows is a left tile, then a right one, eight words each.
#defineHEAT_GAUGE_PALETTE 14The sprite palette the gauge is drawn in, its colour for the tube's empty part (black), and the first of the six colours the heat reddens.
#defineHEAT_GAUGE_EMPTY_COLOR 14
#defineHEAT_GAUGE_TINTED_COLOR 6
#defineHEAT_GAUGE_TINTED_COLORS 6
#defineHEAT_GAUGE_GREEN_FLICKER 32The most the gauge's green brightens, at full heat, on its flickering ticks past half.
#defineHEAT_LIMIT 600The steps of heat at which the party loses HEAT_DAMAGE_PERCENT of its HP and the count starts again (MainRoutineStateWork.hazardLimit).
#defineHEAT_DAMAGE_PERCENT 25
#defineSECRET_WIDTH 4A secret of the east and Smog scenes is a 4-by-2 patch of the map grid.
#defineSECRET_HEIGHT 2
#defineSECRET_SPARE_FIRST_COLUMN 64
#defineSECRET_SPARE_COLUMN (secret)
#defineSECRET_SPARE_ROW 126
#definePLAIN_SAND_COLUMN 70
#definePLAIN_SAND_ROW 68
#defineSAVE_SECRET (secret, column, row)Saves the secret whose top-left metatile is (column, row) to its spare patch.
#defineHIDE_SECRET (column, row)Draws plain sand over a secret.
#defineSHOW_SECRET (secret, column, row)Copies a secret back from its spare patch.
#defineHIDE_SECRET_SOUTH_ROW (column, row)A pit's secret also changes the ground a row further south: hidden, the row two below the patch's top takes the sand's ground; shown, the two rows from one below its top take the ground of the saved patch's two rows.
#defineSHOW_SECRET_SOUTH_ROWS (secret, column, row)
#definePIT_SEARCH_DISTANCE (1 << 20)The distance in pixels scLamakanDesertFallIntoPit's search for the nearest pit starts from, farther than any pit can be.
#defineFIELD_EFFECT_DURATION_SCRIPTS_READ_ONLYLamakan Desert keeps its duration scripts with its read-only data.

Enumerations

NameDescription
enumanonymous enum { HEAT_QUARTER_PERCENT, HEAT_HALF_PERCENT, HEAT_THREE_QUARTERS … }The gauge's marks, in percent of HEAT_LIMIT, past which Garet, Ivan or Mia complains of the heat.
enumLAMAKAN_DESERT_RAISED_CUE { LAMAKAN_DESERT_RAISED_HEAT_QUARTER, LAMAKAN_DESERT_RAISED_HE … }The values scHeatGaugeRaiseQuarterCues raises as the heat gauge passes each mark.
enumLAMAKAN_DESERT_METATILE_BEHAVIOR { METATILE_BEHAVIOR_LAMAKAN_DESERT_OASIS, METATILE_BEHAVIOR_LA … }The metatile behaviors of the desert's ground.
enumanonymous enum { FLAG_DESERT_SCRIPT_RUNNING, FLAG_SECRETS_REVEALED, FLAG_HEAT … }
enumanonymous enum { ACTOR_MANTICORE, ACTOR_FIRST_PIT, ACTOR_LAST_PIT, ACTOR_SMOG }The actors, numbered in the order of each scene's actor placements from ACTOR_FIRST_PLACED.
enumanonymous enum { ENCOUNTER_SLOT_ANT_LION, ENCOUNTER_SLOT_MANTICORE }The monsters the pits and the Manticore set on the party, by their slots of ENCOUNTER_ZONE_SCRIPTED_MOGALL_ALTIN_LAMAKAN.
enumanonymous enum { FLAG_LAMAKAN_DESERT_FIRST_PSYNERGY_STONE, FLAG_LAMAKAN_DESER … }The desert's two Psynergy Stones, area temp flags.
enumLAMAKAN_DESERT_EAST_SECRET { EAST_SECRET_OASIS_NORTH, EAST_SECRET_VULCAN_AXE, EAST_SECRET … }LamakanDesertEast's secrets, numbered as their spare patches are, each named for what Reveal uncovers in it: an oasis's pool (around its middle in LamakanDesertEastOases), a pit, or a treasure spot.
enumLAMAKAN_DESERT_SMOG_SECRET { SMOG_SECRET_OASIS_NORTHEAST, SMOG_SECRET_PIT_NORTH, SMOG_SEC … }LamakanDesertSmog's secrets, the same way: five oases, the four pits of ACTOR_FIRST_PIT to ACTOR_LAST_PIT, Smog on TREASURE_SPOT_UNDER_SMOG, and the chests and Psynergy Stone.
enumLAMAKAN_DESERT_TREASURE_SPOT { TREASURE_SPOT_VULCAN_AXE, TREASURE_SPOT_FIRST_PSYNERGY_STONE … }The desert's treasure spots, whose metatiles Reveal uncovers with their secrets: the chests and Psynergy Stones their examine cues find, and the metatile under Smog, which no examine cue answers.

Functions

NameDescription
BSS_DATAALIGNED (16)The VRAM cache entry holding the gauge's tiles.
voidscHeatGaugeStart (void)Loads the gauge's tiles, claims VRAM for them and starts drawing it.
static voidscHeatGaugeSetHeld (Uint16 held)While held (1), the gauge stays on screen.
static voidscLamakanDesertTalkToSmog (void)Talking to Smog, the Jupiter Djinni Reveal uncovers in a ring of rocks east of the middle of Lamakan Desert's second scene, makes it join the party.
static UNREAD_RESULTscLamakanDesertKickUpSand (ACTOR *actor)The update a leader pulled into an Ant Lion's pit runs: sand sounds every 8 ticks and a spray of sand every 16.
const SCENE_ENTRANCE *scGetEntrances (void)Where the party can enter each of the four scenes.
const SCENE_EXIT_REGION *scGetExitRegions (void)The scene has no exit regions: its regions entry returns none.
const Uint32 *scGetExits (void)All four desert scenes share the packed exit table.
const ACTOR_PLACE *scGetActorPlacements (void)The pits, the Manticore and Smog of each scene.
static voidscLamakanDesertLeaveForTheWorldMap (void)Walking out of the west end of the cave corridor behind the Manticore (metatile (8, 19)) leaves Lamakan Desert for the World Map.
const CUE *scGetCues (void)The desert's cues, the same in every scene.
static UNREAD_RESULTscRevealHideSecrets (void)Reveal wears off, and the desert's secrets sink under the sand again.
static UNREAD_RESULTscRevealShowSecrets (void)Casting Reveal uncovers what the desert's sand hides.
static voidscLamakanDesertFightManticore (void)Talking to the Manticore before the north-west passage of Lamakan Desert's third scene makes it rear up and starts the battle.
static voidscLamakanDesertComplainAboutHeat (Sint32 mark)As Lamakan Desert's heat gauge passes a quarter, a half and three quarters, Garet, Ivan or Mia, picked at random, complains of the heat.
static voidscHeatGaugeRaiseQuarterCues (void)Every tick: raises LAMAKAN_DESERT_RAISED_HEAT_QUARTER to _THREE_QUARTERS as the gauge passes each quarter, and clears each mark and the complaints when the gauge drops back below it.
static Sint32scLamakanDesertPixelsToOasis (const Sint32 *pos, const Sint32 *oasis)The distance in whole pixels across the ground from a position (x, height, z) to an oasis's middle (x, z).
static voidscLamakanDesertBatheInOasis (void)Stepping into an oasis in Lamakan Desert, which only Reveal shows in its ring of rocks, Isaac hops into the middle of the pool and bathes with a heart over his head while the heat gauge drains, for at least a second, then hops out.
static voidscHeatGaugeCountStep (void)Walking on Lamakan Desert's sand fills the heat gauge and kicks up little puffs of dust at Isaac's feet, bigger and more often on the run.
static voidscLamakanDesertFallIntoPit (void)Stepping beside an Ant Lion's pit in Lamakan Desert, which only Reveal shows in its ring of rocks, Isaac turns his back to it and is dragged backwards into it in a spray of sand, and an Ant Lion attacks.
static voidscLamakanDesertSlipDownSand (void)On a river of sand in Lamakan Desert's third scene, the sand carries Isaac south, about a metatile every ten ticks, in a spray of sand, until something stops him.
static voidscLamakanDesertMeetManticore (void)Coming near the north-west passage of Lamakan Desert's third scene, once Reveal has parted its sandfall and shown the Manticore standing in it, Isaac stops short, startled, and backs away as the Manticore roars, lunges at him and settles back.
Sint32scInit (void)Entering Lamakan Desert sets the heat's limit, HEAT_LIMIT steps, hides the desert's secrets, and shows the heat gauge everywhere but in the cave.
static UNUSED voidscLamakanDesertUnusedWalkManticore (void)Unused: the Manticore walks to (168, 96), 4 pixels south of where Reveal shows it (168, 92), at the slow speed of scLamakanDesertMeetManticore's walk back, then plays its one-shot animation 2.
static voidscHeatGaugeDraw (void)Every tick: draws the heat gauge down the screen's left edge.

Variables

NameDescription
Sint16HeatGaugeVramSlotThe VRAM cache entry holding the gauge's tiles.
Uint8LamakanDesertUnusedAfterGaugeSlot [14]Unused: fourteen bytes nothing reads or writes.
MENU_SPRHeatGaugeSprites [5]The gauge's five sprites: four 16x32 ones down the screen's left edge and a 16x16 cap at its foot.
Uint8LamakanDesertUnusedAfterGaugeSprites [20]Unused: twenty bytes nothing reads or writes.
Uint8HeatGaugeTileBuffer [2 * HEAT_GAUGE_TILE_BYTES]The gauge's decoded tiles, which each tick's drawing starts from.
Sint16HeatGaugeHeld1 while the gauge is held on screen (scHeatGaugeSetHeld).
extern const FIXEDLamakanDesertEastOases []The middles of the oases, where a leader stepping into one bathes: x and z of each, in 16.16 fixed-point pixels.
extern const FIXEDLamakanDesertSmogOases []
extern const FIXEDLamakanDesertOasesOther []
extern SCENE_ENTRANCELamakanDesertEntrancesOther []
extern SCENE_ENTRANCELamakanDesertEastEntrances []
extern SCENE_ENTRANCELamakanDesertSmogEntrances []
extern SCENE_ENTRANCELamakanDesertManticoreEntrances []
extern SCENE_ENTRANCELamakanDesertCaveEntrances []
extern Uint32LamakanDesertExits []
extern ACTOR_PLACELamakanDesertActorPlacementsOther []
extern ACTOR_PLACELamakanDesertEastActorPlacements []
extern ACTOR_PLACELamakanDesertSmogActorPlacements []
extern ACTOR_PLACELamakanDesertManticoreActorPlacements []
extern CUELamakanDesertCues []The four scenes' one cue table.
extern Sint16HeatGaugeLevelHow full the heat gauge is, 0 to HEAT_GAUGE_LEVELS.
extern Sint16HeatGaugeShownHow much of the gauge is on the screen, 0 to 2, 8 pixels a step.
extern Sint16HeatGaugeFlashOnce the heat strikes, the level the gauge drains from, 8 a tick.
const Sint32 *FieldEffectDurationScripts []The resident copy of the scripts EFFECT_SCRIPT_MASK picks, by enum EFFECT_DURATION.

Description

Lamakan Desert, south of Lama Temple: four scenes that share one cue table, built around a heat gauge and the secrets Reveal uncovers.

The party crosses it from the east. The first scene (SceneIdLamakanDesertEast) is entered from the World Map in its south-east corner and leads north. The second, the widest (SceneIdLamakanDesertSmog), is scattered with rings of rocks, cacti and skeletons, and hides Smog, a Jupiter Djinni; it leads out west. The third (SceneIdLamakanDesertManticore) has rivers of sand that carry the party south, with sandfalls at their heads. Behind two of them lie passages into a cave (SceneIdLamakanDesertCave): the east and south ones into a small cavern, and the north-west one, which the Manticore guards, into a corridor that leads out west to the World Map. The cave has no heat gauge.

Walking on the sand fills a thermometer down the screen's left edge (scHeatGaugeDraw), faster on the run. As it passes a quarter, a half and three quarters, Garet, Ivan or Mia complains of the heat (scLamakanDesertComplainAboutHeat); when it is full, the party loses a quarter of its HP and it starts again. The steps are counted in MainRoutineStateWork.hazardSteps against HEAT_LIMIT.

Most rings of rocks hide something only Reveal shows: an oasis, an Ant Lion's pit, a chest or a Psynergy Stone, and in the second scene Smog. On entry each hidden patch of the map is saved aside and covered with plain sand under a shimmering heat haze (scRevealHideSecrets); Reveal brings them back and stills the haze (scRevealShowSecrets) until it wears off. The oases and the pits are there only while Reveal shines, as the monks of Lama Temple warn: Reveal will help you find oases to cool you against the heat. Stepping into an oasis, Isaac hops in and bathes until the heat has drained (scLamakanDesertBatheInOasis); stepping by a pit, he is pulled into it and an Ant Lion attacks (scLamakanDesertFallIntoPit).

In the third scene Reveal also parts the sandfalls over the passages, and shows the Manticore standing in the north-west one. Until it is beaten (FLAG_LAMAKAN_MANTICORE_BEATEN), coming near makes it roar and lunge at Isaac (scLamakanDesertMeetManticore), and talking to it starts its battle.

Leaving the corridor for the World Map while Hsu is still trapped at the Alpine Crossing (FLAG_HSU_RESCUED clear) frees him without the party: it sets FLAG_HSU_RESCUED and FLAG_HSU_RESCUED_WITHOUT_PARTY, and in Xian Feizhi then thanks Master Hama alone (lacquer_rooms_b.c).

Macros in detail

HEAT_GAUGE_TILE_BYTES

#define HEAT_GAUGE_TILE_BYTES (36 * TILE_SIZE_4BPP)

The heat gauge's picture, 36 tiles in two columns of 18; its tile buffer holds two, the bar and then the tick laid over it.

Referenced by HeatGaugeTileBuffer, scHeatGaugeDraw() and scHeatGaugeStart().

Definition at line 57 of file lamakan_desert.c.

HEAT_GAUGE_LEVELS

#define HEAT_GAUGE_LEVELS 120

The heat gauge's levels: the party's steps scaled from 0 to HEAT_GAUGE_LEVELS by the area's hazard limit.

Referenced by scHeatGaugeDraw().

Definition at line 60 of file lamakan_desert.c.

HEAT_GAUGE_WIDTH

#define HEAT_GAUGE_WIDTH 16

The gauge's place on the screen: 16 pixels wide, from line 8 down four 16x32 sprites and a 16x16 bulb.

Referenced by scHeatGaugeDraw().

Definition at line 63 of file lamakan_desert.c.

HEAT_GAUGE_TOP

#define HEAT_GAUGE_TOP 8

Referenced by scHeatGaugeDraw().

Definition at line 64 of file lamakan_desert.c.

HEAT_GAUGE_HEIGHT

#define HEAT_GAUGE_HEIGHT (4 * 32 + 16)

Referenced by scHeatGaugeDraw().

Definition at line 65 of file lamakan_desert.c.

HEAT_GAUGE_TUBE_TOP

#define HEAT_GAUGE_TUBE_TOP 12

The gauge's tube in its pictures, from the row below its cap to the row above its bulb; the heat fills it from below.

Referenced by scHeatGaugeDraw().

Definition at line 68 of file lamakan_desert.c.

HEAT_GAUGE_TUBE_FOOT

#define HEAT_GAUGE_TUBE_FOOT 128

Referenced by scHeatGaugeDraw().

Definition at line 69 of file lamakan_desert.c.

HEAT_GAUGE_ROW_WORD

#define HEAT_GAUGE_ROW_WORD(row) ((row) / 8 * 16 + (row) % 8)

The word of the gauge's tiles that holds the left half of pixel row row: each band of eight rows is a left tile, then a right one, eight words each.

Referenced by scHeatGaugeDraw().

Definition at line 72 of file lamakan_desert.c.

HEAT_GAUGE_PALETTE

#define HEAT_GAUGE_PALETTE 14

The sprite palette the gauge is drawn in, its colour for the tube's empty part (black), and the first of the six colours the heat reddens.

Referenced by scHeatGaugeDraw().

Definition at line 75 of file lamakan_desert.c.

HEAT_GAUGE_EMPTY_COLOR

#define HEAT_GAUGE_EMPTY_COLOR 14

Referenced by scHeatGaugeDraw().

Definition at line 76 of file lamakan_desert.c.

HEAT_GAUGE_TINTED_COLOR

#define HEAT_GAUGE_TINTED_COLOR 6

Referenced by scHeatGaugeDraw().

Definition at line 77 of file lamakan_desert.c.

HEAT_GAUGE_TINTED_COLORS

#define HEAT_GAUGE_TINTED_COLORS 6

Referenced by scHeatGaugeDraw().

Definition at line 78 of file lamakan_desert.c.

HEAT_GAUGE_GREEN_FLICKER

#define HEAT_GAUGE_GREEN_FLICKER 32

The most the gauge's green brightens, at full heat, on its flickering ticks past half.

Referenced by scHeatGaugeDraw().

Definition at line 81 of file lamakan_desert.c.

HEAT_LIMIT

#define HEAT_LIMIT 600

The steps of heat at which the party loses HEAT_DAMAGE_PERCENT of its HP and the count starts again (MainRoutineStateWork.hazardLimit).

Referenced by scInit().

Definition at line 85 of file lamakan_desert.c.

HEAT_DAMAGE_PERCENT

#define HEAT_DAMAGE_PERCENT 25

Referenced by scInit().

Definition at line 86 of file lamakan_desert.c.

SECRET_WIDTH

#define SECRET_WIDTH 4

A secret of the east and Smog scenes is a 4-by-2 patch of the map grid. On entry each is saved to a spare patch of its own on row 126, numbered from the west from column 64; hidden, it is drawn over with the plain sand at (70, 68); Reveal copies it back.

Definition at line 224 of file lamakan_desert.c.

SECRET_HEIGHT

#define SECRET_HEIGHT 2

Definition at line 225 of file lamakan_desert.c.

SECRET_SPARE_FIRST_COLUMN

#define SECRET_SPARE_FIRST_COLUMN 64

Definition at line 226 of file lamakan_desert.c.

SECRET_SPARE_COLUMN

#define SECRET_SPARE_COLUMN(secret)

Definition at line 227 of file lamakan_desert.c.

SECRET_SPARE_ROW

#define SECRET_SPARE_ROW 126

Definition at line 229 of file lamakan_desert.c.

PLAIN_SAND_COLUMN

#define PLAIN_SAND_COLUMN 70

Definition at line 230 of file lamakan_desert.c.

PLAIN_SAND_ROW

#define PLAIN_SAND_ROW 68

Definition at line 231 of file lamakan_desert.c.

SAVE_SECRET

#define SAVE_SECRET(secret, column, row)

Saves the secret whose top-left metatile is (column, row) to its spare patch.

Referenced by scInit().

Definition at line 233 of file lamakan_desert.c.

HIDE_SECRET

#define HIDE_SECRET(column, row)

Draws plain sand over a secret.

Referenced by scRevealHideSecrets().

Definition at line 241 of file lamakan_desert.c.

SHOW_SECRET

#define SHOW_SECRET(secret, column, row)

Copies a secret back from its spare patch.

Referenced by scRevealShowSecrets().

Definition at line 249 of file lamakan_desert.c.

HIDE_SECRET_SOUTH_ROW

#define HIDE_SECRET_SOUTH_ROW(column, row)

A pit's secret also changes the ground a row further south: hidden, the row two below the patch's top takes the sand's ground; shown, the two rows from one below its top take the ground of the saved patch's two rows.

Referenced by scRevealHideSecrets().

Definition at line 259 of file lamakan_desert.c.

SHOW_SECRET_SOUTH_ROWS

#define SHOW_SECRET_SOUTH_ROWS(secret, column, row)

Referenced by scRevealShowSecrets().

Definition at line 262 of file lamakan_desert.c.

PIT_SEARCH_DISTANCE

#define PIT_SEARCH_DISTANCE (1 << 20)

The distance in pixels scLamakanDesertFallIntoPit's search for the nearest pit starts from, farther than any pit can be.

Referenced by scLamakanDesertFallIntoPit().

Definition at line 962 of file lamakan_desert.c.

FIELD_EFFECT_DURATION_SCRIPTS_READ_ONLY

#define FIELD_EFFECT_DURATION_SCRIPTS_READ_ONLY

Lamakan Desert keeps its duration scripts with its read-only data.

Definition at line 1474 of file lamakan_desert.c.

Enumerations in detail

anonymous enum

enum { HEAT_QUARTER_PERCENT, HEAT_HALF_PERCENT, HEAT_THREE_QUARTERS_PERCENT }

The gauge's marks, in percent of HEAT_LIMIT, past which Garet, Ivan or Mia complains of the heat.

EnumeratorValueDescription
HEAT_QUARTER_PERCENT25
HEAT_HALF_PERCENT50
HEAT_THREE_QUARTERS_PERCENT75

Definition at line 90 of file lamakan_desert.c.

LAMAKAN_DESERT_RAISED_CUE

enum LAMAKAN_DESERT_RAISED_CUE

The values scHeatGaugeRaiseQuarterCues raises as the heat gauge passes each mark.

EnumeratorValueDescription
LAMAKAN_DESERT_RAISED_HEAT_QUARTER1
LAMAKAN_DESERT_RAISED_HEAT_HALF2
LAMAKAN_DESERT_RAISED_HEAT_THREE_QUARTERS3

Definition at line 136 of file lamakan_desert.c.

LAMAKAN_DESERT_METATILE_BEHAVIOR

enum LAMAKAN_DESERT_METATILE_BEHAVIOR

The metatile behaviors of the desert's ground.

EnumeratorValueDescription
METATILE_BEHAVIOR_LAMAKAN_DESERT_OASIS20An oasis's water, in the patches Reveal shows.
METATILE_BEHAVIOR_LAMAKAN_DESERT_SAND21Sand, where each tick Isaac moves adds heat.
METATILE_BEHAVIOR_LAMAKAN_DESERT_PIT22The sand beside an Ant Lion's pit, also shown by Reveal.
METATILE_BEHAVIOR_LAMAKAN_DESERT_SLOPE30A river of sand, which carries Isaac south.
METATILE_BEHAVIOR_LAMAKAN_DESERT_TO_WORLD_MAP9The way out of the corridor behind the Manticore onto the World Map, at its west end, metatile (8, 19).
METATILE_BEHAVIOR_LAMAKAN_DESERT_MANTICORE40The sand before the north-west passage of the third scene, which the Manticore guards, once Reveal has parted the sandfall over it.

Definition at line 144 of file lamakan_desert.c.

anonymous enum

enum { FLAG_DESERT_SCRIPT_RUNNING, FLAG_SECRETS_REVEALED, FLAG_HEAT_QUARTER, FLAG_HEAT_HALF, … }

EnumeratorValueDescription
FLAG_DESERT_SCRIPT_RUNNINGFLAG_SCENE_TEMP(0x00)A bath, a pit or the Manticore is under way.
FLAG_SECRETS_REVEALEDFLAG_SCENE_TEMP(0x01)Reveal shows the desert's secrets.
FLAG_HEAT_QUARTERFLAG_AREA_TEMP(0x00)The heat gauge has passed a quarter, where the first complaints come.
FLAG_HEAT_HALFFLAG_AREA_TEMP(0x01)
FLAG_HEAT_THREE_QUARTERSFLAG_AREA_TEMP(0x02)
FLAG_GARET_COMPLAINEDFLAG_AREA_TEMP(0x03)Who has complained since the gauge last passed a mark: one per party member, in the order of their actors.
FLAG_IVAN_COMPLAINEDFLAG_AREA_TEMP(0x04)
FLAG_MIA_COMPLAINEDFLAG_AREA_TEMP(0x05)

Definition at line 169 of file lamakan_desert.c.

anonymous enum

enum { ACTOR_MANTICORE, ACTOR_FIRST_PIT, ACTOR_LAST_PIT, ACTOR_SMOG }

The actors, numbered in the order of each scene's actor placements from ACTOR_FIRST_PLACED. LamakanDesertEast to LamakanDesertManticore place the Manticore, then the LamakanDesertEast and LamakanDesertManticore one pit and LamakanDesertSmog all four pits and Smog. LamakanDesertCave places none.

EnumeratorValueDescription
ACTOR_MANTICOREACTOR_FIRST_PLACEDThe Manticore, until FLAG_LAMAKAN_MANTICORE_BEATEN. Talking to it starts its battle.
ACTOR_FIRST_PITACTOR_MANTICORE + 1The first of the Ant Lions' pits
ACTOR_LAST_PITACTOR_FIRST_PIT + 3Reveal shows, up to ACTOR_LAST_PIT.
ACTOR_SMOGACTOR_LAST_PIT + 1Smog, a Jupiter Djinni.

Definition at line 191 of file lamakan_desert.c.

anonymous enum

enum { ENCOUNTER_SLOT_ANT_LION, ENCOUNTER_SLOT_MANTICORE }

The monsters the pits and the Manticore set on the party, by their slots of ENCOUNTER_ZONE_SCRIPTED_MOGALL_ALTIN_LAMAKAN.

EnumeratorValueDescription
ENCOUNTER_SLOT_ANT_LION4
ENCOUNTER_SLOT_MANTICORE5

Definition at line 206 of file lamakan_desert.c.

anonymous enum

enum { FLAG_LAMAKAN_DESERT_FIRST_PSYNERGY_STONE, FLAG_LAMAKAN_DESERT_SECOND_PSYNERGY_STONE }

The desert's two Psynergy Stones, area temp flags. Each is back once the party has left Lamakan Desert.

EnumeratorValueDescription
FLAG_LAMAKAN_DESERT_FIRST_PSYNERGY_STONEFLAG_AREA_TEMP(0x50)
FLAG_LAMAKAN_DESERT_SECOND_PSYNERGY_STONEFLAG_AREA_TEMP(0x51)

Definition at line 214 of file lamakan_desert.c.

LAMAKAN_DESERT_EAST_SECRET

enum LAMAKAN_DESERT_EAST_SECRET

LamakanDesertEast's secrets, numbered as their spare patches are, each named for what Reveal uncovers in it: an oasis's pool (around its middle in LamakanDesertEastOases), a pit, or a treasure spot.

EnumeratorValueDescription
EAST_SECRET_OASIS_NORTH
EAST_SECRET_VULCAN_AXE
EAST_SECRET_PIT
EAST_SECRET_OASIS_SOUTHWEST
EAST_SECRET_OASIS_SOUTHEAST
EAST_SECRET_FIRST_PSYNERGY_STONE

Definition at line 273 of file lamakan_desert.c.

LAMAKAN_DESERT_SMOG_SECRET

enum LAMAKAN_DESERT_SMOG_SECRET

LamakanDesertSmog's secrets, the same way: five oases, the four pits of ACTOR_FIRST_PIT to ACTOR_LAST_PIT, Smog on TREASURE_SPOT_UNDER_SMOG, and the chests and Psynergy Stone.

EnumeratorValueDescription
SMOG_SECRET_OASIS_NORTHEAST
SMOG_SECRET_PIT_NORTH
SMOG_SECRET_LUCKY_PEPPER
SMOG_SECRET_SECOND_PSYNERGY_STONE
SMOG_SECRET_PIT_WEST
SMOG_SECRET_PIT_EAST
SMOG_SECRET_SMOG
SMOG_SECRET_OASIS_MIDDLE
SMOG_SECRET_777_COINS
SMOG_SECRET_OASIS_EAST
SMOG_SECRET_PIT_SOUTH
SMOG_SECRET_OASIS_SOUTHWEST
SMOG_SECRET_OASIS_SOUTH
SMOG_SECRET_POTION

Definition at line 286 of file lamakan_desert.c.

LAMAKAN_DESERT_TREASURE_SPOT

enum LAMAKAN_DESERT_TREASURE_SPOT

The desert's treasure spots, whose metatiles Reveal uncovers with their secrets: the chests and Psynergy Stones their examine cues find, and the metatile under Smog, which no examine cue answers. Each is sand underfoot as well.

EnumeratorValueDescription
TREASURE_SPOT_VULCAN_AXETREASURE_SPOT_FIRST_IDLamakanDesertEast
TREASURE_SPOT_FIRST_PSYNERGY_STONELamakanDesertEast
TREASURE_SPOT_LUCKY_PEPPERLamakanDesertSmog
TREASURE_SPOT_SECOND_PSYNERGY_STONELamakanDesertSmog
TREASURE_SPOT_UNDER_SMOGLamakanDesertSmog
TREASURE_SPOT_777_COINSLamakanDesertSmog
TREASURE_SPOT_POTIONLamakanDesertSmog
TREASURE_SPOT_MINTLamakanDesertManticore

Definition at line 308 of file lamakan_desert.c.

Functions in detail

scHeatGaugeStart

void scHeatGaugeStart(void)

Loads the gauge's tiles, claims VRAM for them and starts drawing it.

References HeatGaugeHeld, HeatGaugeShown, HeatGaugeTileBuffer, HeatGaugeTiles, HeatGaugeVramSlot, scFieldDecompressTaggedLZ(), scHeatGaugeDraw(), sySetTickEvent(), syVRAMCacheFindFreeEntry() and syVRAMCacheLoad().

Referenced by scInit().

Definition at lines 111 and 1457 of file lamakan_desert.c.

scHeatGaugeSetHeld

static void scHeatGaugeSetHeld(Uint16 held)

While held (1), the gauge stays on screen.

References HeatGaugeHeld.

Referenced by scLamakanDesertBatheInOasis() and scLamakanDesertMeetManticore().

Definition at lines 132 and 1468 of file lamakan_desert.c.

scLamakanDesertTalkToSmog

static void scLamakanDesertTalkToSmog(void)

Talking to Smog, the Jupiter Djinni Reveal uncovers in a ring of rocks east of the middle of Lamakan Desert's second scene, makes it join the party.

References fdDjinnJoinParty().

Referenced by LamakanDesertCues.

Definition at line 325 of file lamakan_desert.c.

scLamakanDesertKickUpSand

static UNREAD_RESULT scLamakanDesertKickUpSand(ACTOR *actor)

The update a leader pulled into an Ant Lion's pit runs: sand sounds every 8 ticks and a spray of sand every 16.

References Sint32, sySoundPlay() and TickCount.

Referenced by scLamakanDesertFallIntoPit().

Definition at line 334 of file lamakan_desert.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

Where the party can enter each of the four scenes.

References LamakanDesertCaveEntrances, LamakanDesertEastEntrances, LamakanDesertEntrancesOther, LamakanDesertManticoreEntrances, LamakanDesertSmogEntrances and MainRoutineStateWork.

Definition at line 364 of file lamakan_desert.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 387 of file lamakan_desert.c.

scGetExits

const Uint32 *scGetExits(void)

All four desert scenes share the packed exit table.

References LamakanDesertExits.

Definition at line 393 of file lamakan_desert.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

The pits, the Manticore and Smog of each scene.

References gmFlagSet(), LamakanDesertActorPlacementsOther, LamakanDesertEastActorPlacements, LamakanDesertManticoreActorPlacements, LamakanDesertSmogActorPlacements and MainRoutineStateWork.

Definition at line 399 of file lamakan_desert.c.

scLamakanDesertLeaveForTheWorldMap

static void scLamakanDesertLeaveForTheWorldMap(void)

Walking out of the west end of the cave corridor behind the Manticore (metatile (8, 19)) leaves Lamakan Desert for the World Map. If Hsu is still trapped at the Alpine Crossing, he is freed without the party from then on.

References fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), gmFlagSet(), syImportScriptSetExitRequest() and sySoundPlay().

Referenced by LamakanDesertCues.

Definition at line 437 of file lamakan_desert.c.

scGetCues

const CUE *scGetCues(void)

The desert's cues, the same in every scene.

References LamakanDesertCues.

Definition at line 454 of file lamakan_desert.c.

scRevealHideSecrets

static UNREAD_RESULT scRevealHideSecrets(void)

Reveal wears off, and the desert's secrets sink under the sand again.

References fdLineScrollStartWave(), fdMapGridCopyMetatileAttributeRect(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatiles(), fdMapGridCopyMetatilesLayered(), fdTreasureSpotSetActorPos(), gmFlagClear(), MainRoutineStateWork and Sint32.

Referenced by LamakanDesertCues and scInit().

Definition at line 460 of file lamakan_desert.c.

scRevealShowSecrets

static UNREAD_RESULT scRevealShowSecrets(void)

Casting Reveal uncovers what the desert's sand hides.

References fdLineScrollStop(), fdMapGridCopyMetatileAttributes(), fdMapGridCopyMetatiles(), fdTreasureSpotMoveLeaderAway(), fdTreasureSpotSetPos(), gmFlagClear(), gmFlagGet(), gmFlagSet(), MainRoutineStateWork and Sint32.

Referenced by LamakanDesertCues.

Definition at line 543 of file lamakan_desert.c.

scLamakanDesertFightManticore

static void scLamakanDesertFightManticore(void)

Talking to the Manticore before the north-west passage of Lamakan Desert's third scene makes it rear up and starts the battle. Afterwards the party stands where it fought, below the opened passage, and the Manticore is gone for good (LAMAKAN_DESERT_MANTICORE_AFTER_FIGHT_MANTICORE).

References fdActorRunRepeatedMotion(), fdRequestBattleFromEncounterTable() and fdScriptSetAfterBattleDestination().

Referenced by LamakanDesertCues.

Definition at line 624 of file lamakan_desert.c.

scLamakanDesertComplainAboutHeat

static void scLamakanDesertComplainAboutHeat(Sint32 mark)

As Lamakan Desert's heat gauge passes a quarter, a half and three quarters, Garet, Ivan or Mia, picked at random, complains of the heat.

References fdScriptEnd(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptStart(), gmFlagGet(), gmFlagSet() and Sint32.

Referenced by LamakanDesertCues.

Definition at line 637 of file lamakan_desert.c.

scHeatGaugeRaiseQuarterCues

static void scHeatGaugeRaiseQuarterCues(void)

Every tick: raises LAMAKAN_DESERT_RAISED_HEAT_QUARTER to _THREE_QUARTERS as the gauge passes each quarter, and clears each mark and the complaints when the gauge drops back below it. Nothing is raised while Reveal is showing the pits.

References fdScriptGetFlag(), gmFlagClear(), gmFlagGet(), gmFlagSet(), MainRoutineStateWork, Sint32 and state.

Referenced by scInit().

Definition at line 670 of file lamakan_desert.c.

scLamakanDesertPixelsToOasis

static Sint32 scLamakanDesertPixelsToOasis(const Sint32 *pos, const Sint32 *oasis)

The distance in whole pixels across the ground from a position (x, height, z) to an oasis's middle (x, z).

References Sint32 and sySquartIWRAM().

Referenced by scLamakanDesertBatheInOasis().

Definition at line 722 of file lamakan_desert.c.

scLamakanDesertBatheInOasis

static void scLamakanDesertBatheInOasis(void)

Stepping into an oasis in Lamakan Desert, which only Reveal shows in its ring of rocks, Isaac hops into the middle of the pool and bathes with a heart over his head while the heat gauge drains, for at least a second, then hops out.

References fdActorGet(), fdActorSetAnimation(), fdActorShowEmote(), fdScriptWait(), gmFlagSet(), LamakanDesertEastOases, LamakanDesertOasesOther, LamakanDesertSmogOases, MainRoutineStateWork, scActorWaitBelowHeight(), scFieldActorSetMoveTargetFX(), scHeatGaugeSetHeld(), scLamakanDesertPixelsToOasis(), Sint32, state, sySoundPlay() and sySynch().

Referenced by LamakanDesertCues.

Definition at line 736 of file lamakan_desert.c.

scHeatGaugeCountStep

static void scHeatGaugeCountStep(void)

Walking on Lamakan Desert's sand fills the heat gauge and kicks up little puffs of dust at Isaac's feet, bigger and more often on the run. Every tick he moves adds a step of heat, running or not; on the rivers of sand it adds heat without the dust.

References fdActorGet(), MainRoutineStateWork, Sint32, state and TickCount.

Referenced by LamakanDesertCues, scLamakanDesertMeetManticore() and scLamakanDesertSlipDownSand().

Definition at line 887 of file lamakan_desert.c.

scLamakanDesertFallIntoPit

static void scLamakanDesertFallIntoPit(void)

Stepping beside an Ant Lion's pit in Lamakan Desert, which only Reveal shows in its ring of rocks, Isaac turns his back to it and is dragged backwards into it in a spray of sand, and an Ant Lion attacks.

References fdActorFaceActor(), fdActorGet(), fdActorSetAnimation(), fdActorSetAnimationSpeedById(), fdActorSetAttachedEffect(), fdActorSetDestination(), fdActorShowEmote(), fdActorStartRepeatedMotion(), fdRequestBattleFromEncounterTable(), fdScriptWait(), gmFlagSet(), MainRoutineStateWork, scLamakanDesertKickUpSand() and Sint32.

Referenced by LamakanDesertCues.

Definition at line 967 of file lamakan_desert.c.

scLamakanDesertSlipDownSand

static void scLamakanDesertSlipDownSand(void)

On a river of sand in Lamakan Desert's third scene, the sand carries Isaac south, about a metatile every ten ticks, in a spray of sand, until something stops him. Where the river drops over a ledge, he gives a start and leaps down.

References fdActorGet(), fdActorSelectAnimation(), fdActorSetAttachedEffect(), fdActorWaitForMove(), MainRoutineStateWork, scFieldActorCheckMovementCollision(), scFieldActorSetMoveTargetFX(), scHeatGaugeCountStep(), Sint32, state, sySynch() and TickCount.

Referenced by LamakanDesertCues.

Definition at line 1045 of file lamakan_desert.c.

scLamakanDesertMeetManticore

static void scLamakanDesertMeetManticore(void)

Coming near the north-west passage of Lamakan Desert's third scene, once Reveal has parted its sandfall and shown the Manticore standing in it, Isaac stops short, startled, and backs away as the Manticore roars, lunges at him and settles back. It happens each time until the Manticore is beaten.

References fdActorFaceActor(), fdActorGet(), fdActorRunRepeatedMotion(), fdActorSetAnimation(), fdActorSetAttachedEffect(), fdActorSetDestinationOffset(), fdActorStartRepeatedMotion(), fdActorWaitForMoveById(), fdActorWalkToAndWait(), fdScriptGetFlag(), fdScriptWait(), gmFlagGet(), gmFlagSet(), scHeatGaugeCountStep(), scHeatGaugeSetHeld(), state and sySoundPlay().

Referenced by LamakanDesertCues.

Definition at line 1133 of file lamakan_desert.c.

scInit

Sint32 scInit(void)

Entering Lamakan Desert sets the heat's limit, HEAT_LIMIT steps, hides the desert's secrets, and shows the heat gauge everywhere but in the cave.

References fdMapGridCopyMetatiles(), fdQueueMusic(), MainRoutineStateWork, scHeatGaugeRaiseQuarterCues(), scHeatGaugeStart(), scRevealHideSecrets(), Sint32 and sySetTickEvent().

Definition at line 1193 of file lamakan_desert.c.

scLamakanDesertUnusedWalkManticore

static UNUSED void scLamakanDesertUnusedWalkManticore(void)

Unused: the Manticore walks to (168, 96), 4 pixels south of where Reveal shows it (168, 92), at the slow speed of scLamakanDesertMeetManticore's walk back, then plays its one-shot animation 2. Nothing calls it.

References fdActorSetAnimation() and fdActorWalkToAndWait().

Definition at line 1248 of file lamakan_desert.c.

scHeatGaugeDraw

static void scHeatGaugeDraw(void)

Every tick: draws the heat gauge down the screen's left edge. It slides off the screen, 8 pixels a tick, while the field handles a request, unless it is held, and back on afterwards.

References gmFlagGet(), HeatGaugeFlash, HeatGaugeHeld, HeatGaugeLevel, HeatGaugePalette, HeatGaugeShown, HeatGaugeSprites, HeatGaugeTileBuffer, HeatGaugeVramSlot, MainRoutineStateWork, pixel, pixels, Sint32, state, syDMAXCopy(), syHeapAllocate(), syHeapRelease(), syIOWriteQueueStore32(), syOAMAddSpriteAtDepth(), syVRAMCacheLoad(), syVRAMCacheReleaseVRAM(), TickCount and VramCacheEntries.

Referenced by scHeatGaugeStart().

Definition at line 1259 of file lamakan_desert.c.

Variables in detail

HeatGaugeVramSlot

Sint16 HeatGaugeVramSlot

The VRAM cache entry holding the gauge's tiles.

Referenced by scHeatGaugeDraw() and scHeatGaugeStart().

Definition at line 98 of file lamakan_desert.c.

LamakanDesertUnusedAfterGaugeSlot

Uint8 LamakanDesertUnusedAfterGaugeSlot[14]

Unused: fourteen bytes nothing reads or writes.

Definition at line 100 of file lamakan_desert.c.

HeatGaugeSprites

MENU_SPR HeatGaugeSprites[5]

The gauge's five sprites: four 16x32 ones down the screen's left edge and a 16x16 cap at its foot.

Referenced by scHeatGaugeDraw().

Definition at line 103 of file lamakan_desert.c.

LamakanDesertUnusedAfterGaugeSprites

Uint8 LamakanDesertUnusedAfterGaugeSprites[20]

Unused: twenty bytes nothing reads or writes.

Definition at line 105 of file lamakan_desert.c.

HeatGaugeTileBuffer

Uint8 HeatGaugeTileBuffer[2 * HEAT_GAUGE_TILE_BYTES]

The gauge's decoded tiles, which each tick's drawing starts from.

Referenced by scHeatGaugeDraw() and scHeatGaugeStart().

Definition at line 107 of file lamakan_desert.c.

HeatGaugeHeld

Sint16 HeatGaugeHeld

1 while the gauge is held on screen (scHeatGaugeSetHeld).

Referenced by scHeatGaugeDraw(), scHeatGaugeSetHeld() and scHeatGaugeStart().

Definition at line 109 of file lamakan_desert.c.

LamakanDesertEastOases

extern const FIXED LamakanDesertEastOases[]

const Sint32 LamakanDesertEastOases[]

The middles of the oases, where a leader stepping into one bathes: x and z of each, in 16.16 fixed-point pixels.

Each map's oases, the middle of each as x, z pairs.

References Sint32.

Referenced by scLamakanDesertBatheInOasis().

Definition at lines 114 and 1479 of file lamakan_desert.c.

LamakanDesertSmogOases

extern const FIXED LamakanDesertSmogOases[]

const Sint32 LamakanDesertSmogOases[]

References Sint32.

Referenced by scLamakanDesertBatheInOasis().

Definition at lines 115 and 1485 of file lamakan_desert.c.

LamakanDesertOasesOther

extern const FIXED LamakanDesertOasesOther[]

const Sint32 LamakanDesertOasesOther[]

References Sint32.

Referenced by scLamakanDesertBatheInOasis().

Definition at lines 116 and 1493 of file lamakan_desert.c.

LamakanDesertEntrancesOther

extern SCENE_ENTRANCE LamakanDesertEntrancesOther[]

SCENE_ENTRANCE LamakanDesertEntrancesOther[]

Referenced by scGetEntrances().

Definition at lines 117 and 1504 of file lamakan_desert.c.

LamakanDesertEastEntrances

extern SCENE_ENTRANCE LamakanDesertEastEntrances[]

SCENE_ENTRANCE LamakanDesertEastEntrances[]

Referenced by scGetEntrances().

Definition at lines 118 and 1510 of file lamakan_desert.c.

LamakanDesertSmogEntrances

extern SCENE_ENTRANCE LamakanDesertSmogEntrances[]

SCENE_ENTRANCE LamakanDesertSmogEntrances[]

Referenced by scGetEntrances().

Definition at lines 119 and 1519 of file lamakan_desert.c.

LamakanDesertManticoreEntrances

extern SCENE_ENTRANCE LamakanDesertManticoreEntrances[]

SCENE_ENTRANCE LamakanDesertManticoreEntrances[]

Referenced by scGetEntrances().

Definition at lines 120 and 1528 of file lamakan_desert.c.

LamakanDesertCaveEntrances

extern SCENE_ENTRANCE LamakanDesertCaveEntrances[]

SCENE_ENTRANCE LamakanDesertCaveEntrances[]

Referenced by scGetEntrances().

Definition at lines 121 and 1543 of file lamakan_desert.c.

LamakanDesertExits

extern Uint32 LamakanDesertExits[]

Uint32 LamakanDesertExits[]

Referenced by scGetExits().

Definition at lines 122 and 1556 of file lamakan_desert.c.

LamakanDesertActorPlacementsOther

extern ACTOR_PLACE LamakanDesertActorPlacementsOther[]

ACTOR_PLACE LamakanDesertActorPlacementsOther[]

Referenced by scGetActorPlacements().

Definition at lines 123 and 1586 of file lamakan_desert.c.

LamakanDesertEastActorPlacements

extern ACTOR_PLACE LamakanDesertEastActorPlacements[]

ACTOR_PLACE LamakanDesertEastActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 124 and 1590 of file lamakan_desert.c.

LamakanDesertSmogActorPlacements

extern ACTOR_PLACE LamakanDesertSmogActorPlacements[]

ACTOR_PLACE LamakanDesertSmogActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 125 and 1598 of file lamakan_desert.c.

LamakanDesertManticoreActorPlacements

extern ACTOR_PLACE LamakanDesertManticoreActorPlacements[]

ACTOR_PLACE LamakanDesertManticoreActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 126 and 1614 of file lamakan_desert.c.

LamakanDesertCues

extern CUE LamakanDesertCues[]

CUE LamakanDesertCues[]

The four scenes' one cue table. Its exit rows keep their numbers: each takes the exit of that number in whichever scene the party is in, which is a different way out in each (LAMAKAN_DESERT_EAST_WORLD_MAP, LAMAKAN_DESERT_SMOG_LAMAKAN_DESERT_EAST and the others).

References scHeatGaugeCountStep(), scLamakanDesertBatheInOasis(), scLamakanDesertComplainAboutHeat(), scLamakanDesertFallIntoPit(), scLamakanDesertFightManticore(), scLamakanDesertLeaveForTheWorldMap(), scLamakanDesertMeetManticore(), scLamakanDesertSlipDownSand(), scLamakanDesertTalkToSmog(), scRevealHideSecrets() and scRevealShowSecrets().

Referenced by scGetCues().

Definition at lines 127 and 1625 of file lamakan_desert.c.

HeatGaugeLevel

extern Sint16 HeatGaugeLevel

Sint16 HeatGaugeLevel

How full the heat gauge is, 0 to HEAT_GAUGE_LEVELS.

Referenced by scHeatGaugeDraw().

Definition at lines 128 and 1688 of file lamakan_desert.c.

HeatGaugeShown

extern Sint16 HeatGaugeShown

Sint16 HeatGaugeShown

How much of the gauge is on the screen, 0 to 2, 8 pixels a step.

Referenced by scHeatGaugeDraw() and scHeatGaugeStart().

Definition at lines 129 and 1691 of file lamakan_desert.c.

HeatGaugeFlash

extern Sint16 HeatGaugeFlash

Sint16 HeatGaugeFlash

Once the heat strikes, the level the gauge drains from, 8 a tick.

Referenced by scHeatGaugeDraw().

Definition at lines 130 and 1694 of file lamakan_desert.c.

FieldEffectDurationScripts

const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

Definition at line 1498 of file lamakan_desert.c.

On this page

MacrosEnumerationsFunctionsVariablesDescriptionMacros in detailHEAT_GAUGE_TILE_BYTESHEAT_GAUGE_LEVELSHEAT_GAUGE_WIDTHHEAT_GAUGE_TOPHEAT_GAUGE_HEIGHTHEAT_GAUGE_TUBE_TOPHEAT_GAUGE_TUBE_FOOTHEAT_GAUGE_ROW_WORDHEAT_GAUGE_PALETTEHEAT_GAUGE_EMPTY_COLORHEAT_GAUGE_TINTED_COLORHEAT_GAUGE_TINTED_COLORSHEAT_GAUGE_GREEN_FLICKERHEAT_LIMITHEAT_DAMAGE_PERCENTSECRET_WIDTHSECRET_HEIGHTSECRET_SPARE_FIRST_COLUMNSECRET_SPARE_COLUMNSECRET_SPARE_ROWPLAIN_SAND_COLUMNPLAIN_SAND_ROWSAVE_SECRETHIDE_SECRETSHOW_SECRETHIDE_SECRET_SOUTH_ROWSHOW_SECRET_SOUTH_ROWSPIT_SEARCH_DISTANCEFIELD_EFFECT_DURATION_SCRIPTS_READ_ONLYEnumerations in detailanonymous enumLAMAKAN_DESERT_RAISED_CUELAMAKAN_DESERT_METATILE_BEHAVIORanonymous enumanonymous enumanonymous enumanonymous enumLAMAKAN_DESERT_EAST_SECRETLAMAKAN_DESERT_SMOG_SECRETLAMAKAN_DESERT_TREASURE_SPOTFunctions in detailscHeatGaugeStartscHeatGaugeSetHeldscLamakanDesertTalkToSmogscLamakanDesertKickUpSandscGetEntrancesscGetExitRegionsscGetExitsscGetActorPlacementsscLamakanDesertLeaveForTheWorldMapscGetCuesscRevealHideSecretsscRevealShowSecretsscLamakanDesertFightManticorescLamakanDesertComplainAboutHeatscHeatGaugeRaiseQuarterCuesscLamakanDesertPixelsToOasisscLamakanDesertBatheInOasisscHeatGaugeCountStepscLamakanDesertFallIntoPitscLamakanDesertSlipDownSandscLamakanDesertMeetManticorescInitscLamakanDesertUnusedWalkManticorescHeatGaugeDrawVariables in detailHeatGaugeVramSlotLamakanDesertUnusedAfterGaugeSlotHeatGaugeSpritesLamakanDesertUnusedAfterGaugeSpritesHeatGaugeTileBufferHeatGaugeHeldLamakanDesertEastOasesLamakanDesertSmogOasesLamakanDesertOasesOtherLamakanDesertEntrancesOtherLamakanDesertEastEntrancesLamakanDesertSmogEntrancesLamakanDesertManticoreEntrancesLamakanDesertCaveEntrancesLamakanDesertExitsLamakanDesertActorPlacementsOtherLamakanDesertEastActorPlacementsLamakanDesertSmogActorPlacementsLamakanDesertManticoreActorPlacementsLamakanDesertCuesHeatGaugeLevelHeatGaugeShownHeatGaugeFlashFieldEffectDurationScripts