Prev: 38601 Up: Map Next: 38672
38636: Game Complete
Used by the routine at DrawRoom.
Called when the player has reached room 142. 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 38636 LD HL,60048 Point HL at the player at Player.
38639 CALL DrawEntityAtHL Call DrawEntityAtHL to draw the entity that HL points to.
38642 LD HL,48716 Write 48716 (the main font, see MainFont) to FontPointer, which sets the font.
38645 LD (24065),HL
Handle printing "CONGRATULATIONS".
38648 LD HL,8256 HL=8256 (screen buffer location).
38651 LD DE,38672 Point DE at the game complete messages at GameCompleteMessages.
38654 CALL PrintStringColour Call PrintStringColour to print the string.
Handle printing "YOU HAVE ESCAPED".
38657 LD HL,12352 HL=12352 (screen buffer location).
38660 LD DE,38688 Point DE at the message that the player has escaped at GameCompleteMessage_Escaped.
38663 CALL PrintStringColour Call PrintStringColour to print the string.
Show the game statistics.
38666 CALL GameStats Call GameStats to show the game statistics.
Disappointingly cut into the "normal" game over routine.
38669 JP GameOverDelay Jump to GameOverDelay to wait for a moment.
Prev: 38601 Up: Map Next: 38672