Snake
This commit is contained in:
47
index.html
47
index.html
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user