Alchemy
Loading...
Searching...
No Matches

scales.c File Reference

Go to the source code of this file.

Variables

const u16 gUi_BounceScales [32]
 A sprite's pulse, as a scale where 256 is its normal size: it swells to 1.5 times and back over 32 steps.
const s8 gUi_BounceScalesTail [8]
 Nothing in the game reads these eight offsets.
const s8 gMenu_CursorBobOffsets [16]
 The selection cursor's bob: a 16-step wave of up to 3 pixels each way.
const u8 gPaletteGlow_WaveTable [121]
 The window colour wheel: one colour channel's level (0 to 31) over 96 hue steps.
const s8 gOptionMenu_SpeedFrames [3]
 The option screen's sprite frames for each setting's choices: message speed Slow, Normal and Fast; Speech Off and On; Auto-Sleep Off and On.
const s8 gOptionMenu_SpeechFrames [2]
const s8 gOptionMenu_SleepFrames [2]
const u8 gOptionMenu_HuePresets [6]
 The window colour presets SELECT cycles through on the option screen: the colour (hue) and the brightness of each.
const u8 gOptionMenu_BrightnessPresets [6]
const s8 gMenu_WorkspaceIconFrames [8]
 The sprite frame of each entry's icon in the system menu (Save your quest, Sleep, Change settings, and the debug entries after them).
const s16 gPortrait_CharacterMap [20]
 {character, portrait} pairs of the playable characters, ending in -1.
const s16 gPortrait_SpriteMap [100]
 {sprite, portrait} pairs of the other speakers, ending in -1: portrait n of this list is portrait 128 + n.

Variable Documentation

◆ gUi_BounceScales

const u16 gUi_BounceScales[32]
Initial value:
= {
256, 256, 260, 266, 274, 284, 294, 306,
320, 332, 344, 354, 364, 372, 378, 382,
384, 382, 378, 372, 364, 354, 344, 332,
320, 306, 294, 284, 274, 266, 260, 256,
}

A sprite's pulse, as a scale where 256 is its normal size: it swells to 1.5 times and back over 32 steps.

Definition at line 10 of file scales.c.

Referenced by AffineEffect_UpdateFrame(), Menu_RunCommandRow(), and RenderOutput_UpdateScaleAnimation().

◆ gUi_BounceScalesTail

const s8 gUi_BounceScalesTail[8]
Initial value:
= {
-15, -28, -36, -40, -36, -28, -15, 0,
}

Nothing in the game reads these eight offsets.

Definition at line 18 of file scales.c.

◆ gMenu_CursorBobOffsets

const s8 gMenu_CursorBobOffsets[16]
Initial value:
= {
0, 1, 2, 3, 2, 1, 0, 0, 0, -1, -2, -3, -2, -1, 0, 0,
}

The selection cursor's bob: a 16-step wave of up to 3 pixels each way.

Definition at line 23 of file scales.c.

Referenced by SelectionScreen_Draw().

◆ gPaletteGlow_WaveTable

const u8 gPaletteGlow_WaveTable[121]
Initial value:
= {
31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16,
15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
0, 3, 5, 8, 10, 13, 16, 18, 21, 23, 26, 28, 31, 34, 36, 39,
41, 44, 47, 49, 52, 54, 57, 60, 62,
}

The window colour wheel: one colour channel's level (0 to 31) over 96 hue steps.

Red reads it at the hue, green 32 steps later and blue 64 steps later. Nothing reads the 25 entries after the first 96.

Definition at line 30 of file scales.c.

Referenced by PaletteGlow_Update(), and WindowColor_ComputeTint().

◆ gOptionMenu_SpeedFrames

const s8 gOptionMenu_SpeedFrames[3]
Initial value:
= {
0x22, 0x23, 0x24,
}

The option screen's sprite frames for each setting's choices: message speed Slow, Normal and Fast; Speech Off and On; Auto-Sleep Off and On.

Definition at line 43 of file scales.c.

Referenced by Menu_RunWorkspaceOptions(), and OptionMenu_Open().

◆ gOptionMenu_SpeechFrames

const s8 gOptionMenu_SpeechFrames[2]
Initial value:
= {
0x25, 0x26,
}

Definition at line 47 of file scales.c.

Referenced by Menu_RunWorkspaceOptions(), and OptionMenu_Open().

◆ gOptionMenu_SleepFrames

const s8 gOptionMenu_SleepFrames[2]
Initial value:
= {
0x27, 0x28,
}

Definition at line 51 of file scales.c.

Referenced by Menu_RunWorkspaceOptions(), and OptionMenu_Open().

◆ gOptionMenu_HuePresets

const u8 gOptionMenu_HuePresets[6]
Initial value:
= {
4, 16, 8, 21, 1, 13,
}

The window colour presets SELECT cycles through on the option screen: the colour (hue) and the brightness of each.

Definition at line 57 of file scales.c.

Referenced by Menu_RunWorkspaceOptions().

◆ gOptionMenu_BrightnessPresets

const u8 gOptionMenu_BrightnessPresets[6]
Initial value:
= {
0, 11, 13, 7, 14, 14,
}

Definition at line 61 of file scales.c.

Referenced by Menu_RunWorkspaceOptions().

◆ gMenu_WorkspaceIconFrames

const s8 gMenu_WorkspaceIconFrames[8]
Initial value:
= {
0x29, 0x2a, 0x2b, 0x0b, 0x0b, 0x0b, 0x00, 0x00,
}

The sprite frame of each entry's icon in the system menu (Save your quest, Sleep, Change settings, and the debug entries after them).

Definition at line 67 of file scales.c.

Referenced by Menu_RunWorkspaceSelectionLoop(), and SystemMenu_Open().

◆ gPortrait_CharacterMap

const s16 gPortrait_CharacterMap[20]
Initial value:
= {
MIA, MIA,
-1, -1,
}
#define GARET
Jerald.
#define FACE_ISAAC_CHILD
Portrait numbers.
#define MIA
Mary.
#define FACE_GARET_CHILD
#define GARET_CHILD
#define ISAAC
Robin.
#define SHEBA
Sheba.
#define ISAAC_CHILD
The childhood sprites, shown while flag 32 is set; the eight party members' sprites share their chara...
#define JENNA
Jasmine.
#define IVAN
Ivan.
#define FELIX
Garcia.

{character, portrait} pairs of the playable characters, ending in -1.

Definition at line 72 of file scales.c.

Referenced by DebugMenu_BrowseEntryGlyphs(), and Localization_LookupEntryId().

◆ gPortrait_SpriteMap

const s16 gPortrait_SpriteMap[100]

{sprite, portrait} pairs of the other speakers, ending in -1: portrait n of this list is portrait 128 + n.

Definition at line 87 of file scales.c.

Referenced by DebugMenu_BrowseEntryGlyphs(), and Localization_LookupEntryId().