Prev: EB10 Up: Map Next: EB3E
EB23: Game Over
Used by the routine at Events_Wizard.
Tell the player they are dead and ask whether to play again.
Tell the player they are dead.
GameOver EB23 LD HL,$BC01 Print "You are dead.".
EB26 CALL PrintStringAndANewline
This entry point is used by the routine at GameComplete.
Ask whether to play again.
GameOver_WantAnother EB29 LD HL,$BC0F Print "Want another game? Y/N.".
EB2C CALL PrintStringAndANewline
GameOver_Ask EB2F CALL GetUserInput Call GetUserInput to wait for the player's answer.
EB32 CP $4E Jump to START if the player pressed "N".
EB34 JP Z,$0000
EB37 CP $59 Jump to GameEntryPoint to play again if the player pressed "Y".
EB39 JP Z,GameEntryPoint
EB3C JR GameOver_Ask Jump back to GameOver_Ask until the answer is Y or N.
Prev: EB10 Up: Map Next: EB3E