-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
123 lines (117 loc) · 4.12 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Clean The River - Maths Game</title>
<link rel="stylesheet" href="style.css" />
<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="icon" type="image/png" href="img/duck_icon.png" />
</head>
<body>
<!-- <audio src="../audio/animal_crossing_bgm.wav"></audio> -->
<!-- Header -->
<header>
<h1 class="main-title">Let's Clean The River!</h1>
<div class="header-content">
<!-- Keeps track of user's score and time -->
<div class="hud hidden">
<div class="hud-item">Lives: <span id="lives"></span></div>
<div class="hud-item">Score: <span id="rubbish-cleared"></span></div>
<p class="return-home">Exit</p>
<div class="equation-log"></div>
</div>
</div>
<div class="duck">
<p id="duck-img"></p>
<div id="speech-bubble">
<div id="bub-part-a"></div>
<div id="bub-part-b"></div>
<div id="bub-part-c"></div>
<div id="speech-txt">Can you help me clean the river?</div>
<div id="bub-part-c"></div>
<div id="bub-part-b"></div>
<div id="bub-part-a"></div>
<div id="speech-arrow">
<div id="arrow-w"></div>
<div id="arrow-x"></div>
<div id="arrow-y"></div>
<div id="arrow-z"></div>
</div>
</div>
</div>
<div class="rubbish-monster">
<p id="rubbish-monster-img"></p>
</div>
<p class="music">
Music:
<span class="control-music"><i class="fas fa-volume-up"></i></span>
</p>
</header>
<main>
<!-- Choose Your Gamemode -->
<div class="menu">
<p class="menu-title">Choose Your Gamemode</p>
<table class="gamemode">
<tr>
<td class="mode-label">Symbols:</td>
<td class="mode-option">
<div class="select-symbol">+</div>
<div class="select-symbol">-</div>
<div class="select-symbol unselected">x</div>
</td>
</tr>
<tr>
<td class="mode-label">Difficulty:</td>
<td class="mode-option">
<select name="difficulty" id="difficulty">
<option value="easy">Easy</option>
<option value="normal">Normal</option>
<option value="hard">Hard</option>
<option value="insane">Insane</option>
</select>
</td>
</tr>
<tr>
<td class="mode-label">Lives:</td>
<td class="mode-option">
<select name="health" id="health">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="inf" selected="selected">Unlimited</option>
</select>
</td>
</tr>
</table>
<p class="start-game">Start Game</p>
</div>
<!-- Start Game -->
<div class="gameplay hidden">
<div class="equation">
<!-- Javascript to populate stuffs here -->
<span class="equation-slot" id="slot-1"></span>
<span class="equation-slot" id="slot-2"></span>
<span class="equation-slot" id="slot-3"></span>
<span>=</span>
<!-- Last Child is for user input -->
<input type="text" class="user-input" maxlength="4" placeholder="0" />
</div>
<div class="river">
<!-- Fancy Javascript to populate stuffs here -->
<img src="img/river.png" alt="river" class="river-img" />
</div>
</div>
</main>
<script
src="https://kit.fontawesome.com/5524d217a2.js"
crossorigin="anonymous"
></script>
<script type="module" src="index.js"></script>
</body>
</html>