![]() |
Routines |
| Prev: 46780 | Up: Map | Next: 46845 |
|
Used by the routine at GameOver.
Clears the play window and shows "GAME OVER" followed by the number of the player, then waits for a while.
|
||||||||
| ShowGameOver | 46802 | LD A,177 | Use the "1" of "PLAYER 1" as the last character of the text. | |||||
| ShowGameOver_Player | 46804 | LD (46890),A | Write it as the last character of the second text message. | |||||
| 46807 | XOR A | Use black as the attribute. | ||||||
| 46808 | CALL ClearPlayWindowWithAttributes | Clear the play window to black using ClearPlayWindowWithAttributes. | ||||||
| 46811 | LD DE,46871 | Point DE at Message_GameOver. | ||||||
| 46814 | LD HL,16440 | Point HL at the position of the message (x position 56, y position 64). | ||||||
| 46817 | CALL PrintStringColour | Print it using PrintStringColour. | ||||||
| 46820 | LD HL,20544 | Point HL at the position of the second message (x position 64, y position 80). | ||||||
| 46823 | CALL PrintStringColour | Print "PLAYER 1" using PrintStringColour. | ||||||
| 46826 | LD B,8 | Delay for 8 times 65536 iterations. | ||||||
| 46828 | LD HL,0 | |||||||
| 46831 | CALL Delay | Delay using Delay. | ||||||
| 46834 | LD A,71 | Use bright white on black as the attribute. | ||||||
| 46836 | JP FillPlayWindowAttributes | Jump to FillPlayWindowAttributes. | ||||||
|
This entry point is not used. It shows "PLAYER 2" instead.
|
||||||||
| ShowGameOver_Player2 | 46839 | LD A,178 | Use the "2" of "PLAYER 2" as the last character of the text. | |||||
| 46841 | JR ShowGameOver_Player | Jump to ShowGameOver_Player. | ||||||
|
This entry point is not used.
|
||||||||
| ShowGameOver_Unused | 46843 | JR ShowGameOver | Jump to ShowGameOver. | |||||
|
The entry point at ShowGameOver_Player2 would show "PLAYER 2". It is not used, and nor is ShowGameOver_Unused, as the game only has a single player.
|
||||||||
| Prev: 46780 | Up: Map | Next: 46845 |