+ 2
Why the ball blinks when it falls? Please help me fix thank you😁
3 Respuestas
+ 1
From a quick look, I think setInterval() is the culprit, the canvas is cleared & rendered multiple times a frame, try migrating to https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame instead.
Although I might be wrong...
+ 1
FlamingArrow can I have the code?
0
Charlotte 💕❤️😃 [Imaziue Coders] I don't really understand how your code works so I am afraid I can't fix it, but here is a very simple demo program for what you are trying to do.
https://code.sololearn.com/WibnH08LDo7w/?ref=app