-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (50 loc) · 1.81 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Flappy Bird</title>
</head>
<body>
<!-- Audio level visualiser -->
<div class="level-visualizer">
<hr class="upper-slider">
<hr class="lower-slider">
<div class="inner-visualizer-bar"></div>
</div>
<img class="Microphone" src="./Images/microphone.png" alt="8bit microphone">
<input class="ThresholdUpper" type="range" min="0" max="100" step="5" value="35" />
<input class="ThresholdLower" type="range" min="0" max="100" step="5" value="30"/>
<!----------------------------->
<!-- Toggle tussen de 2 audio modes -->
<div class="slider-container">
<h2>Audio Bar Height</h2>
<label class="toggle-slider">
<input id="checkbox" type="checkbox" checked>
<span class="slider"></span>
</label>
<h2>Threshold Jump</h2>
</div>
<!--------------------------------->
<!-- Game canvas -->
<div class="game-container">
<canvas class="canvas" width="900" height="550" style="border: 1px solid black;"></canvas>
<!-- Gameover popup message -->
<div class="gameover-message">
<img src="./Images/GameOver.png" alt="Flappy bird game over message">
<p>MEDAL</p>
<img class="medal-image" src="./Images/medal_platinum.png" alt="placeholder for medal">
<p>SCORE <br><span class="current-score"></span></p>
<h2>NEW!</h2>
<p>BEST <br><span class="best-score"></span></p>
<button class="restartButton">Restart</button>
</div>
</div>
<!-- Fix audio button -->
<button class="audio-button">FIX AUDIO</button>
<!-- Game script -->
<script src="flappybird.js"></script>
</body>
</html>