![]() |
Routines |
| Prev: AA27 | Up: Map | Next: AA9C |
|
Used by the routines at GameOver_Controller and GameOver_ControllerRestart.
Shows the "GAME OVER PLAYER" message, with the percentage of the jungle explored, and plays a tune. The message is for player 1 when entered at GameOver_1UP_Messaging and for player 2 when entered at GameOver_2UP.
|
||||||||
|
Set up altering the "GAME OVER PLAYER X" message for 1UP.
|
||||||||
| GameOver_1UP_Messaging | AA6A | LD A,"1"+$80 | A="1" + 80 (escape character). | |||||
|
Print the messaging and pause to show it for a period of time.
|
||||||||
| GameOver_Write | AA6C | LD ($AAD3),A | Write ASCII player number to AAD3(GameOver_Text). | |||||
| AA6F | CALL ClearPlayArea_Attributes | Clear the attribute buffer of the play area. | ||||||
| AA72 | CALL ClearPlayArea | Clear the play area. | ||||||
| AA75 | LD DE,$AAD4 | Point DE at the "ADVENTURE COMPLETED" message at AdventureCompleted_Text. | ||||||
| AA78 | LD HL,$7820 | Set the print position in HL (L is the X position and H is the Y position) to 7820. | ||||||
| AA7B | CALL PrintStringColour | Print the message. | ||||||
| AA7E | LD DE,$AAC1 | Point DE at the "GAME OVER PLAYER" message at GameOver_Text. | ||||||
| AA81 | LD HL,$6038 | Set the print position in HL to 6038. | ||||||
| AA84 | CALL PrintStringColour | Print the message. | ||||||
| AA87 | CALL PrintRoomsVisited | Print the percentage of the jungle explored. | ||||||
| AA8A | LD DE,$BD28 | Point DE at the game over tune at MusicData_GameOver. | ||||||
| AA8D | CALL PlayMusic | Play the tune. | ||||||
|
Introduce a pause by counting down from 10000 twice.
|
||||||||
| AA90 | LD B,$02 | Set the number of delays in B to 02. | ||||||
| AA92 | LD HL,$0000 | Set the delay counter in HL to 00 (which counts down from 10000). | ||||||
| AA95 | JP Pause | Jump to Pause to pause. | ||||||
|
This entry point is used by the routines at GameOver_Controller and GameOver_ControllerRestart.
Set up altering the "GAME OVER PLAYER X" message for 2UP.
|
||||||||
| GameOver_2UP | AA98 | LD A,"2"+$80 | A="2" + 80 (escape character). | |||||
| AA9A | JR GameOver_Write | Jump to GameOver_Write. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: AA27 | Up: Map | Next: AA9C |