Prev: B626 Up: Map Next: B64F
B63C: Bouncing ball: on landing, bounce
Used by the routine at bounce_ball_set_sense.
Nothing changes while the ball is in the air. When the last move left it standing on something, dZ is set to the bounce value and a new heading is chosen in bounce_ball_pick_axis.
Input
A the bounce dZ
bounce_ball_on_landing B63C BIT 2,(IX+$0C) not on the ground: keep flying
B640 JR Z,bounce_ball_animate
B642 LD (IX+$0B),A landed: jump
B645 LD A,($5BC2) thud only if it was falling, not if it was already resting
B648 AND A
B649 JP P,bounce_ball_pick_axis
B64C CALL sound_thud
Prev: B626 Up: Map Next: B64F