Prev: 63649 Up: Map Next: 63689
63657: Action: Quit
Action_Quit 63657 CALL Parser_ValidateNoDirectObject Call Parser_ValidateNoDirectObject.
The "QUIT" command can only be called on its own.
63660 RET C Return if there's any token set in UserInput_Token_2.
Inform the player of their score.
63661 CALL Print_Scoring Call Print_Scoring.
Print "Want to save the game? Y/N.".
63664 LD HL,43425 HL=Messaging_WantToSaveTheGame.
63667 CALL PrintStringAndNewline Call PrintStringAndNewline.
WantToSave_Loop 63670 CALL GetUserInput Call GetUserInput.
The player just wants to quit.
63673 CP 78 Jump to QuitGame if the keypress is "N".
63675 JR Z,QuitGame
63677 CP 89 Jump back to WantToSave_Loop if the keypress is anything other than "Y".
63679 JR NZ,WantToSave_Loop
The player does want to save before quitting...
63681 CALL SaveGame Call SaveGame.
Jump to asking if the player "wants another game?"
QuitGame 63684 LD HL,59835 Switch WantAnotherGameInput onto the stack so the next return action is asking if the player would "Want another game? Y/N.".
63687 EX (SP),HL
63688 RET Return.
Prev: 63649 Up: Map Next: 63689