, 1000);

function update() if (!gameRunning) return; // game logic

function gameLoop() update(); draw(); requestAnimationFrame(gameLoop);

Cookies

For magic to happen, we use cookies. Read our Privacy Policy to learn more.