Skip to navigation

Revs on the BBC Micro

Driving model: ApplyVergeJump

Name: ApplyVergeJump [Show more] Type: Subroutine Category: Driving model Summary: Apply a jump to the player's car when hitting the track verge
Context: See this subroutine in context in the source code References: This subroutine is called as follows: * ApplyGrassOrTrack calls ApplyVergeJump

Calculate the following: yGravityDelta = playerSpeedHi / 2 yJumpHeight = playerSpeedHi / 4 heightAboveTrack = heightAboveTrack + 1 spinYawAngleHi = spinYawAngleHi >> 1 with bit 7 set and make the crash/contact sound.
.ApplyVergeJump LDA playerSpeedHi \ Set A = playerSpeedHi \ Fall through into ApplyBounce to calculate the \ variables and make the crash/contact sound