Skip to navigation

Drawing the landscape: tileShapeColour

Name: tileShapeColour [Show more] Type: Variable Category: Drawing the landscape Summary: Tile colours by shape and the orientation of the viewer
Context: See this variable in context in the source code References: This variable is used as follows: * DrawOneFaceTile uses tileShapeColour * DrawTwoFaceTile uses tileShapeColour

The colours shown in the comments below are for landscape 0000, which has the following palette: * Colour 0 = blue * Colour 1 = black * Colour 2 = white * Colour 3 = green Colours 2 and 3 can be altered depending on the context (for gameplay, the palette changes depending on the number of enemies, for example). The range of colours is as follows: * Colour 2 can be white, yellow, cyan or red * Colour 3 can be green, red, yellow or cyan Note that all the tiles have an edge colour of 0 (blue) apart from the first one, which has an edge colour of colour 3 (green, red, yellow or cyan) to match the fill colour.
.tileShapeColour \ Colours for the first face in a two-face tile, or the \ only face in a one-face tile EQUB 3 << 2 + 3 << 4 \ Shape 0: fill colour 3 (green), edge colour 3 (blue) EQUB 1 << 2 + 0 << 4 \ Shape 1: fill colour 1 (black), edge colour 0 (blue) EQUB 1 << 2 + 0 << 4 \ Shape 2: fill colour 1 (black), edge colour 0 (blue) EQUB 2 << 2 + 0 << 4 \ Shape 3: fill colour 2 (white), edge colour 0 (blue) EQUB 2 << 2 + 0 << 4 \ Shape 4: fill colour 2 (white), edge colour 0 (blue) EQUB 2 << 2 + 0 << 4 \ Shape 5: fill colour 2 (white), edge colour 0 (blue) EQUB 1 << 2 + 0 << 4 \ Shape 6: fill colour 1 (black), edge colour 0 (blue) EQUB 2 << 2 + 0 << 4 \ Shape 7: fill colour 2 (white), edge colour 0 (blue) EQUB 0 << 2 + 0 << 4 \ Shape 8 = unused EQUB 1 << 2 + 0 << 4 \ Shape 9: fill colour 1 (black), edge colour 0 (blue) EQUB 2 << 2 + 0 << 4 \ Shape 10: fill colour 2 (white), edge colour 0 (blue) EQUB 1 << 2 + 0 << 4 \ Shape 11: fill colour 1 (black), edge colour 0 (blue) EQUB 1 << 2 + 0 << 4 \ Shape 12: fill colour 1 (black), edge colour 0 (blue) EQUB 2 << 2 + 0 << 4 \ Shape 13: fill colour 2 (white), edge colour 0 (blue) EQUB 2 << 2 + 0 << 4 \ Shape 14: fill colour 2 (white), edge colour 0 (blue) EQUB 1 << 2 + 0 << 4 \ Shape 15: fill colour 1 (black), edge colour 0 (blue) \ Colours for the second face in a two-face tile EQUB 0 << 2 + 0 << 4 \ Shape 0: fill colour 3 (green), edge colour 0 (blue) EQUB 0 << 2 + 0 << 4 \ Shape 1: fill colour 1 (black), edge colour 0 (blue) EQUB 2 << 2 + 0 << 4 \ Shape 2: fill colour 1 (black), edge colour 0 (blue) EQUB 1 << 2 + 0 << 4 \ Shape 3: fill colour 2 (white), edge colour 0 (blue) EQUB 2 << 2 + 0 << 4 \ Shape 4: fill colour 2 (white), edge colour 0 (blue) EQUB 0 << 2 + 0 << 4 \ Shape 5: fill colour 2 (white), edge colour 0 (blue) EQUB 2 << 2 + 0 << 4 \ Shape 6: fill colour 1 (black), edge colour 0 (blue) EQUB 1 << 2 + 0 << 4 \ Shape 7: fill colour 2 (white), edge colour 0 (blue) EQUB 0 << 2 + 0 << 4 \ Shape 8 = unused EQUB 0 << 2 + 0 << 4 \ Shape 9: fill colour 1 (black), edge colour 0 (blue) EQUB 1 << 2 + 0 << 4 \ Shape 10: fill colour 2 (white), edge colour 0 (blue) EQUB 2 << 2 + 0 << 4 \ Shape 11: fill colour 1 (black), edge colour 0 (blue) EQUB 1 << 2 + 0 << 4 \ Shape 12: fill colour 1 (black), edge colour 0 (blue) EQUB 0 << 2 + 0 << 4 \ Shape 13: fill colour 2 (white), edge colour 0 (blue) EQUB 1 << 2 + 0 << 4 \ Shape 14: fill colour 2 (white), edge colour 0 (blue) EQUB 2 << 2 + 0 << 4 \ Shape 15: fill colour 1 (black), edge colour 0 (blue)