Files
tetris-web/public/index.html

25 lines
761 B
HTML

<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Tetris Web</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<main>
<h1>Tetris</h1>
<div class="wrap">
<canvas id="game" width="300" height="600"></canvas>
<aside>
<p><b>Score:</b> <span id="score">0</span></p>
<p><b>Level:</b> <span id="level">1</span></p>
<p><b>Lines:</b> <span id="lines">0</span></p>
<p class="hint">Steuerung: ← → bewegen, ↑ drehen, ↓ soft drop, Leertaste hard drop, P Pause</p>
<button id="restart">Neustart</button>
</aside>
</div>
</main>
<script src="app.js"></script>
</body>
</html>