-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
55 lines (44 loc) · 2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Super Ultra Mega Sonic Evolution Tapping of Keyboard</title>
<!-- font-family: 'Bungee Shade', cursive; -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Bungee+Shade&display=swap" rel="stylesheet">
<!-- font-family: 'Saira Semi Condensed', sans-serif; -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Saira+Semi+Condensed&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./style.css">
<script src="./js/detectHit.js" defer></script> <!-- Keypress and collision handler -->
<script src="./js/script.js" defer></script>
<script src="./js/buttons.js" defer></script> <!-- Start and pause buttons -->
</head>
<body>
<h1>Super Ultra Mega Sonic Evolution Tapping of Keyboard™</h1>
<div id="splash"></div>
<div id="container">
<aside id="top">
<div id="health-box">
<div id="health"></div>
</div>
</aside>
<main>
<canvas id="game">
Game Canvas
</canvas>
<div id="instructions">Use the A, S, W, and D keys, respectively, to hit the arrows when they reach their placeholders at the top. <br><br>
Make sure your health on top doesn't go to zero — Good luck!</div>
<div class="result" id="win">Congratulations, you've made it!! 🥳</div>
<div class="result" id="lose">You missed too many arrows!! Be more careful next time. 🥵</div>
</main>
<aside id="bottom">
<!-- Start button. -->
<button id="start-button">Start</button>
<!-- Pause button. -->
<button id="pause-button">Pause</button>
</aside>
</div>
</body>
</html>