![]() |
Routines |
| Prev: EB10 | Up: Map | Next: EB3E |
|
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 PrintStringAndNewline | |||
|
This entry point is used by the routine at GameComplete.
Ask whether to play again.
|
||||
| WantAnotherGameInput | EB29 | LD HL,$BC0F | Print "Want another game? Y/N.". | |
| EB2C | CALL PrintStringAndNewline | |||
| WantAnotherGameInput_Loop | 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 WantAnotherGameInput_Loop | Jump back to WantAnotherGameInput_Loop until the answer is Y or N. | ||
|
View the equivalent code in;
|
||||
| Prev: EB10 | Up: Map | Next: EB3E |