This commit is contained in:
sotos
2025-12-10 13:56:56 +01:00
parent 9fab4a6a9d
commit 4fb9e846b2
4 changed files with 133 additions and 189 deletions

View File

@@ -1,33 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=VT323&display=swap"
rel="stylesheet"
/>
<title>Snake Game</title>
<link rel="stylesheet" href="style.css" />
<script src="script.js" defer></script>
</head>
<body>
<div>
<div class="scores">
<h1 id="score">000</h1>
<h1 id="highScore">000</h1>
</div>
<div class="game-border-1">
<div class="game-border-2">
<div class="game-border-3">
<div id="game-board"></div>
</div>
</div>
</div>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet" />
<title>Snake Game</title>
<link rel="stylesheet" href="style.css" />
<script src="script.js" defer></script>
</head>
<body>
<div class="container">
<div class="scores">
<h1 id="score">000</h1>
<h1 id="highScore">000</h1>
</div>
<h1 id="instruction-text">Press spacebar to start the game</h1>
<div id="game-board"></div>
<h1 id="instruction-text">Press spacebar or tap to start the game</h1>
<img id="logo" src="snake-game-ai-gen.png" alt="snake-logo" />
</body>
</div>
</body>
</html>