function start()
{
ball = {x: totalHeight/2 - 10,
y: totalHeight/2 - 10,
size: 20};
}
function update()
{
clearScreen();
circle(ball.x, ball.y, ball.size, "black");
if (distance(ball.x, ball.y, mouse.x, mouse.y) < 20) {}
}
Hoppas ni kan hjälpa!
-Robin