Prev: 631E Up: Map Next: 634F
632D: Start Game
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.
Before After
start-game-before start-game-after
StartGame 632D CALL CreateWindow Create the game window using CreateWindow.
6330 LD HL,$7048 HL=7048 (screen position).
6333 LD DE,$631E DE=Message_SprayBugs.
6336 CALL GameOverPrint_Pause Print the message and pause using GameOverPrint_Pause.
6339 LD HL,$5E05 Write 00 to every byte from 1UP_Score_1 to 5EEB (the scores, the game variables and the objects).
633C LD (HL),$00
633E LD D,H
633F LD E,L
6340 INC DE
6341 LD BC,$00E6
6344 LDIR
6346 CALL ResetPlayerData Reset the player data using ResetPlayerData.
6349 CALL ResetModifiedCode Reset the modified code using ResetModifiedCode.
634C CALL LevelNew Start the first level using LevelNew.
Continue on to MainLoop_NewPass.
View the equivalent code in;
Prev: 631E Up: Map Next: 634F