![]() |
Routines |
| Prev: 59829 | Up: Map | Next: 59859 |
|
Used by the routine at GameComplete.
Ask To Play Again.
|
||||
| HandlerAskToPlayAgain | 59835 | CALL Messaging_YouHaveScored_Print | Call Messaging_YouHaveScored_Print to tell the player the score. | |
|
Print it and start a new line: Want another game? Y/N..
|
||||
| 59838 | LD HL,45063 | Point at the message and print it and start a new line. | ||
| 59841 | CALL PrintStringAndANewline | |||
| HandlerAskToPlayAgain_Loop | 59844 | CALL GetUserInput | Call GetUserInput to read the player's key. | |
| 59847 | CP 78 | Branch to START when the player pressed "N". | ||
| 59849 | JP Z,0 | |||
| 59852 | CP 89 | Branch to GameEntryPoint when the player pressed "Y". | ||
| 59854 | JP Z,GameEntryPoint | |||
| 59857 | JR HandlerAskToPlayAgain_Loop | Ask again at HandlerAskToPlayAgain_Loop when the key is neither Y nor N. | ||
|
View the equivalent code in;
|
||||
| Prev: 59829 | Up: Map | Next: 59859 |