Prev: 47771 Up: Map Next: 47826
47787: Game Completed
Used by the routine at GameOver.
Shows the message of the potion that is given when the player has completed the game, while the game complete tune plays, and then goes on to show the results.
Show the game completed message.
GameCompleted 47787 CALL ClearScreenBuffer Clear the screen buffer.
47790 CALL ClearScreen Clear the screen and make the border black.
47793 LD DE,47826 Point DE at GameCompleteColours.
47796 EXX Switch to the alternate registers to keep it there.
47797 LD HL,47832 Point HL at GameCompleteCoordinates.
47800 LD DE,47844 Point DE at GameCompleteText.
47803 LD B,6 Set the number of lines of text to 6.
47805 XOR A Clear A.
47806 LD (23480),A Flag that the border has to be drawn at BorderDrawnFlag.
47809 CALL DisplayTextList Print the lines of text.
Play the tune and wait for a key to be pressed.
47812 LD DE,45625 Point DE at GameCompleteTune.
47815 CALL PlayMusic Play the tune.
47818 LD B,8 Set the number of times to wait to 8.
47820 CALL WaitForKeyPress Wait for a key to be pressed, up to a limit.
47823 JP GameOver_ShowResults Jump to GameOver_ShowResults to show the results screen.
View the equivalent code in;
Game complete message
game-completed
Prev: 47771 Up: Map Next: 47826