Prev: B892 Up: Map Next: B8A9
B894: Ball bouncing on the spot: rise
Used by the routine at ud_ball_rise_or_fall.
dZ is set to 3 every frame, so after the move's DEC it rises a steady two units. Once above the ceiling it is marked as falling, and gravity takes over from the next frame.
ball_up B894 LD (IX+$0B),$03 up two units
B898 CALL dec_dZ_and_update_XYZ
B89B LD A,($5BBD) above the ceiling? start falling
B89E CP (IX+$03)
B8A1 JR NC,ud_ball_draw
B8A3 RES 2,(IX+$0D)
B8A7 JR ud_ball_draw
Prev: B892 Up: Map Next: B8A9