Use the arrow keys to move the ball and the A and D keys to rotate the obstacle. As of current going to an angle more than the current is broken (e.g. going from 90° to 180°).
I have been spending ages trying to find an equation to find which direction an object bounces. Special thanks to my dad for giving me some help. Later I might make this work with a universal equation which would allow it to work no matter the angle but as of now I do not know how to, I only have a basic concept.