See inside for code on how to calculate a bouncing ball angle. Hit space bar to change between horizontal and vertical walls.