So kind words. Thank you so much for your positive feedback. It motivates me to make more games and especially publish more. Especially with special physics I have made some creations but only for myself.
So, I can just send you a big Thanks!
And you asked for the collision: So, I used vector math and I check what’s the nearest point for the ball to a wall, one of the endpoints or a point on the line. You can do that with vector math or trigonometry. And when having the closest point then you can calculate the distance and see if the ball center is less than the radius away from the wall and the resolve the position first and then the velocity with an elasticity factor. Complex but nice.
For the physics and math it’s worth to work on it in detail and write the code more general, so you can use it in other projects with some changes and also you can adapt in for other programming languages.
Have a good time, let’s stay in contact and fun with the jam!