// Example start (you replace this with your full game) const canvas = document.getElementById("game"); const ctx = canvas.getContext("2d"); canvas.width = window.innerWidth; canvas.height = window.innerHeight; function loop() { ctx.fillStyle = "black"; ctx.fillRect(0, 0, canvas.width, canvas.height); requestAnimationFrame(loop); } loop();