Sketch 1 – Bouncing Ball

A simple bouncing ball implemented in p5.js, running locally with consistent physics and smooth animation.

✅ Conditional: Checks walls → if (ball.y > height - radius) { velocityY *= -1 }

✅ Loop: Implicit draw loop ensures continuous motion

✅ Custom variables: position, velocity, gravity

⬇ Download sketch1.js