Palette

From EDukeWiki
Revision as of 18:15, 20 February 2020 by Fox (talk | contribs)
Jump to navigation Jump to search

Since r2226, this is the index of the current screen palette in use. The screen palette determines the overall look of the scene, like underwater, with enabled night vision, et cetera. One use of this member is as a check before a setgamepalette, since changing the palette too often (e.g. every tic) is undesirable for various reasons. See spritenvg, ifinwater, and palfrom.

Writing to this member has no effect.

See the palette listing for how a palette will effect the look of the scene.

Values

Base palettes. Not to be confused with lookup palettes (such as sprite palette)

Exposed Value Label Description
No 0 BASEPAL
No 1 WATERPAL
No 2 SLIMEPAL
No 3 DREALMSPAL
No 4 TITLEPAL
No 5 ENDINGPAL
No 6 ANIMPAL
Defines
define BASEPAL                          0
define WATERPAL                         1
define SLIMEPAL                         2
define DREALMSPAL                       3
define TITLEPAL                         4
define ENDINGPAL                        5
define ANIMPAL                          6