.DrawOneFaceTile LDA tileShapeColour,X \ Set polygonColours to the entry for the reference STA polygonColours \ shape from the tileShapeColour or tileShapeColour+16 \ table, so we draw the polygon in the correct colour LDA #%00000000 \ Clear bits 6 and 7 of polygonType so the following STA polygonType \ call to DrawPolygon draws a quadrilateral tile face JMP DrawPolygon \ Jump to DrawPolygon to draw the quadrilateral and \ return from the subroutine using a tail callName: DrawOneFaceTile [Show more] Type: Subroutine Category: Drawing the landscape Summary: Draw a tile with one quadrilateral (four-sided) faceContext: See this subroutine in context in the source code References: This subroutine is called as follows: * DrawFlatTile calls DrawOneFaceTile * DrawSlopingTile calls DrawOneFaceTile
Arguments: X The reference shape to use when picking the tile's colour from the tileShapeColour table
[X]
Subroutine DrawPolygon (category: Drawing polygons)
Draw a polygon
[X]
Variable polygonColours in workspace Zero page
The colours of the polygon that's being drawn in the DrawPolygon routine
[X]
Variable polygonType in workspace Zero page
Bits 6 and 7 determine the type of polygon to draw in the DrawPolygon routine (the calling subroutine is in brackets)
[X]
Variable tileShapeColour (category: Drawing the landscape)
Tile colours by shape and the orientation of the viewer