![]() |
Routines |
| Prev: BA9B | Up: Map | Next: BAD2 |
|
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 | BAAB | CALL ClearScreenBuffer | Clear the screen buffer. | |
| BAAE | CALL ClearScreen | Clear the screen and make the border black. | ||
| BAB1 | LD DE,$BAD2 | Point DE at GameCompleteColours. | ||
| BAB4 | EXX | Switch to the alternate registers to keep it there. | ||
| BAB5 | LD HL,$BAD8 | Point HL at GameCompleteCoordinates. | ||
| BAB8 | LD DE,$BAE4 | Point DE at GameCompleteText. | ||
| BABB | LD B,$06 | Set the number of lines of text to 06. | ||
| BABD | XOR A | Clear A. | ||
| BABE | LD ($5BB8),A | Flag that the border has to be drawn at BorderDrawnFlag. | ||
| BAC1 | CALL DisplayTextList | Print the lines of text. | ||
|
Play the tune and wait for a key to be pressed.
|
||||
| BAC4 | LD DE,$B239 | Point DE at GameCompleteTune. | ||
| BAC7 | CALL PlayMusic | Play the tune. | ||
| BACA | LD B,$08 | Set the number of times to wait to 08. | ||
| BACC | CALL WaitForKeyPress | Wait for a key to be pressed, up to a limit. | ||
| BACF | JP GameOver_ShowResults | Jump to GameOver_ShowResults to show the results screen. | ||
| Prev: BA9B | Up: Map | Next: BAD2 |