Prev: 9861 Up: Map Next: 9934
9924: Shot hit sprite
Used by the routines at handle_shot_collision.
Input
IX Sprite data of shot
IY Sprite data of other
shot_hit_sprite 9924 LD A,(IY+$00) Get sprite type
9927 CP $18 If >= $18 (uncommon enemies)
9929 JR NC,shot_hit_sprite_enemy Then jump to enemy handler
992B CP $15 If >= $15 and =< $17 (laser fence)
992D JP NC,shot_hit_laser_fence Then jump to handler
9930 LD A,$01 Else set sound to 1
9932 JR shot_hit_sprite_enemy_0 And jump to enemy handler
Prev: 9861 Up: Map Next: 9934