Back to Skool Routines
Prev: 30785 Up: Map Next: 30804
30786: Knock down kid hit by pellet
Used by the routine at 30380.
D Character number of kid hit by pellet (206-210)
H Character number of pellet (213 or 214)
30786 LD A,H A=character number of pellet
30787 CP 214 Is this ERIC's catapult pellet?
30789 JR NZ,30801 Jump if not (it's BOY WANDER's)
30791 LD A,D A=character number of the kid hit by the pellet
30792 CP 208 Did the pellet hit ANGELFACE?
30794 JR NZ,30801 Jump if not
30796 LD A,3 ERIC's pellet hit ANGELFACE; add 30 to the score and print it
30798 CALL 29621
30801 JP 29982 Terminate the pellet and knock the kid over
Prev: 30785 Up: Map Next: 30804