Skip to Content
The Alchemy Project

src/scene/shared/mercury_lighthouse_palette_cycle.c

Mercury Lighthouse and its entrance: the shimmer that runs up the pools' colours once Ply has been cast on the goddess (FLAG_MERCURY_LIGHTHOUSE_HEART_HONORED). More…

Included by mercury_lighthouse.c and mercury_lighthouse_entrance.c.

Macros

NameDescription
#defineSHIMMER_PALETTE 6The background palette, and its colours, the shimmer runs through.
#defineSHIMMER_FIRST_COLOR 9
#defineSHIMMER_LAST_COLOR 15
#defineSHIMMER_DIMMED_COLORS 3The top colours, which take the red level below them dimmed.

Functions

NameDescription
static voidscMercuryLighthouseCyclePalette (void)An event: every fifth tick SHIMMER_FIRST_COLOR's red level steps on by 4, and each colour above it takes the red level of the colour below it (the top SHIMMER_DIMMED_COLORS dimmed by four tenths), so the shimmer runs up the ramp; green and blue stay those of PaletteCycleGreen and PaletteCycleBlue.
static voidscMercuryLighthouseClearPalette (void)Before Ply is cast on the goddess: the shimmer's colours are black.

Description

Mercury Lighthouse and its entrance: the shimmer that runs up the pools' colours once Ply has been cast on the goddess (FLAG_MERCURY_LIGHTHOUSE_HEART_HONORED). Until then those colours are black.

Macros in detail

SHIMMER_PALETTE

#define SHIMMER_PALETTE 6

The background palette, and its colours, the shimmer runs through.

Referenced by scMercuryLighthouseClearPalette() and scMercuryLighthouseCyclePalette().

Definition at line 6 of file mercury_lighthouse_palette_cycle.c.

SHIMMER_FIRST_COLOR

#define SHIMMER_FIRST_COLOR 9

Referenced by scMercuryLighthouseClearPalette() and scMercuryLighthouseCyclePalette().

Definition at line 7 of file mercury_lighthouse_palette_cycle.c.

SHIMMER_LAST_COLOR

#define SHIMMER_LAST_COLOR 15

Referenced by scMercuryLighthouseClearPalette() and scMercuryLighthouseCyclePalette().

Definition at line 8 of file mercury_lighthouse_palette_cycle.c.

SHIMMER_DIMMED_COLORS

#define SHIMMER_DIMMED_COLORS 3

The top colours, which take the red level below them dimmed.

Referenced by scMercuryLighthouseCyclePalette().

Definition at line 10 of file mercury_lighthouse_palette_cycle.c.

Functions in detail

scMercuryLighthouseCyclePalette

static void scMercuryLighthouseCyclePalette(void)

An event: every fifth tick SHIMMER_FIRST_COLOR's red level steps on by 4, and each colour above it takes the red level of the colour below it (the top SHIMMER_DIMMED_COLORS dimmed by four tenths), so the shimmer runs up the ramp; green and blue stay those of PaletteCycleGreen and PaletteCycleBlue.

References PaletteCycleBlue, PaletteCycleGreen, PaletteCycleRed, Sint32 and TickCount.

Referenced by scInit() and scMercuryLighthouseEntranceActivateWithPly().

Definition at line 16 of file mercury_lighthouse_palette_cycle.c.

scMercuryLighthouseClearPalette

static void scMercuryLighthouseClearPalette(void)

Before Ply is cast on the goddess: the shimmer's colours are black.

Referenced by scInit().

Definition at line 46 of file mercury_lighthouse_palette_cycle.c.