Skip to Content
The Alchemy Project

include/window/scales.h

The window sprites' and cursors' motion curves, the window colour wheel, the settings and Pause menus' icons and colour presets, and the speakers' portraits (window/scales.c).

Included by screens_internal.h and window_internal.h.

Variables

NameDescription
extern const Uint16WindowSpriteBounceScales [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.
extern const Sint8WindowSpriteBounceScalesTail [8]Unused: eight offsets after the pulse that nothing reads.
extern const Sint8MenuCursorBobOffsets [16]The selection cursor's bob: a 16-step wave of up to 3 pixels each way.
extern const Uint8WindowColorWaveTable [121]The window colour wheel: one colour channel's level (0 to 31) over 96 hue steps.
extern const Uint8SettingsMenuHuePresets [6]The window colour presets SELECT cycles through on the settings menu: the colour (hue, 0 to 23) and the brightness (0 to 14, 7 neutral) of each.
extern const Uint8SettingsMenuBrightnessPresets [6]
extern const Sint8PauseMenuIcons [8]The command icon of each entry in the Pause menu (Save your quest, Sleep, Change settings, and the debug entries after them).
extern const Sint16PortraitCharacterMap [20]{character, portrait} pairs of the playable characters, ending in -1, which mnPortraitGetForSpeaker searches for speakers below 20.
extern const Sint16PortraitSpriteMap [100]{sprite, portrait} pairs of the other speakers, ending in -1: mnPortraitGetForSpeaker numbers portrait n of this list PORTRAIT_SPRITE_MAP_FIRST + n, which mnIconLoadWithPalette draws as the row PORTRAIT_JUPITER_DJINNI + n.

Description

The window sprites' and cursors' motion curves, the window colour wheel, the settings and Pause menus' icons and colour presets, and the speakers' portraits (window/scales.c).