Palette

From EDukeWiki
Revision as of 10:11, 29 December 2011 by Helixhorned (talk | contribs) (player palette: r2226 update)
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.