Use a physics library

#genuary15

p5.js
#genuary15 #genuary2024 Water Melon Game Alternative

How to play

To drop the next object, click anywhere on the screen.
The color of the top or bottom line indicates the color of the next object.
When you connect objects of the same color, they grow larger.