-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (39 loc) · 1.23 KB
/
index.html
File metadata and controls
52 lines (39 loc) · 1.23 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
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<script src="app.js" type="module" defer></script>
<title>Snake Game</title>
</head>
<body>
<div class="scanline"></div>
<div class="crt-effect"></div>
<div class="container">
<header>
<h1 class="title">SNAKE GAME</h1>
<p class="subtitle">RETRO GAMING ENTERTAINMENT</p>
</header>
<div class="controls">
<p>Choose game difficulty</p>
<div id="speed-buttons">
<button data-speed="300" class="view-toggle active">Slug</button>
<button data-speed="200" class="view-toggle">Worm</button>
<button data-speed="100" class="view-toggle">Viper</button>
</div>
</div>
<section class="game-display">
<canvas id="canvas"></canvas>
<div id="score">Score :</div>
</section>
<div class="controls">
<button class="retro-btn" id="btn-start">Start</button>
<button class="retro-btn" id="btn-replay">Replay</button>
</div>
<footer class="footer">
© 2023 PIXEL LEGENDS • PRESS START TO PLAY
</footer>
</div>
</body>
</html>