Prev: 60CD Up: Map Next: 616A
60DD: Reset Player
Used by the routine at AnimateExplosion.
PlayerReset 60DD LD HL,$5D48
60E0 LD B,$0A
60E2 CALL SetObjsInactive
60E5 LD HL,$5D3C
60E8 RES 1,(HL)
60EA LD HL,$5D44
60ED RES 1,(HL)
60EF LD A,($5CF3)
60F2 AND $01
60F4 JR NZ,PlayerReset_1
PlayerReset_0 60F6 LD A,($5DF1)
60F9 AND A
60FA JP Z,PlayerReset_7
60FD CALL LevelInitialisation
6100 JP PlayerInitialisation
PlayerReset_1 6103 LD A,($5DF9) A=InactivePlayer_Lives
6106 AND A
6107 JR Z,PlayerReset_0
6109 LD A,($5DF1)
610C AND A
610D CALL Z,PlayerReset_6
6110 CALL ChangePlayer
6113 LD A,($5DD1)
6116 CPL
6117 LD ($5DD1),A
611A LD A,($5D34)
611D RLCA
611E RLCA
611F RLCA
6120 AND $38
6122 CALL MeteorUpdate_23
6125 CALL LevelInitialisation
6128 JP PlayerInitialisation
PlayerReset_2 612B LD A,$B1
PlayerReset_3 612D LD ($6199),A
6130 CALL CreateWindow
6133 LD DE,$6187
6136 LD HL,$7038
6139 CALL PrintString
613C LD B,$04
613E LD HL,$0000
PlayerReset_4 6141 DEC HL
6142 LD A,H
6143 OR L
6144 JR NZ,PlayerReset_4
6146 DJNZ PlayerReset_4 Decrease B by one, jump to PlayerReset_4 if not zero
6148 RET
PlayerReset_5 6149 LD A,$B2
614B JR PlayerReset_3
PlayerReset_6 614D LD A,($5DD1)
6150 AND A
6151 JR Z,PlayerReset_2
6153 JR PlayerReset_5
PlayerReset_7 6155 CALL NewHighScore
6158 LD A,($5DD1)
615B AND A
615C JR NZ,PlayerReset_8
615E CALL PlayerReset_2
6161 JP Game_Restart
PlayerReset_8 6164 CALL PlayerReset_5
6167 JP Game_Restart
Prev: 60CD Up: Map Next: 616A