← Back to Menu

⚽ Bouncing Ball

Balls: 1Gravity: 0.3
Click anywhere to add bouncing balls! Drag to launch.

How to play

Bouncing Ball is a physics sandbox rather than a contest. The canvas opens with one ball falling in the centre and you add more by pressing on the board. Each ball gets a random size between 8 and 20 pixels and a random colour, falls under a gravity of 0.3 per frame, bounces off all four walls and collides with the others.

Scoring

No points are kept. The two readouts are the current number of balls, which climbs by one with every ball you add, and the gravity constant, fixed at 0.3. The simulation uses values you can watch in action: the floor returns 85 per cent of a ball's downward speed, the walls and ceiling 90 per cent, and ball-to-ball impacts split the closing speed evenly and push the pair apart so they do not overlap.

Tips

Frequently asked questions

Can I play this on a phone?

Yes — on a touch screen the game shows on-screen buttons, and games played with a mouse work by tapping.

Can I change the gravity?

No. The value is fixed at 0.3 in this build; the readout tells you what the simulation is using.

How many balls can I add?

There is no limit, but every pair of balls is checked for collisions, so the animation slows once you reach the hundreds.