I am trying to make a game with a ball that bounces off the platforms, but every once in a while the ball falls through the platform and I can’t figure out when or why.
https://github.com/lizzybrooks/Bouncingball/blob/master/Test%20game%202/sketch.js
there is a problem with the x position you check in bounce
Thank you so much! <3 <3<3<3<3<3<3