Skip to Content
The Alchemy Project

src/scene/shared/teleport_circle_palette.c

The palette of a Teleport circle, which every scene with a circle keeps a copy of: the seven background palette entries the circle is drawn in, its colours and its shimmer's (teleport_circle_colors.c), and the entries each step of the shimmer paints those colours into, so that they run round the circle (scPaletteSetColorsFade). More…

Included by anemos_inner_sanctum.c, contigo.c, islet_cave.c, mars_lighthouse_aerie.c, mars_lighthouse_entrance.c, mars_lighthouse_hall.c and yampi_desert_cave.c.

Macros

NameDescription
#defineCIRCLE_ENTRY (n) (TELEPORT_CIRCLE_FIRST_ENTRY + (n))

Variables

NameDescription
Uint16TeleportCirclePaletteSlots []The entries the circle is drawn in.
Uint16TeleportCircleShimmerSlots []The shimmer's six steps: for each, the entries its colours go to.

Description

The palette of a Teleport circle, which every scene with a circle keeps a copy of: the seven background palette entries the circle is drawn in, its colours and its shimmer's (teleport_circle_colors.c), and the entries each step of the shimmer paints those colours into, so that they run round the circle (scPaletteSetColorsFade).

An includer defines TELEPORT_CIRCLE_FIRST_ENTRY, the first of its circle's seven entries, first.

Macros in detail

CIRCLE_ENTRY

#define CIRCLE_ENTRY(n) (TELEPORT_CIRCLE_FIRST_ENTRY + (n))

Referenced by TeleportCirclePaletteSlots.

Definition at line 10 of file teleport_circle_palette.c.

Variables in detail

TeleportCirclePaletteSlots

Uint16 TeleportCirclePaletteSlots[]

The entries the circle is drawn in.

Referenced by scContigoInitVillage(), scInit() and scMarsLighthouseAerieSetUpBeacon().

Definition at line 13 of file teleport_circle_palette.c.

TeleportCircleShimmerSlots

Uint16 TeleportCircleShimmerSlots[]

The shimmer's six steps: for each, the entries its colours go to.

Referenced by scContigoInitVillage(), scInit() and scMarsLighthouseAerieSetUpBeacon().

Definition at line 27 of file teleport_circle_palette.c.