spam pizza
<!DOCTYPE html> <html> <head> <title>2D Zelda Game</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <canvas id="gameCanvas" width="800" height="600"></canvas> <script src="script.js"></script> </body> </html> const canvas = document.getElementById("gameCanvas"); const ctx = canvas.getContext("2d"); const player = { x: 50, y: 50, width: 32, height: 32, speed: 5, }; function gameLoop() { clearCanvas(); movePlayer(); drawPlayer(); requestAnimationFrame(gameLoop); } function clearCanvas() { ctx.clearRect(0, 0, canvas.width, canvas.height); } function movePlayer() { // Implement player movement logic here (e.g., arrow keys). } function drawPlayer() { ctx.fillStyle = "green"; ctx.fillRect(player.x, player.y, player.width, player.height); } document.addEventListener("keydown", (e) => { // Handle player input for movement and actions. }); gameLoop(); You