PlayCode
Create
Log in
Sign up
Roadmap
Feedback
Bug Reports
125
Changelog
Voters
Jane Doe
Powered by Canny
1
Code editing does not stop requestAnimationFrame loop.
Jane Doe
// Main game loop
function gameLoop() {
// game logic
// Next frame
requestAnimationFrame(gameLoop);
}
// Start the loop
gameLoop();
Every time js is edited, new instance of game loop starts in the browser. hard reset helps though.
19 hours ago
Powered by Canny