Prev: 72F6 Up: Map Next: 73E6
736E: Handler for Bomb 2.
Used by the routines at Ship_Update and Bomb_Move.
Bomb2_Handler 736E LD HL,(Bomb2_Offset)
7371 LD DE,(Rocket1_Offset)
7375 XOR A
7376 SBC HL,DE
7378 JR NZ,Bomb2_Handler_0
737A LD (Rocket1_Offset),HL
737D JR Bomb2_Handler_1
Bomb2_Handler_0 737F LD HL,(Bomb2_Offset)
7382 LD DE,(Rocket2_Offset)
7386 XOR A
7387 SBC HL,DE
7389 JR NZ,Bomb2_Handler_1
738B LD (Rocket2_Offset),HL
Bomb2_Handler_1 738E LD HL,(Bomb2_Offset)
7391 LD DE,BgMap_Start0
7394 ADD HL,DE
7395 LD A,(HL)
7396 CP $20
7398 JR Z,Bomb2_Handler_5
739A CP $98
739C JR NZ,Bomb2_Handler_2
739E CALL Score_AddTen
73A1 JR Bomb2_Handler_4
Bomb2_Handler_2 73A3 CP $96
73A5 JR NZ,Bomb2_Handler_3
73A7 CALL Score_Add20
73AA JR Bomb2_Handler_4
Bomb2_Handler_3 73AC CP $97
73AE JR NZ,Bomb2_Handler_6
73B0 CALL Score_Add100
Bomb2_Handler_4 73B3 LD A,$9A Set tile and colour for bomb.
73B5 LD (Bomb2_Tile),A
73B8 LD A,$47
73BA LD (Bomb2_Colour),A
Bomb2_Handler_5 73BD LD DE,(Bomb2_Offset)
73C1 LD HL,BgMap_Start0
73C4 ADD HL,DE
73C5 LD A,(Bomb2_Tile)
73C8 LD (HL),A
73C9 LD HL,Bg_Attr_From
73CC ADD HL,DE
73CD LD A,(Bomb2_Colour)
73D0 LD (HL),A
73D1 JR Bomb2_Handler_7
Bomb2_Handler_6 73D3 LD HL,$0000
73D6 LD (Bomb2_Offset),HL
Bomb2_Handler_7 73D9 RET
73DA NOP
73DB NOP
73DC NOP
73DD NOP
73DE NOP
73DF NOP
73E0 NOP
73E1 NOP
73E2 NOP
73E3 NOP
73E4 NOP
73E5 NOP
Prev: 72F6 Up: Map Next: 73E6