Skip to navigation

Revs on the BBC Micro

Driving model: xPlayerSpeedHi

Name: xPlayerSpeedHi [Show more] Type: Variable Category: Driving model Summary: High 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 xPlayerSpeedHi * AddSteeringForce calls xPlayerSpeedHi * ApplyDeltas calls xPlayerSpeedHi * CheckForCrash calls xPlayerSpeedHi * MultiplyCoords calls xPlayerSpeedHi * Scale16Bit calls xPlayerSpeedHi * UpdateVelocity calls xPlayerSpeedHi

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