Basic Ball bouncing with mouse

Hi! I need help because I don’t know where to start. I want to build a small game of tiles where you start with a grid of 5x5 balls opposed to one ball that represents the user’s cursor. The first need is to be able to hit the other balls with the mouse and make them bounce across the screen. Do you know any existing code from which I can base myself to start altering it to my needs? Thanks.

https://processing.org/examples/bouncybubbles.html

1 Like