Skip to navigation

Sights: xSightsStep

Name: xSightsStep [Show more] Type: Variable Category: Sights Summary: Steps to take along the x-axis when drawing the sights
Context: See this variable in context in the source code References: This variable is used as follows: * DrawSights uses xSightsStep

The xSightsStep and ySightsStep tables define a set of 12 steps to follow when drawing the sights, relative to the start position at the top of the sights. The steps draw a shape like this, starting at step 0 and showing steps 10 and 11 as A and B): 00 11 22 334455667788 99 AA BB Each step is made up of two pixels, one filled (e.g. white) and one transparent, to give a shape like this: x. x. x. x.x.x.x.x.x. x. x. x. In the above, "x" denotes a filled pixel while "." denotes a transparent pixel.
.xSightsStep EQUB 0 \ Step 0 = ( 0, 0) -> ( 0, 0) EQUB 0 \ Step 1 = ( 0, 2) -> ( 0, 2) EQUB 0 \ Step 2 = ( 0, 2) -> ( 0, 4) EQUB -5 \ Step 3 = (-5, 1) -> (-5, 5) EQUB 2 \ Step 4 = ( 2, 0) -> (-3, 5) EQUB 2 \ Step 5 = ( 2, 0) -> (-1, 5) EQUB 2 \ Step 6 = ( 2, 0) -> ( 1, 5) EQUB 2 \ Step 7 = ( 2, 0) -> ( 3, 5) EQUB 2 \ Step 8 = ( 2, 0) -> ( 5, 5) EQUB -5 \ Step 9 = (-5, 1) -> ( 0, 6) EQUB 0 \ Step 10 = ( 0, 2) -> ( 0, 8) EQUB 0 \ Step 11 = ( 0, 2) -> ( 0, 10)