forked from saral-gupta7/dodge-objects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (52 loc) · 1.89 KB
/
index.html
File metadata and controls
58 lines (52 loc) · 1.89 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
53
54
55
56
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Dodge the Falling Objects</title>
<link rel="stylesheet" href="./CSS/index.css" />
</head>
<body>
<main class="page">
<section class="game-shell">
<header class="game-header">
<h1 class="game-title">Dodge the Falling Objects</h1>
<div class="game-stats">
<div class="stat">
<span class="stat-label">Time</span>
<span id="current-time" class="stat-value">0.00s</span>
</div>
<div class="stat">
<span class="stat-label">Best</span>
<span id="best-time" class="stat-value">0.00s</span>
</div>
</div>
</header>
<div class="game-wrapper">
<div id="game-area" class="game-area">
<div id="player" class="player"></div>
<div id="overlay" class="overlay overlay--hidden" aria-hidden="true">
<div class="overlay-content">
<h2 class="overlay-title" id="overlay-title">Game Over</h2>
<p class="overlay-text">
Survived for <span id="final-time">0.00s</span>
</p>
<button id="restart-button" class="btn-primary" type="button">
Play Again
</button>
</div>
</div>
</div>
</div>
<footer class="game-footer">
<p class="hint">
Controls: <span class="hint-key">←</span> <span class="hint-key">→</span>
or <span class="hint-key">A</span> <span class="hint-key">D</span> to move.
Press <span class="hint-key">Space</span> to start.
</p>
</footer>
</section>
</main>
<script src="./JS/index.js"></script>
</body>
</html>