-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (43 loc) · 1.6 KB
/
index.html
File metadata and controls
43 lines (43 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Snake Game</title>
<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">
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
</head>
<body>
<div id="game-container">
<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">
<!-- O conteúdo do jogo (cobra, comida) será desenhado aqui pelo JavaScript -->
</div>
</div>
</div>
</div>
<div id="game-info">
<img id="logo" src="images/snake-game-ai-gen.png" alt="snake-logo" />
<p id="instruction-text">Press space bar<br/>to start the game</p>
</div>
</div>
<div id="mobile-controls">
<div class="d-pad">
<button id="up-btn" class="control-btn">▲</button>
<button id="left-btn" class="control-btn">◄</button>
<button id="right-btn" class="control-btn">►</button>
<button id="down-btn" class="control-btn">▼</button>
</div>
<button id="start-btn" class="control-btn">Start</button>
</div>
</body>
</html>