-
After clicking the reset button multiple times, you can start to notice the cube fall faster than it should. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
doppl3r
Jan 7, 2024
Replies: 2 comments
-
You'll want to remove the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Mukul1127
-
I though I would catch a issue like that. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'll want to remove the
requestAnimationFrame(() => gameLoop(scalingFactors));
line within yourresetButton
click event. You are currently doubling yourgameLoop
function every time you click the reset button.