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

4th Feb 2022, 4:53 PM
Matthew Evans
1 Answer
+ 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();
4th Feb 2022, 5:16 PM
Bahhaāµ£
Bahhaāµ£ - avatar