Pal: Difference between revisions
Jump to navigation
Jump to search
Hendricks266 (talk | contribs) No edit summary |
Hendricks266 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
The actor | 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 | For sprites, the previous palette the sprite had is stored in the [[httempang]] member for use with [[getlastpal]]. | ||
To change the current sprite's palette, use [[spritepal]]. To revert it to the previous pal, use [[getlastpal]]. | |||
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]]. | |||
See the [[Palette (environment)#Palette Swaps|palette listing]] for previews. | |||
[[Category:Sprite structure members]] | [[Category:Sprite structure members]] | ||
[[Category:Wall structure members]] | [[Category:Wall structure members]] |
Revision as of 17:04, 26 September 2009
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.
For sprites, the previous palette the sprite had is stored in the httempang member for use with getlastpal.
To change the current sprite's palette, use spritepal. To revert it to the previous pal, use getlastpal.
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.
See the palette listing for previews.