Skip to navigation

Revs on the BBC Micro

Driving model: xPlayerSpeedTop

Name: xPlayerSpeedTop [Show more] Type: Variable Category: Driving model Summary: Top byte of the x-coordinate of the velocity vector (i.e. x-axis speed) for the player's car during this main loop iteration
Context: See this variable in context in the source code References: This variable is used as follows: * AddCoords calls xPlayerSpeedTop * AddSteeringForce calls xPlayerSpeedTop * ApplyDeltas calls xPlayerSpeedTop * MultiplyCoords calls xPlayerSpeedTop * Scale16Bit calls xPlayerSpeedTop * UpdateVelocity calls xPlayerSpeedTop

The speed is stored as a 24-bit number in (xPlayerSpeedTop xPlayerSpeedHi xPlayerSpeedLo).
.xPlayerSpeedTop EQUB 0