Pals time: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Matteus (talk | contribs)
No edit summary
 
Fox (talk | contribs)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
pals_time is defaulted to zero when the player starts, or when a level is loaded. It is set to the first parameter for the command pal from pals[0-2] are set to the next three parameters. It is a count-down timer. It is also set internally when the player takes damage.
Member of the [[player]] struct; pals_time is simply another way to access the intensity value of the [[pals]] array.
 
[[pals #]] is a 3-component array. '''pals_time''' is the 6-bit (0-63) intensity value which controls the initial translucency of the tint before it fades out. The remaining three values are the 6-bit (0-63) RGB color values of the tint.
 
[[Category:Player structure members]]

Latest revision as of 01:42, 20 February 2020

Member of the player struct; pals_time is simply another way to access the intensity value of the pals array.

pals # is a 3-component array. pals_time is the 6-bit (0-63) intensity value which controls the initial translucency of the tint before it fades out. The remaining three values are the 6-bit (0-63) RGB color values of the tint.