-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·79 lines (66 loc) · 2.73 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Effective JavaScript: Frogger</title>
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
<link rel="stylesheet" href="css/dialog-polyfill.css"> <!-- downloaded from github.com/GoogleChrome/dialog-polyfill -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- dialog must be direct child of body for polyfill to work -->
<dialog>
<h1>FROGGER</h1>
<div id="gameScores">
<div class="points">Your Score<span>0</span></div>
<div class="bestScore">Best Score<span>0</span></div>
</div>
<img id="selected"></img>
<h3 id="msg"></h3>
<div id="playersToSelect"></div>
<button id="start">Start Game</button>
</dialog>
<div id="canvas"></div>
<div id="scoreboard">
<h4 class="level">LEVEL
<span>ONE</span>
</h4>
<p class="lives">
LIVES<span>0</span>
</p>
<p class="points">
POINTS<span>0</span>
</p>
</div>
<div id="audio">
<!-- Players -->
<!-- http://www.soundboard.com/sb/sound/76136 -->
<audio id="chewie" src="sounds/chewie.mp3"></audio>
<!-- https://studio.code.org/blockly/media/skins/hoc2015x/flag.mp3 -->
<audio id="bb8" src="sounds/bb8.mp3"></audio>
<!-- http://www.soundboard.com/sb/R2D2_R2_D2_sounds -->
<audio id="r2d2" src="sounds/r2d2.mp3"></audio>
<!-- Noise for Fun sounds -->
<!-- Tokens -->
<audio id="token" src="sounds/NFF-steal.wav"></audio>
<audio id="phoenix" src="sounds/NFF-zing.wav"></audio>
<audio id="jediOrder" src="sounds/NFF-coin-04.wav"></audio>
<!-- Enemies -->
<audio id="vader" src="sounds/NFF-planet-secret.wav"></audio>
<audio id="kylo" src="sounds/NFF-spykit.wav"></audio>
<!-- Game events -->
<audio id="collision" src="sounds/NFF-disabled.wav"></audio>
<audio id="lastLife" src="sounds/NFF-heart-beat.wav"></audio>
<audio id="winLevel" src="sounds/NFF-rusty-bell.wav"></audio>
<audio id="lose" src="sounds/NFF-death-bell.wav"></audio>
<audio id="winGame" src="sounds/NFF-chromatic-rise.wav"></audio>
<!-- Game music -->
<!-- thesoundarchive.com-->
<audio id="rebelTheme" src="sounds/rebel-theme.wav"></audio>
</div>
<script src="js/dialog-polyfill.js"></script> <!-- downloaded from github.com/GoogleChrome/dialog-polyfill -->
<script src="js/resources.js"></script>
<script src="js/app.js"></script>
<script src="js/engine.js"></script>
</body>
</html>