Prev: A944 Up: Map Next: A99F
A97A: Initialise New Game
Used by the routine at GameEntryPoint.
InitialiseNewGame A97A LD HL,$AB80 HL=1UP_Lives.
Set starting lives.
A97D LD (HL),$03 Write 03 to *HL.
A97F INC HL Increment HL by one.
Set starting level.
A980 LD (HL),$00 Write 00 to *HL.
A982 INC HL Increment HL by one.
Set starting score to 0000.
A983 LD (HL),$00 Write 00 to *HL.
A985 INC HL Increment HL by one.
A986 LD (HL),$00 Write 00 to *HL.
A988 INC HL Increment HL by one.
A989 LD (HL),$00 Write 00 to *HL.
A98B INC HL Increment HL by one.
Remember where we are for the copy routine ahead.
A98C LD E,L E=L.
A98D LD D,H D=H.
Set the active player to be 1UP.
A98E LD HL,$AB80 Write 1UP_Lives to ActivePlayer.
A991 LD ($AB7E),HL
A994 LD BC,$0005 BC=0005.
A997 LDIR Copy the same values to 2UP.
Reset the game flags for the new game.
A999 LD HL,$AB8A Write 00 to Game_Flags.
A99C LD (HL),$00
A99E RET Return.
Prev: A944 Up: Map Next: A99F