Prev: 6414 Up: Map Next: 6444
6423: Handle missile hit on ship
Used by the routine at check_missile_vs_objects.
Awards POINTS_SHIP and spawns 3 explosion fragments in a triangular pattern to cover the ship's width.
hit_ship 6423 LD A,$03 Award POINTS_SHIP to player.
6425 CALL add_points
6428 LD BC,($5F8B) Load coordinates from collision_coordinates and spawn explosion 1 (left).
642C CALL spawn_explosion_fragment
642F LD A,C Move X+8 and spawn explosion 2 (right).
6430 ADD A,$08
6432 LD C,A
6433 CALL spawn_explosion_fragment
6436 LD A,C Move X-8, Y+4 and spawn explosion 3 (center-bottom).
6437 SUB $08
6439 LD C,A
643A LD A,B
643B ADD A,$04
643D LD B,A
643E CALL spawn_explosion_fragment
6441 JP process_collision_hit Finalize collision.
Prev: 6414 Up: Map Next: 6444