![]() |
Routines |
| Prev: B63C | Up: Map | Next: B65D |
|
Used by the routine at bounce_ball_on_landing.
Bit 0 of the refresh register is the coin toss. Heads, the new heading is along Y and is worked out here and at bounce_ball_y_sense; tails, along X at bounce_ball_x_axis.
|
||||
| bounce_ball_pick_axis | B64F | LD A,R | R register bit 0: 0 goes along X | |
| B651 | AND $01 | |||
| B653 | JR Z,bounce_ball_x_axis | |||
| B655 | LD A,($5C0A) | carry if the player's Y is less than the ball's | ||
| B658 | CP (IX+$02) | |||
| B65B | LD A,$02 | |||
| Prev: B63C | Up: Map | Next: B65D |