![]() |
Routines |
| Prev: 25374 | Up: Map | Next: 25423 |
|
Used by the routine at Game_Restart.
Shows the "SPRAY THE BUGS" message, clears the scores and all of the game variables and objects, sets up the data for both players and then starts the first level. Continues on to the main loop.
|
||||||||
| StartGame | 25389 | CALL CreateWindow | Create the game window using CreateWindow. | |||||
| 25392 | LD HL,28744 | HL=28744 (screen position). | ||||||
| 25395 | LD DE,25374 | DE=Message_SprayBugs. | ||||||
| 25398 | CALL GameOverPrint_Pause | Print the message and pause using GameOverPrint_Pause. | ||||||
| 25401 | LD HL,24069 | Write 0 to every byte from 1UP_Score_1 to 24299 (the scores, the game variables and the objects). | ||||||
| 25404 | LD (HL),0 | |||||||
| 25406 | LD D,H | |||||||
| 25407 | LD E,L | |||||||
| 25408 | INC DE | |||||||
| 25409 | LD BC,230 | |||||||
| 25412 | LDIR | |||||||
| 25414 | CALL ResetPlayerData | Reset the player data using ResetPlayerData. | ||||||
| 25417 | CALL ResetModifiedCode | Reset the modified code using ResetModifiedCode. | ||||||
| 25420 | CALL LevelNew | Start the first level using LevelNew. | ||||||
|
Continue on to MainLoop_NewPass.
View the equivalent code in;
|
||||||||
| Prev: 25374 | Up: Map | Next: 25423 |