tetromino/index.html
2024-03-09 12:14:14 +01:00

34 lines
1.3 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<title>Tetris</title>
</head>
<body>
<div id="gui">
<canvas id="tablero" width="200" height="400"></canvas>
<div id="marcador">
<h2>Tetris</h2>
<p>Score: <span id="score">0</span> </p>
<div id="leyendaTeclas">
<div><span style="font-size: 24px;">➡️</span> Cursor derecha</div>
<div><span style="font-size: 24px;">⬅️</span> Cursor izquierda</div>
<div><span style="font-size: 24px;">⬇️</span> Cursor abajo</div>
<div><span style="font-size: 24px;">🔄</span> Barra espaciadora</div>
<div><span style="font-size: 24px;">1</span> Ventana debug</div>
</div>
<div style="font-size: 8px;">Esc - Salir partida</div>
<button id="startButton" onclick="iniciarPartida()">Start</button>
</div>
</div>
<textarea id="debug" cols="30" rows="10"></textarea>
<audio id="musica" src="./assets/Tetris.mp3" loop></audio>
<script src="game.js"></script>
</body>
</html>