wkeeling/arkanoid

Ball needs to break out more quickly from horizontal angles

Closed this issue · 1 comments

The ball can sometimes get into a horizontal bounce pattern (angle at 0 or 180). It eventually breaks out of this itself due to the randomness added on each bounce. But this doesn't happen quickly enough and the player can be left sitting doing nothing whilst waiting for the ball to recover. We should speed this up, so if the ball ever enters a horizontal angle (e.g. 0 +/- 10 and 180 +/- 10) then it bounces itself out.

This has now been implemented (as well as vertical angles).