Prev: 96C9 Up: Map Next: 9710
96EC: Game Complete
Used by the routine at DrawRoom.
Called when the player has reached room 8E. The player is drawn, the messages are printed, and the game statistics are shown by GameStats. The game then carries on as if it were over.
Before After
game-complete-before game-complete-after
GameComplete 96EC LD HL,$EA90 Point HL at the player at Player.
96EF CALL DrawEntityAtHL Call DrawEntityAtHL to draw the entity that HL points to.
96F2 LD HL,$BE4C Write BE4C (the main font, see MainFont) to FontPointer, which sets the font.
96F5 LD ($5E01),HL
Handle printing "CONGRATULATIONS".
96F8 LD HL,$2040 HL=2040 (screen buffer location).
96FB LD DE,$9710 Point DE at the game complete messages at GameCompleteMessages.
96FE CALL PrintStringColour Call PrintStringColour to print the string.
Handle printing "YOU HAVE ESCAPED".
9701 LD HL,$3040 HL=3040 (screen buffer location).
9704 LD DE,$9720 Point DE at the message that the player has escaped at GameCompleteMessage_Escaped.
9707 CALL PrintStringColour Call PrintStringColour to print the string.
Show the game statistics.
970A CALL GameStats Call GameStats to show the game statistics.
Disappointingly cut into the "normal" game over routine.
970D JP GameOverDelay Jump to GameOverDelay to wait for a moment.
Prev: 96C9 Up: Map Next: 9710