Sprite Palette

From TTWiki
Revision as of 22:29, 26 September 2004 by 70.64.56.83 (talk) (updated colour list)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Introduction

Locomotion graphics are palette-based. This means that when encoding your PNG files, the actual colours are ignored, only the index in the 256 colour palette matters, so you must ensure that the PNG uses the right palette, and that you're using the right colours of that palette.

Making PNGs with the right palette

(to be written by someone who knows how this works)

Palette entries

This is a list of palette entries and what they look like in the game:

IndexMeaningDescription
0regular transparencyused for transparent pixels that are part of the object
1blacksolid black
2-6(reserved)These colours are used by some Locomotion sprites, they appear to come out black
7-9, 246-254Primary company colour shadesThese colours will be replaced by the selected primary company colour
202-213Secondary company colour shadesThese colours will be replaced by the selected secondary company colour
255chunked transparencyused for pixels that are not part of the object; only valid if the sprite tag has the "chunked" bit set