![]()  | 
Routines | 
| Prev: E99F | Up: Map | Next: E9D0 | 
| 
 
Used by the routine at PrintAndGameOver.
 
 | 
||||
| 
 
Print "You are dead.".
 
 | 
||||
| GameOver | E9B2 | LD HL,$A8EF | HL=Messaging_YouAreDead. | |
| E9B5 | CALL PrintStringAndNewline | Call PrintStringAndNewline. | ||
| 
 
Print the percentage of the game the player achieved.
 
 | 
||||
| GameOver_Score | E9B8 | CALL Print_Scoring | Call Print_Scoring. | |
| 
 
Print "Want another game? Y/N.".
 
 | 
||||
| WantAnotherGameInput | E9BB | LD HL,$A8FD | HL=Messaging_WantAnotherGame. | |
| E9BE | CALL PrintStringAndNewline | Call PrintStringAndNewline. | ||
| WantAnotherGameInput_Loop | E9C1 | CALL GetUserInput | Call GetUserInput. | |
| 
 
The player is done with the game, so reset back to BASIC.
 
 | 
||||
| E9C4 | CP $4E | Reset back to BASIC if the keypress is "N". | 
||
| E9C6 | JP Z,$0000 | |||
| 
 
The player wants another go...
 
 | 
||||
| E9C9 | CP $59 | Jump to GameEntryPoint if the keypress is "Y". | 
||
| E9CB | JP Z,GameEntryPoint | |||
| 
 
Just loop round for any other input.
 
 | 
||||
| E9CE | JR WantAnotherGameInput_Loop | Jump to WantAnotherGameInput_Loop. | ||
| Prev: E99F | Up: Map | Next: E9D0 |