![]() |
Routines |
| Prev: 27567 | Up: Map | Next: 27646 |
|
Used by the routines at GameOver_Controller and GameOver_ControllerRestart.
Shows "GAME OVER PLAYER 1" in the play area, and waits for a while. The example below stops before the pause.
|
||||||||
| GameOver_1UP_Messaging | 27616 | LD A,"1"+128 | Fetch the player number "1", with bit 7 set to end the message. | |||||
|
This entry point is used by the routine at GameOver_2UP.
Print the messaging and pause to show it for a period of time.
|
||||||||
| GameOver_Write | 27618 | LD (27696),A | Write the player number into the message at 27696. | |||||
| 27621 | CALL CreateWindow | Clear the screen and draw the game window using CreateWindow. | ||||||
| 27624 | LD DE,27678 | Point DE at GameOver_Text. | ||||||
| 27627 | LD HL,28728 | HL=28728. | ||||||
| 27630 | CALL PrintStringColour | Print the message using PrintStringColour. | ||||||
|
Introduce a pause by counting down from 65536 four times.
|
||||||||
| 27633 | LD B,4 | Set the repeat counter to 4. | ||||||
|
This entry point is used by the routine at HandleCake.
|
||||||||
| PauseForCount | 27635 | LD HL,0 | Set the delay counter to 0 so that it counts down from 65536. | |||||
| GameOver_Pause | 27638 | DEC HL | Decrease the delay counter by one. | |||||
| 27639 | LD A,H | Loop back to GameOver_Pause until the delay counter is zero. | ||||||
| 27640 | OR L | |||||||
| 27641 | JR NZ,GameOver_Pause | |||||||
| 27643 | DJNZ GameOver_Pause | Decrease the repeat counter by one and loop back to GameOver_Pause until the delay has been done four times. | ||||||
| 27645 | RET | Return. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 27567 | Up: Map | Next: 27646 |