![]() |
Routines |
Prev: ADA1 | Up: Map | Next: AE2C |
Used by the routine at GameStart.
|
||||
Print "You are dead.".
|
||||
GameOver | AE0D | LD HL,$0010 | HL=Messaging_YouAreDead. | |
AE10 | CALL PrintCompressedStringAndNewline | Call PrintCompressedStringAndNewline. | ||
This entry point is used by the routine at GameStart.
Print the percentage of the game the player achieved.
|
||||
GameOver_Score | AE13 | CALL Print_Scoring | Call Print_Scoring. | |
This entry point is used by the routine at GameStart.
Print "Want another game? Y/N".
|
||||
WantAnotherGameInput | AE16 | LD HL,$0011 | HL=Messaging_WantAnotherGame. | |
AE19 | CALL PrintCompressedStringAndNewline | Call PrintCompressedStringAndNewline. | ||
WantAnotherGameInput_Loop | AE1C | CALL GetUserInput | Call GetUserInput. | |
The player is done with the game, so reset back to BASIC.
|
||||
AE1F | CP $4E | Reset back to BASIC if the keypress is "N ". |
||
AE21 | JP Z,$0000 | |||
The player wants another go...
|
||||
AE24 | CP $59 | Jump to GameEntryPoint if the keypress is "Y ". |
||
AE26 | JP Z,GameEntryPoint | |||
Just loop round for any other input.
|
||||
AE29 | JP WantAnotherGameInput_Loop | Jump to WantAnotherGameInput_Loop. |
Prev: ADA1 | Up: Map | Next: AE2C |