Pal: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
m Categories
Fox (talk | contribs)
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
The actor-in-question's palette.  Pal is available for [[sprite]] structs and for [[Members of the wall structure|wall]] structs.
The palette swap pertaining to an actor or a wall.  Pal is available for the sprite and wall structures.  For sectors, see [[ceilingpal]] and [[floorpal]].  For projectiles, see [[PROJ_PAL]].


To change a sprite's pal, see [[spritepal]].
To change the current sprite's palette, use [[spritepal]].
 
Valid values are 0 to 255.  Of these, only 0 through 25 are used by the original game and palette index; 26-29 are hardcoded [[DEF Language#fogpal|fog palettes]] for [[EDuke32]].
 
To revert it to the previous pal, use [[getlastpal]].  For sprites, the previous palette the sprite had is stored in the [[httempang]] member for use with [[getlastpal]].
 
See the [[Palette (environment)#Palette Swaps|palette listing]] for previews.
 
Related structure members include [[floorpal]] and [[ceilingpal]].
 
== Hard-coded values ==
 
{{Pals}}


[[Category:Sprite structure members]]
[[Category:Sprite structure members]]
[[Category:Wall structure members]]
[[Category:Wall structure members]]

Latest revision as of 18:16, 20 February 2020

The palette swap pertaining to an actor or a wall. Pal is available for the sprite and wall structures. For sectors, see ceilingpal and floorpal. For projectiles, see PROJ_PAL.

To change the current sprite's palette, use spritepal.

Valid values are 0 to 255. Of these, only 0 through 25 are used by the original game and palette index; 26-29 are hardcoded fog palettes for EDuke32.

To revert it to the previous pal, use getlastpal. For sprites, the previous palette the sprite had is stored in the httempang member for use with getlastpal.

See the palette listing for previews.

Related structure members include floorpal and ceilingpal.

Hard-coded values

Special lookup palettes (used with commands such as spritepal, etc). Not to be confused with the base palette.

Exposed Value Label Description
No 251 CROSSHAIR_PAL
No 252 NORMALPAL
No 253 SPECULARPAL
No 254 GLOWPAL
No 255 DETAILPAL
Defines
define CROSSHAIR_PAL                    251
define NORMALPAL                        252
define SPECULARPAL                      253
define GLOWPAL                          254
define DETAILPAL                        255