0
How to make a ball move
I’m making a pong game but I made to ball a line somehow instead of moving away https://code.sololearn.com/WcvmU7ow5UW0/?ref=app
1 Resposta
+ 3
add beginPath() and closePath()
context.clearRect(0, 0, 600, 400);
context.beginPath()
context.arc(x, y, 25, 0, 2 *
Math.PI);
context.fillStyle="blue";
context.fill();
context.closePath();