forked from MattSurabian/DuckHunt-JS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
121 lines (97 loc) · 4.62 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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Duck Hunt JS</title>
<!-- TODO: Create favion.ico-->
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="style.css"/>
<script src="build/libs.min.js"></script>
<script src="build/duckhunt.min.js"></script>
<script src="main.js"></script>
<style>
</style>
</head>
<body>
<div id="links" class="linkText"><a href="http://mattsurabian.com/">Home</a> <a href="http://mattsurabian.com/duckhunt/">DuckHunt</a> <a href="http://mattsurabian.com/choosewisely/">ChooseWisely</a></div>
<div id="header" class="header"><h1>Duck Hunt via HTML5 + JavaScript<br/><small>with level creator!</small></h1></div>
<div class="topMenu">
<div id="mute" class="mute">mute</div>
<div class="social linkText"><a href="http://twitter.com/mattsurabian" target="_blank">Twitter</a>   <a href="https://github.com/MattSurabian/DuckHunt-JS" target="_blank">GitHub Repo</a></div>
</div>
<div id="gameField" class="gameField">
<div id="game" class="game">
<div id="theFlash" class="theFlash"></div>
<div id="tree" class="tree"></div>
<div id="grass" class="grass"></div>
</div>
<div class="gameinfo ammo" id="ammo"></div>
<div class="gameinfo waves" id="waves"></div>
<div class="gameinfo duckBoard" id="duckBoard"></div>
<div class="gameinfo scoreboard" id="scoreboard"></div>
<div id="loser" class="messages loser">
Are you kidding me with that?
<br/><br/>
<div class="tryAgain">Try Again</div>
</div>
<div id="winner" class="messages winner">
You are a champion!
</div>
<div id="level" class="messages level">
Level 1
</div>
</div>
<div id="levelCreate" class="levelCreator"><br/>
<strong>Level Creator:</strong><br/>
Waves: <input id="LCwaves" name="LCwaves" size="3" type="text" value="1"/> Starting Ducks: <input name="LCducks" id="LCducks" size="3" type="text" value="2"/> Starting Bullets: <input type="text" name="LCbullets" id="LCbullets" size="3" value="4"/> Wave Time (sec): <input type="text" name="LCwavetime" id="LCwavetime" size="3" value="10"/> Difficulty: <input type="text" name="LCdif" id="LCdif" size="3" value="5"/>
<div id="doit" class="doit">Bring It On</div>
<br/><br/>
<small>It's probably worth mentioning that it's very possible to crash your browser if you're overzealous with the level creator. Wave time is the amount of time before the ducks fly away. Difficulty is rated from 1-10 and controls the speed of the ducks. Anything over 8 is kind of ridiculous. The bullet and duck counters have a maximum size- you will receive everything you configure but they may not all display if the number of bullets or ducks is too high.</small>
</div>
<div id="info"></div>
<audio class="sounds" id="gunSound" preload="auto">
<source type="audio/ogg" src="sounds/gunSound.ogg"/>
<source type="audio/mp3" src="sounds/gunSound.mp3"/>
</audio>
<audio class="sounds" id="gunSound2" preload="auto">
<source type="audio/ogg" src="sounds/gunSound2.ogg"/>
<source type="audio/mp3" src="sounds/gunSound2.mp3"/>
</audio>
<audio class="sounds" id="laugh" preload="auto">
<source type="audio/ogg" src="sounds/laugh.ogg"/>
<source type="audio/mp3" src="sounds/laugh.mp3"/>
</audio>
<audio class="sounds" id="quak" preload="auto">
<source type="audio/ogg" src="sounds/quak.ogg"/>
<source type="audio/mp3" src="sounds/quak.mp3"/>
</audio>
<audio class="sounds" id="thud" preload="auto">
<source type="audio/ogg" src="sounds/thud.ogg"/>
<source type="audio/mp3" src="sounds/thud.mp3"/>
</audio>
<audio class="sounds" id="ohyeah" preload="auto">
<source type="audio/ogg" src="sounds/ohYeah.ogg"/>
<source type="audio/mp3" src="sounds/ohYeah.mp3"/>
</audio>
<audio class="sounds" id="quacking" loop="loop">
<source type="audio/ogg" src="sounds/quacking.ogg"/>
<source type="audio/mp3" src="sounds/quacking.mp3"/>
</audio>
<audio class="sounds" id="sniff" preload="auto">
<source type="audio/ogg" src="sounds/sniff.ogg"/>
<source type="audio/mp3" src="sounds/sniff.mp3"/>
</audio>
<audio class="sounds" id="bark" preload="auto">
<source type="audio/ogg" src="sounds/barkDucks.ogg"/>
<source type="audio/mp3" src="sounds/barkDucks.mp3"/>
</audio>
<audio class="sounds" id="victory" preload="auto">
<source type="audio/ogg" src="sounds/champ.ogg"/>
<source type="audio/mp3" src="sounds/champ.mp3"/>
</audio>
<audio class="sounds" id="defeat" preload="auto">
<source type="audio/ogg" src="sounds/loserSound.ogg"/>
<source type="audio/mp3" src="sounds/loserSound.mp3"/>
</audio>
</body>
</html>