Prev: EDC4 Up: Map Next: EDF2
EDD7: Game Over
Used by the routine at Events_GameOver.
Print "You are dead.".
GameOver EDD7 LD HL,$BE31 HL=Messaging_YouAreDead.
EDDA CALL PrintStringAndNewline Call PrintStringAndNewline.
This entry point is used by the routine at GameComplete.
Print "Want another game? Y/N.".
WantAnotherGameInput EDDD LD HL,$BE3F HL=Messaging_WantAnotherGame.
EDE0 CALL PrintStringAndNewline Call PrintStringAndNewline.
WantAnotherGameInput_Loop EDE3 CALL GetUserInput Call GetUserInput.
The player is done with the game, so reset back to BASIC.
EDE6 CP $4E Reset back to BASIC if the keypress is "N".
EDE8 JP Z,$0000
The player wants another go...
EDEB CP $59 Jump to GameEntryPoint if the keypress is "Y".
EDED JP Z,GameEntryPoint
Just loop round for any other input.
EDF0 JR WantAnotherGameInput_Loop Jump to WantAnotherGameInput_Loop.
Prev: EDC4 Up: Map Next: EDF2