-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (89 loc) · 3.18 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
<!doctype html>
<html>
<head>
<script type="module" src='./public/js/menu/menu.js'></script>
<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=Nunito&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./public/css/style.css">
<title>Air Hockey 3D</title>
</head>
<body>
<div id="loading" class="loading"></div>
<audio id="song">
<source src="./public/sounds/BOX_15.mp3" type="audio/mpeg">
</audio>
<audio id="song" preload="auto">
<source src="./public/sounds/game_end.mp3" type="audio/mpeg">
</audio>
<audio id="song" preload="auto">
<source src="./public/sounds/game_start.mp3" type="audio/mpeg">
</audio>
<audio id="song" preload="auto">
<source src="./public/sounds/goal.mp3" type="audio/mpeg">
</audio>
<audio id="song" preload="auto">
<source src="./public/sounds/puck_hit.mp3" type="audio/mpeg">
</audio>
<div id="menuContainer">
<div id="menuCanvas"></div>
</div>
<dialog id="options">
<div class="header">
<h2>Options</h2>
<b id="closeOptions">X</b>
</div>
<hr>
<div class="menu">
<div class="option">
<h3>Difficulty</h3>
<input type="radio" id="easy" name="difficulty" value="0.1" checked>
<label for="easy">Easy</label><br>
<input type="radio" id="medium" name="difficulty" value="0.3">
<label for="medium">Medium</label><br>
<input type="radio" id="hard" name="difficulty" value="0.5">
<label for="hard">Hard</label><br>
<input type="radio" id="impossible" name="difficulty" value="0.7">
<label for="impossible">Impossible</label>
</div>
<div class="option">
<h3>In game</h3>
1 <input type="range" id="points" name="points" min="1" max="10" value="4">10 points
<br>
</div>
<div class="option">
<h3>Volume</h3>
0 <input type="range" id="volume" name="points" min="0" max="100" value="5">100
<br>
<input type="checkbox" id="audioOnOff">
<label for="audioOnOff">Audio On/Off</label>
</div>
</div>
</dialog>
<dialog id="credits" modal-mode="mega">
<div class="header">
<h2>Credits</h2>
<b id="closeCredits">X</b>
</div>
<hr>
<div class="credit">
Game Developed by Gian Marco Nobile and Alfredo Lipari
</div>
</dialog>
<dialog id="endgame">
<div class="headerEndGame">
<h2 id="textEndGame" > </h2>
</div>
<hr>
<div class="buttons">
<button id="retry">Retry</button>
<button id="settings">Settings</button>
<button id="main">Go Main Menu</button>
</div>
</dialog>
<div id="gameContainer">
<div id='gameCanvas'></div>
</div>
</div>
</body>
</html>