Alchemy
Loading...
Searching...
No Matches

title.c File Reference

The title overlay: the Golden Sun logo and its sprites revealed over the title screen. More...

Go to the source code of this file.

Functions

static void Title_RevealScreen (s32 unused)
 Prepares the logo, reveals its sprites and then opens the screen transition.
static void Title_LoadBackground (void)
 Loads the logo palette and tiles, builds its tilemap and resets scrolling.
u8 * Title_GetEntrances (void)
s32 SceneData_ReturnZero (void)
u8 * Title_GetExits (void)
u8 * Title_GetPlacements (void)
 The title overlay has no placed field actors.
u8 * Title_GetEvents (void)
 The title overlay has no field events.
s32 Title_Run (void)
 Routes the logo, completion presentation and new-game title entrances.
static void Title_LoadSprites (s32 unused)
 Decodes the language-specific title sprites and uploads their palette and tiles.
static void Title_UpdateSpriteReveal (void)
 Reveals successive sprite columns, flickering each newly reached column.

Variables

struct SceneEntrance gTitleEntrances []
u32 gTitleExits []
struct ScenePlacement gTitlePlacements []
struct SceneEvent gTitleEvents []
s16 gTitleVramBlock = -1

Detailed Description

The title overlay: the Golden Sun logo and its sprites revealed over the title screen.

Definition in file title.c.

Function Documentation

◆ Title_RevealScreen()

void Title_RevealScreen ( s32 unused)
static

Prepares the logo, reveals its sprites and then opens the screen transition.

Definition at line 241 of file title.c.

Referenced by Title_RevealScreen(), and Title_Run().

◆ Title_LoadBackground()

void Title_LoadBackground ( void )
static

Loads the logo palette and tiles, builds its tilemap and resets scrolling.

Definition at line 279 of file title.c.

Referenced by Title_LoadBackground(), and Title_RevealScreen().

◆ Title_GetEntrances()

u8 * Title_GetEntrances ( void )

Definition at line 48 of file title.c.

Referenced by Title_GetEntrances().

◆ SceneData_ReturnZero()

s32 SceneData_ReturnZero ( void )

Definition at line 50 of file title.c.

◆ Title_GetExits()

u8 * Title_GetExits ( void )

Definition at line 52 of file title.c.

Referenced by Title_GetExits().

◆ Title_GetPlacements()

u8 * Title_GetPlacements ( void )

The title overlay has no placed field actors.

Definition at line 55 of file title.c.

Referenced by Title_GetPlacements().

◆ Title_GetEvents()

u8 * Title_GetEvents ( void )

The title overlay has no field events.

Definition at line 58 of file title.c.

Referenced by Title_GetEvents().

◆ Title_Run()

s32 Title_Run ( void )

Routes the logo, completion presentation and new-game title entrances.

Definition at line 61 of file title.c.

Referenced by Title_Run().

◆ Title_LoadSprites()

void Title_LoadSprites ( s32 unused)
static

Decodes the language-specific title sprites and uploads their palette and tiles.

Definition at line 137 of file title.c.

Referenced by Title_LoadSprites(), and Title_RevealScreen().

◆ Title_UpdateSpriteReveal()

void Title_UpdateSpriteReveal ( void )
static

Reveals successive sprite columns, flickering each newly reached column.

Definition at line 171 of file title.c.

Referenced by Title_RevealScreen(), and Title_UpdateSpriteReveal().

Variable Documentation

◆ gTitleEntrances

struct SceneEntrance gTitleEntrances[]
Initial value:
= {
{0, CONDITION_ALWAYS, 0, 0, 0, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
}
@ SCENE_TABLE_END
Definition field_scene.h:43
@ CONDITION_ALWAYS
Definition field_scene.h:44
@ FACING_SOUTH
Definition field_scene.h:28

Definition at line 322 of file title.c.

Referenced by Title_GetEntrances().

◆ gTitleExits

u32 gTitleExits[]
Initial value:
= {
}
#define SCENE_EXITS(scene)
Definition field_scene.h:72

Definition at line 327 of file title.c.

Referenced by Title_GetExits().

◆ gTitlePlacements

struct ScenePlacement gTitlePlacements[]
Initial value:
= {
}

Definition at line 331 of file title.c.

Referenced by Title_GetPlacements().

◆ gTitleEvents

struct SceneEvent gTitleEvents[]
Initial value:
= {
}
#define SCENE_EVENTS_END

Definition at line 335 of file title.c.

Referenced by Title_GetEvents().

◆ gTitleVramBlock

s16 gTitleVramBlock = -1

Definition at line 339 of file title.c.

Referenced by Title_LoadSprites(), and Title_UpdateSpriteReveal().