<button id="clickBtn">Press rapidly</button> <p>Time: <span id="timer">10</span> | Score: <span id="score">0</span></p> [GitHub Gist style – but here’s minimal index.html for launcher]
HTML:
function gameLoop() update(); draw(); requestAnimationFrame(gameLoop); unblocked games
function update() if (!gameRunning) return; // game logic | Score: <