This index contains every variable that appears in the source code for Lander, grouped by category. A variable is defined as a labelled memory location that is used for storing data, and this list includes both variables that are defined in workspaces, and variables that are declared within the body of the source code.
- 3D objects
- Copy protection
- Drawing lines
- Drawing the screen
- Graphics buffers
- Landscape
- Maths (Arithmetic)
- Maths (Geometry)
- Player
- Score bar
- Start and end
3D objects
| |
objectBuilding | Object blueprint for the building |
objectFirTree | Object blueprint for the fir tree |
objectGazebo | Object blueprint for the gazebo |
objectPlayer | Object blueprint for the player's ship |
objectPlayerAddr | The address of the object blueprint for the player's ship |
objectPyramid | Object blueprint for a pyramid |
objectRock | Object blueprint for a rock |
objectRockAddr | The address of the object blueprint for a rock |
objectRocket | Object blueprint for the rocket |
objectSmallLeafyTree | Object blueprint for the small leafy tree |
objectSmokingBuilding | Object blueprint for the smoking remains of a building |
objectSmokingGazebo | Object blueprint for the smoking remains of a gazebo |
objectSmokingRemainsLeft | Object blueprint for the smoking remains that bend to the left |
objectSmokingRemainsRight | Object blueprint for the smoking remains that bend to the right |
objectTallLeafyTree | Object blueprint for the tall leafy tree |
objectTypes | A table that maps object types to object blueprints |
Copy protection
| |
absoluteAddr (!RunImage) | The address of the start of the Absolute file |
gameCode (!RunImage) | The unencrypted game code |
gameCodeAddr (!RunImage) | The address of the game code |
gameCodeEndAddr (!RunImage) | The address of the end of the game code |
Drawing lines
| |
lineJump | Jump table for drawing a horizontal line of between 0 and 17 pixels using the relevant entry point in DrawLineSegment |
Drawing the screen
| |
greyColourWords | An unused table of grey four-pixel colour words |
greyColourWordsAddr | The unused address of the unused table of grey four-pixel colour words |
screenAddr | The screen address for the start of the 17th pixel line in the current bank (i.e. the line just below the two rows of text) |
screenBank1Addr | The screen address for the start of the 17th pixel line in screen bank 1 (i.e. the line just below the two rows of text) |
screenBank2Addr | The screen address for the start of the 17th pixel line in screen bank 0 (i.e. the line just below the two rows of text) |
screenBankNumber | The number of the current screen bank (0 or 1) |
Graphics buffers
| |
bufferJump | The jump table for drawing commands that we store in the graphics buffers |
graphicsBuffEndAddr2 | The addresses of the tables containing the graphics buffer addresses (same as graphicsBufferEndAddr and graphicsBufferAddr) |
graphicsBufferAddr | The address of the table containing the addresses of the graphics buffers |
graphicsBufferEndAddr | The address of the table containing the end addresses of the graphics buffers |
graphicsBuffers | The addresses of each of the graphics buffers (these values do not change) |
graphicsBuffersEnd | The end addresses of each of the graphics buffers (these values get updated as objects are drawn into the buffers) |
Landscape
| |
landscapeConfig | The configuration data for each tile row in the landscape |
landscapeConfigAddr | The address of the landscapeConfig table |
landscapeOffset | The offset we apply to the on-screen landscape to push it away from us and to the left, so the visible tiles fit nicely on-screen |
landscapeOffsetAddr | The address of the landscape offset |
Maths (Arithmetic)
| |
divisionTable | Division lookup tables |
divisionTableAddr | The address of the division lookup table |
randomSeed1 | The first random seed for the random number generator |
randomSeed2 | The second random seed for the random number generator |
squareRootTable | Square root lookup table |
squareRootTableAddr | The address of the square root lookup table |
Maths (Geometry)
| |
arctanTable | Arctan lookup table |
arctanTableAddr | The address of the arctan lookup table |
sinTable | Sine/cosine lookup table |
sinTableAddr | The address of the sine/cosine lookup table |
Player
| |
mouseParameters | The parameters for OS_Word 21,3 for resetting the mouse position |
mouseParametersAddr | The address of the OS_Word block for resetting the mouse position |
Score bar
| |
fuelBarColour | A four-pixel colour word for the colour of the fuel bar |
initialFuelLevel | The fuel level at the start of each new game |
initialHighScore | The high score when we first load the game |
initialScore | The score at the start of each game |
Start and end
| |
memoryTestAddr | The memory location to check to ensure we have enough memory for the game |
stackAddr | The address of the game's stack |
stackPointerOnEntry | Stores the stack pointer from when the game was run |
workspaceAddr | The address of the game's variable workspace |