Prev: B899 Up: Map Next: B8D0
B8A9: Game Completed
Used by the routine at GameOver.
Shows the message that the station has arrived, and plays the tune for the game being completed. It then carries on with the game over screen (see B76B).
Game completed message
game-completed
Show the game completed message.
GameCompleted B8A9 CALL ClearScreenBuffer Call ClearScreenBuffer.
B8AC CALL ClearScreen Call ClearScreen.
B8AF LD DE,$B8D0 Point DE at GameCompletedColours.
B8B2 EXX Switch to the shadow registers.
B8B3 LD HL,$B8D7 Point HL at GameCompletedCoordinates.
B8B6 LD DE,$B8E5 Point DE at GameCompletedText.
B8B9 LD B,$07 Set the number of lines to 07.
B8BB XOR A Write 00 to *BorderDrawnFlag.
B8BC LD ($5B18),A
B8BF CALL DisplayTextList Call DisplayTextList.
Play the tune and wait for a key.
B8C2 LD DE,$B437 Point DE at GameCompleteTune.
B8C5 CALL PlayMusic Call PlayMusic.
B8C8 LD B,$08 Set the length of the wait to 08.
B8CA CALL WaitForKeyPress Call WaitForKeyPress.
B8CD JP GameOver_ShowStatistics Jump to GameOver_ShowStatistics.
View the equivalent code in;
Prev: B899 Up: Map Next: B8D0