Skip to navigation

Revs on the BBC Micro

Car geometry: playerSideways

Name: playerSideways [Show more] Type: Variable Category: Car geometry Summary: Contains the player's heading, for testing whether the car is pointing sideways
Context: See this variable in context in the source code References: This variable is used as follows: * ApplyElevation (Part 2 of 5) calls playerSideways * SetVergeBackground calls playerSideways * UpdateBackground calls playerSideways

If playerSideways < 40, then the player's car is facing forwards or backwards along the track. If playerSideways >= 40, then the player's car is facing sideways, relative to the direction of the track.
.playerSideways EQUB 0