Prev: 896F Up: Map Next: 8986
8970: Fire a spray of shots downwards from high up
Used by the routine at fire_from.
Part of fire_from, for frame 7 (kind 6), jumped to from its test of the frame. sna2ctl took these bytes for data, since no session ran them: they call fire_from's random spray, then, if the shooter is above line $67 on the screen, its Y velocity turned round so the spray goes down. Then back to the sound near the end of fire_from.
Input
IX The shooter
IY The shot
fire_spray_down 8970 CALL fire_from_4 The random spray
8973 LD A,(IX+$12) Shooter at line $67 or below: as it is
8976 CP $67
8978 JP NC,fire_from_2
897B LD A,(IY+$09) Higher: downwards
897E NEG
8980 LD (IY+$09),A
8983 JP fire_from_2 Sound it
Prev: 896F Up: Map Next: 8986