forked from MattSurabian/DuckHunt-JS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
77 lines (60 loc) · 3.81 KB
/
index.html
File metadata and controls
77 lines (60 loc) · 3.81 KB
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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Duck Hunt JS</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="style.css"/>
<script src="scripts/jquery.js"></script>
<script src="scripts/jquery.color.js"></script>
<script src="scripts/duckhunt.js"></script>
<script src="scripts/jquery.spritely-0.6.js" type="text/javascript"></script>
<script>
</script>
<style>
</style>
</head>
<body>
<div id="header"><h1>Duck Hunt via HTML5 + JavaScript<br/><small>with level creator!</small></h1></div>
<div onClick="muteAll();" id="mute" style="cursor:pointer;z-index:5;width:900px;margin:0 auto;"><small>MUTE</small></div>
<div id="gameField">
<div id="game"></div>
<div class="gameinfo" id="ammo"></div>
<div class="gameinfo" id="waves"></div>
<div class="gameinfo" id="ducksKilled"></div>
<div class="gameinfo" id="scoreboard"></div>
<div id="loser" class="messages">
Are you kidding me with that?
<br/><br/>
<div class="tryAgain" onClick="tryAgain();">Try Again</div>
</div>
<div id="winner" class="messages">
You are a champion!
</div>
<div id="level" class="messages">
Level 1
</div>
</div>
<div id="levelCreate" style="width:900px;margin:0 auto;"><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" style="margin-left:15px;display:inline;padding:5px;border:solid;width:100px;text-align:center;cursor:pointer;" onClick="makeLevel()">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>
<audio class="sounds" id="gunSound" preload="auto" style="display: none;" src="sounds/gunSound.wav"></audio>
<audio class="sounds" id="gunSound2" preload="auto" style="display: none;" src="sounds/gunSound2.wav"></audio>
<audio class="sounds" id="laugh" preload="auto" style="display: none;" src="sounds/laugh.wav"></audio>
<audio class="sounds" id="laugh2" preload="auto" style="display: none;" src="sounds/laugh2.wav"></audio>
<audio class="sounds" id="quak" preload="auto" style="display: none;" src="sounds/quak.wav"></audio>
<audio class="sounds" id="thud" preload="auto" style="display: none;" src="sounds/thud.wav"></audio>
<audio class="sounds" id="ohyeah" preload="auto" style="display: none;" src="sounds/ohYeah.wav"></audio>
<audio class="sounds" id="wings" loop="loop" preload="auto" style="display: none;" src="sounds/wings.wav"></audio>
<audio class="sounds" id="quacking" loop="loop" preload="auto" style="display: none;" src="sounds/quacking.wav"></audio>
<audio class="sounds" id="sniff" preload="auto" style="display: none;" src="sounds/sniff.wav"></audio>
<audio class="sounds" id="bark" preload="auto" style="display: none;" src="sounds/barkDucks.wav"></audio>
<audio class="sounds" id="champSound" preload="auto" style="display: none;" src="sounds/champ.wav"></audio>
<audio class="sounds" id="loserSound" preload="auto" style="display: none;" src="sounds/loserSound.wav"></audio>
<div id="info"></div>
</body>
</html>