.colourPalettes EQUB 4, 0, 6, 3 \ Palette with SetColourPalette offset 3 EQUB 4, 0, 1, 3 \ Palette with SetColourPalette offset 7Name: colourPalettes [Show more] Type: Variable Category: Graphics Summary: The logical colours for two mode 5 palettesContext: See this variable in context in the source code References: This variable is used as follows: * SetColourPalette uses colourPalettes * SpawnEnemies uses colourPalettes
This table contains the logical colours that are set in the SetColourPalette routine when it is called with an argument with bit 7 set. This routine is only ever called with an argument of &83 or &87. If the argument to SetColourPalette is &83 then the palette is set to the correct colours for playing the current landscape. The colours are set in the SpawnEnemies routine when the landscape is generated. Colours 0 and 1 are always blue and black, but colours 2 and 3 are set to different physical colours depending on the number of enemies in the landscape. The different palettes are as follows: * Enemy count = 1: blue, black, white, green * Enemy count = 2: blue, black, yellow, red * Enemy count = 3: blue, black, cyan, yellow * Enemy count = 4: blue, black, red, cyan * Enemy count = 5: blue, black, white, red * Enemy count = 6: blue, black, yellow, cyan * Enemy count = 7: blue, black, cyan, red * Enemy count = 8: blue, black, red, yellow Landscape 0000 has one enemy, so the starting landscape is therefore in blue, black, white and green. If the argument to SetColourPalette is &87, the palette is set as follows: * Colour 0 = 4 (blue) * Colour 1 = 0 (black) * Colour 2 = 1 (red) * Colour 3 = 3 (yellow) This palette is fixed and is used for the title screens.