hi! this is my first real project, and I plan to improve the concept in the future. ---------------- press [space] to clear all the walls, you can draw by left-clicking. on the top there are some parameters you can change, such as the size of the ball, its speed and its hue. --------------------- it is not bug-free, so if you get your ball stuck you can either press the green flag again or mess with the parameters. more parameters will be added in the future.
checking for collisions wasn't an easy task since there is no way to tell what the slope of the wall is. I overcame it by creating a costume to the ball that works similar to a clock's hand, and rotates in order to find which size the ball is colliding with. if you know a smarter way to do this, please write it in the comments! thx :)