Prev: 36275 Up: Map Next: 36302
36281: Handler: Ask To Play Again
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.".
HandlerAskToPlayAgain 36281 LD HL,25498 HL=Messaging_WantAnotherGameYN.
36284 CALL PrintStringAndANewline Call PrintStringAndANewline.
HandlerAskToPlayAgain_Loop1 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 HandlerAskToPlayAgain_Loop1 Jump to HandlerAskToPlayAgain_Loop1.
View the equivalent code in;
Prev: 36275 Up: Map Next: 36302