-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
105 lines (88 loc) · 3.2 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
<html>
<title>Div Blaster</title>
<!-- JS -->
<script src='scripts/jquery.min.js'></script>
<script src='scripts/page.js'></script>
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="style/style.css">
<!-- HTML -->
<body>
<div class='outer-container'>
<div class='game-window'>
<div class='splashScreen'>
<h1>Div Blaster</h1>
<h3>Created by Lee Wang</h3>
<p>Space : Fire a Rocket</p>
<p>Arrow Keys(←↑→↓): Move the Ship</p>
<p>Shift : Launch a Nuke</p>
<br>
<div class='shipMenu'>
<p id='choose'> Choose Your Ship:</p>
<div id='vanilla'>
<p> Vanilla </p>
<img src='img/fighter.png' height='50px'/>
</div>
<div id='spike'>
<p> Spiky </p>
<img src='img/spike.PNG' height='50px'/>
</div>
<div id='alien'>
<p> Alien </p>
<img src='img/alien.png' height='50px'/>
</div>
</div>
<div class="shipInfo">
<h4 id='chosenHeading'> Current Ship: <span id='chosenShip'> Vanilla </span></h4>
<span id="bonus">+ None</span>
<br><br>
<span id="weakness">- None</span>
</div>
<button id="start" type="button">Start Div Blaster</button>
</div>
<img class = "life1" src='img/fighter.png' height='25px'/>
<img class="life2" src='img/fighter.png' height='25px'/>
<h4 id='nukeInstruction'> Press Shift: </h4>
<img src='img/nuke.png' height='25x' id = 'nuke'/>
<div><h4 id='nukeCooldown'> Nuke Ready in <span id="time">20</span> seconds!</h4></div>
<img class='nukeExplosion' src='img/nukeExplosion.png'/>
<div id='enterprise' class='ship'>
<img class='ship-avatar' src='img/fighter.png' height='50px'/> <!--ship img: src='http://i.stack.imgur.com/rsH6n.png'-->
</div>
<img class='explosion' src='img/explosion.png' height='50px'/>
<h4 id="homing"> Homing Rocket:</h4>
<div id="progressBar">
<div class="bar"></div>
</div>
</div>
<div class='game-over' style="display: none;">
<h1 id="gameOverHeader">GAME OVER!</h1>
<p><input type="text" placeholder="Enter Name Here" id="name"></p>
<button id="nameButton" type = "button">Submit Name</button>
<br><br><br>
<button id="goBack" type="button">Go Back</button>
</div>
<div class='status-window' style='text-align: center'>
<h3>Welcome!</h3>
<hr>
<div class="leaderboard">
<h4 id="topThree">Top 3 Scores: </h4>
</div>
<br>
<p>score:</p>
<h1 id='score-box'>0</h1>
<p>rate:</p>
<h1 id='rate'>0%</h1>
<button id="settingsButton" type="button">Open Setting Panel</button>
<div class="settingsMenu">
<p id="asteroid">Asteroid Spawning Rate</p>
<p id="numberPerSecond">(# per second)</p>
<p><input type="text" placeholder="Min. 0.2 Max 4" id="spawningRate"></p>
<div class="mute">
<label>Mute Audio</label><input type="checkbox" id="muteAudio" checked>
</div>
<button id="update" type="button">Update</button>
</div>
</div>
</div>
</body>
</html>