you can modify the objects sprite and see what happens you can also drag the ball around to add velocity to it press space to swap levels (ik they aren't really 'levels' but whatever) press v to show/hide the x/y velocity, the angle of whatever it just bounced on, and change the gravity press t to toggle a pen trail
all code by me this doesn't work with multiple balls or moving objects (if an object is moving collisions will work but bouncing will be calculated as if the object isnt moving) it also doesnt do well with thin objects collisions are supposed to be 100% elastic (no energy is lost or gained) but it isn't 100% accurate, thats why the ball stops moving eventually (unless its bouncing in a regular pattern)