To detect when objects collide each other is obviously important in games. Last experiment was already detecting collisions bewteen the ball and the bounds of the canvas. I wonder how hard it is to detect collisions with oher moving objects. MDN might help.
Click to start.
Crash test 1
x:
y:
Still not perfect
x:
y:
With MDN's help
x:
y:
Let's make the second ball move too
Balls party! +