Prev: 36275 Up: Map Next: 36302
36281: Want Another Game Input
Used by the routines at GameComplete and ActionQuit.
Ask whether to play again; reset the machine or start another game.
Print "Want another game? Y/N.".
WantAnotherGameInput 36281 LD HL,25498 HL=Messaging_WantAnotherGameYN.
36284 CALL PrintStringAndANewline Call PrintStringAndANewline.
WantAnotherGameInput_Loop 36287 CALL GetUserInput Call GetUserInput.
The player is done with the game, so reset back to BASIC.
36290 CP 78 Jump to START if the player pressed "N".
36292 JP Z,0
The player wants another go...
36295 CP 89 Jump back to GameEntryPoint if the player pressed "Y".
36297 JP Z,GameEntryPoint
Just loop round for any other input.
36300 JR WantAnotherGameInput_Loop Jump to WantAnotherGameInput_Loop.
View the equivalent code in;
Prev: 36275 Up: Map Next: 36302