![]() |
Routines |
| Prev: E9B5 | Up: Map | Next: E9D3 |
|
Used by the routine at GameComplete.
Ask To Play Again.
|
||||
| HandlerAskToPlayAgain | E9BB | 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..
|
||||
| E9BE | LD HL,$B007 | Point at the message and print it and start a new line. | ||
| E9C1 | CALL PrintStringAndANewline | |||
| HandlerAskToPlayAgain_Loop | E9C4 | CALL GetUserInput | Call GetUserInput to read the player's key. | |
| E9C7 | CP $4E | Branch to START when the player pressed "N". | ||
| E9C9 | JP Z,$0000 | |||
| E9CC | CP $59 | Branch to GameEntryPoint when the player pressed "Y". | ||
| E9CE | JP Z,GameEntryPoint | |||
| E9D1 | JR HandlerAskToPlayAgain_Loop | Ask again at HandlerAskToPlayAgain_Loop when the key is neither Y nor N. | ||
|
View the equivalent code in;
|
||||
| Prev: E9B5 | Up: Map | Next: E9D3 |