-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (54 loc) · 1.73 KB
/
index.html
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
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="favicon.png">
<title>Asteroids</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="main-menu-screen" class="main-menu-screen">
<div class="game-title">
<h1>
ASTEROIDS 3D
</h1>
</div>
<div class="controls">
<b>Controls</b>
<p><b>W:</b> hold to accelerate<br>
<b>S:</b> hold to decelerate<br>
<b>Mouse:</b> turn ship<br>
<b>Space:</b> shoot<br>
</p>
</div>
<div class="start-button">
<button id="start-button" class="button">START</button>
</div>
</div>
<div id="hud" class="hud">
<div class="asteroid-counter">
<div id="asteroid-counter-text">Asteroids</div>
<div id="asteroid-counter-text-value">0</div>
</div>
<div class="timer">
<div id="time-text">Time</div>
<div id="time-text-value">00:00</div>
</div>
<div class="score">
<div id="score-text">Score</div>
<div id="score-text-value">0</div>
</div>
</div>
<div id="game-over-screen" class="game-over-screen">
<h1>Game Over</h1>
<div class="endscore">
<div id="endscore-text">Score</div>
<div id="endscore-text-value">0</div>
<button id="restart-button" class="button">RESTART</button>
</div>
</div>
<canvas id="canvas"></canvas>
<script type="module" src="./scripts/main.js"></script>
</body>
</html>