src/scene/shared/jupiter_lighthouse_load_palettes.c
The Jupiter Lighthouse rooms' palettes, which most of them keep a copy of.
Included by jupiter_lighthouse_aerie.c, jupiter_lighthouse_aerie_beacon.c, jupiter_lighthouse_basement.c, jupiter_lighthouse_central_room.c, jupiter_lighthouse_cracked_floor.c, jupiter_lighthouse_entrance.c, jupiter_lighthouse_ground_floor.c, jupiter_lighthouse_left_tower_lower.c, jupiter_lighthouse_locked_doors.c, jupiter_lighthouse_right_tower_lower.c, jupiter_lighthouse_right_tower_upper.c, jupiter_lighthouse_side_halls.c, jupiter_lighthouse_terraces.c, jupiter_lighthouse_upper_hall.c and mars_lighthouse_towers.c.
Macros
| Name | Description | |
|---|---|---|
#define | UNLIT_PALETTE (CYCLE_PALETTE + 1) | The BG palette after the cycle's, which holds its colours as they are while the lighthouse is unlit. |
Functions
| Name | Description | |
|---|---|---|
void | scJupiterLighthouseLoadPalettes (Sint32 mode) | Keeps a copy of the room's cycling palette and of UNLIT_PALETTE, then starts the cycle once the lighthouse is lit (FLAG_JUPITER_LIGHTHOUSE_ACTIVATED); else the cycle's places show the unlit colours. |
Description
The Jupiter Lighthouse rooms' palettes, which most of them keep a copy of.
Macros in detail
UNLIT_PALETTE
#define UNLIT_PALETTE (CYCLE_PALETTE + 1)
The BG palette after the cycle's, which holds its colours as they are while the lighthouse is unlit.
Referenced by scJupiterLighthouseLoadPalettes().
Definition at line 8 of file jupiter_lighthouse_load_palettes.c.
Functions in detail
scJupiterLighthouseLoadPalettes
void scJupiterLighthouseLoadPalettes(Sint32 mode)
Keeps a copy of the room's cycling palette and of UNLIT_PALETTE, then starts
the cycle once the lighthouse is lit (FLAG_JUPITER_LIGHTHOUSE_ACTIVATED);
else the cycle's places show the unlit colours. mode is enum
LIGHTHOUSE_PALETTES.
References fdPaletteCycleStep(), fdScriptGetFlag(), PaletteCycleColors, PaletteCyclePausesInScripts, PaletteCycleUnlitColors, PaletteCycleUnlitPalette, scPaletteCycleSetTick(), Sint32, syDMAXCopy() and sySetEvent().
Referenced by scInit(), scJupiterLighthouseActivateTheLighthouse() and scPrepareMap().
Definition at line 14 of file jupiter_lighthouse_load_palettes.c.