.GetWingSettings LDX #5 \ Print "THE PITS" as a double-height header at column JSR PrintHeader \ 11, row 4, in blue text on a yellow background LDX #24 \ Print token 24, which shows the prompt "SELECT WING JSR PrintToken \ SETTINGS > range 0 to 40" and a further prompt of \ "rear > " JSR GetNumberInput \ Fetch a number from the keyboard STA rearWingSetting \ Store the entered number in rearWingSetting LDX #25 \ Print token 25, which shows a prompt of "front > " JSR PrintToken JSR GetNumberInput \ Fetch a number from the keyboard STA frontWingSetting \ Store the entered number in frontWingSetting JSR WaitForSpace \ Print a prompt and wait for SPACE to be pressed RTS \ Return from the subroutineName: GetWingSettings [Show more] Type: Subroutine Category: Keyboard Summary: Get the front and rear wing settings from the playerContext: See this subroutine in context in the source code References: This subroutine is called as follows: * HeadToTrack calls GetWingSettings
[X]
Subroutine GetNumberInput (category: Keyboard)
Fetch a number between 0 and 40 from the keyboard
[X]
Subroutine PrintHeader (category: Text)
Configure and print a double-height header in screen mode 7
[X]
Subroutine PrintToken (category: Text)
Print a recursive token
[X]
Subroutine WaitForSpace (category: Keyboard)
Print a prompt, wait for the SPACE key to be released, and wait for SPACE to be pressed
[X]
Variable frontWingSetting (category: Driving model)
The front wing setting, as entered by the player
[X]
Variable rearWingSetting (category: Driving model)
The rear wing setting, as entered by the player