-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
258 lines (243 loc) · 9.59 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html lang="en">
<head>
<title>Jet Pursuit</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<link rel="shortcut icon" href="favicon.png" />
<link href='https://fonts.googleapis.com/css?family=Black+Ops+One' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Faster+One' rel='stylesheet' type='text/css'>
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<div id="title">Jet Pursuit</div>
<div id="messages" class="hud">
Initializing systems...
</div>
<ul id="weapons" class="hud hud-left">
Weapons offline
</ul>
<ul id="plane" class="hud hud-right">
<li>Speed: <span id="speed">0</span></li>
<li>Fuel: <span id="fuel">0</span></li>
<li>Hull: <span id="hull">0</span></li>
</ul>
<ul id="target" class="hud">
<li>Distance to target: <span id="distance">0</span></li>
</ul>
<div id="ping-container" class="hidden">
Ping: <span id="ping"></span>
</div>
<div id="renderer-info"></div>
</div>
<!-- HOME -->
<div id="home" class="overlay">
<p id="version">Version: beta 1</p>
<h1 class="neutral-caption">Welcome!</h1>
<p>Jet Pursuit is a top-down arcade action game with supersonic fighter jets,
homing missiles, explosions and more!</p>
<p>You need an up-to-date <em>Chrome</em> or <em>Firefox</em> to play this.</p>
<div id="webgl-error" class="alert alert-error hidden">
<i class="icon-warning-sign"></i>
Oh no! Your browser, GPU or its driver doesn't seem to support <a href="http://get.webgl.org/">WebGL</a>.
Unfortunately you can't play the game without it.
</div>
<h2>Controls</h2>
<table id="instructions">
<thead>
<tr><th>Action</th><th>Key</th><th>Alternative</th></tr>
</thead>
<tbody>
<tr><td>Steer</td><td>↔</td><td>A D</td></tr>
<tr><td>Throttle</td><td>↑↓</td><td>W S</td></tr>
<tr><td>Shoot</td><td>Ctrl</td><td>␣</td></tr>
<tr><td>Weapon</td><td>Shift</td><td>Tab</td></tr>
<tr><td>Target</td><td>Enter</td><td>E</td></tr>
</tbody>
</table>
<button id="play" class="btn btn-large btn-success">Play!</button>
</div>
<!-- MENU -->
<div id="menu" class="overlay hidden">
<!--<button class="close">×</button>-->
<ul class="nav nav-tabs">
<li class="active"><a href="#mission" data-toggle="tab"><i class="icon-screenshot"></i> Mission</a></li>
<li><a href="#aircraft" data-toggle="tab"><i class="icon-plane"></i> Aircraft</a></li>
<li><a href="#loadout" data-toggle="tab"><i class="icon-wrench"></i> Loadout</a></li>
<li><a href="#settings" data-toggle="tab"><i class="icon-cog"></i> Settings</a></li>
<li><a href="#" id="start"><i class="icon-forward"></i> <em>Take off!</em></a></li>
</ul>
<div class="tab-content">
<!-- Mission -->
<div id="mission" class="tab-pane active">
<form>
<fieldset class="pull-left" style="width: 50%;">
<label for="gamemode">Game mode</label>
<select id="gamemode">
<option value="singlebattle">Single battle</option>
<!--<option value="teamdeathmatch">Team deathmatch</option>
<option value="deathmatch">Deathmatch</option>-->
</select>
<p id="gamemode-singlebattle" class="gamemode-desc">
You and your wingmen try to shoot down the opposing side. The game ends when either side is obliterated.
</p>
<p id="gamemode-teamdeathmatch" class="gamemode-desc hide">
Like a single battle, but with multiple "lives", i.e. players respawn after death.
</p>
<p id="gamemode-deathmatch" class="gamemode-desc hide">
Everyone against everyone, with respawns.
</p>
</fieldset>
<fieldset class="pull-right">
<label for="enemies">Enemies</label>
<input id="enemies" type="range" min="1" max="30" value="1" />
<output for="enemies">1</output>
<label for="allies">Wingmen</label>
<input id="allies" type="range" min="0" max="29" value="0" />
<output for="allies">0</output>
</fieldset>
<div class="clearfix"></div>
<div id="players-warning" class="alert hide">
<i class="icon-warning-sign"></i>
Quite a lot of planes you got there, better have a good computer to handle that...
</div>
<fieldset>
<label for="identicalAircrafts" title="If unchecked, each AI player will have a random aircraft.">
<input type="checkbox" id="identicalAircrafts" /> Identical aircrafts
</label>
<label for="identicalLoadouts" title="If unchecked, each AI player will have a random weapon loadout.">
<input type="checkbox" id="identicalLoadouts" /> Identical loadouts
</label>
</fieldset>
</form>
</div>
<!-- Aircraft -->
<div id="aircraft" class="tab-pane">
<div id="plane-selector" class="tabbable tabs-left">
<ul class="nav nav-tabs">
<li class="active"><a href="#aircraft-1" data-toggle="tab">Air superiority</a></li>
<li><a href="#aircraft-2" data-toggle="tab">Interceptor</a></li>
<li><a href="#aircraft-3" data-toggle="tab">Strike fighter</a></li>
</ul>
<div class="tab-content">
<div id="aircraft-1" class="tab-pane active">
<h2>Air superiority fighter</h2>
<p>Designed for taking over the enemy airspace, these aircraft offer the best maneuvaribility and dogfighting capabilities.</p>
<ul>
<li>Max speed: <span class="stars-4"></span></li>
<li>Acceleration: <span class="stars-3"></span></li>
<li>Turn rate: <span class="stars-5"></span></li>
<li>Durability: <span class="stars-4"></span></li>
</ul>
</div>
<div id="aircraft-2" class="tab-pane">
<h2>Interceptor</h2>
<p>Defensive aircraft designed to quickly intercept enemy attacks.
It sacrifices durability and some maneuvaribility for achieving the greatest speeds.</p>
<ul>
<li>Max speed: <span class="stars-5"></span></li>
<li>Acceleration: <span class="stars-5"></span></li>
<li>Turn rate: <span class="stars-3"></span></li>
<li>Durability: <span class="stars-3"></span></li>
</ul>
</div>
<div id="aircraft-3" class="tab-pane">
<h2>Strike fighter</h2>
<p>Versatile fighter that is fit for multiple roles and can take some serious pounding.</p>
<ul>
<li>Max speed: <span class="stars-3"></span></li>
<li>Acceleration: <span class="stars-4"></span></li>
<li>Turn rate: <span class="stars-4"></span></li>
<li>Durability: <span class="stars-5"></span></li>
</ul>
</div>
</div>
</div>
</div>
<!-- Loadout -->
<div id="loadout" class="tab-pane">
<div id="loadout-selector" class="tabbable tabs-left">
<ul class="nav nav-tabs">
<li class="active"><a href="#loadout-1" data-toggle="tab">Balanced</a></li>
<li><a href="#loadout-2" data-toggle="tab">Dogfight</a></li>
<li><a href="#loadout-3" data-toggle="tab">Long-range</a></li>
</ul>
<div class="tab-content">
<div id="loadout-1" class="tab-pane active">
<h2>Balanced weapon loadout - "ready for anything"</h2>
<ul>
<li>Cannon: <span>400</span></li>
<li>SRAAM: <span>10</span></li>
<li>MRAAM: <span>6</span></li>
</ul>
</div>
<div id="loadout-2" class="tab-pane">
<h2>Dogfight weapon loadout - "close-quarters combat"</h2>
<ul>
<li>Cannon: <span>800</span></li>
<li>SRAAM: <span>12</span></li>
<li>MRAAM: <span>0</span></li>
</ul>
</div>
<div id="loadout-3" class="tab-pane">
<h2>Long range loadout - "death from afar"</h2>
<ul>
<li>Cannon: <span>200</span></li>
<li>SRAAM: <span>8</span></li>
<li>MRAAM: <span>10</span></li>
</ul>
</div>
</div>
</div>
</div>
<!-- Settings -->
<div id="settings" class="tab-pane">
<form>
<label for="particles">Particles</label>
<select id="particles">
<option value="0.3">Few</option>
<option value="0.6">Some</option>
<option value="1.0" selected>Lots</option>
<option value="1.5">Insane</option>
</select>
<br/><br/>
<label for="sounds">
<input type="checkbox" id="sounds" /> Enable sound effects
</label>
<label for="showStats">
<input type="checkbox" id="showStats" /> Show FPS and render stats
</label>
</form>
</div>
</div>
</div>
<div id="results" class="overlay hidden">
<h1 id="outcome">Outcome</h1>
<h2>Statistics</h2>
<table id="results-stats"></table>
<button id="again" class="btn btn-large btn-success">Again!</button>
</div>
<div class="fade-overlay"></div>
<script src="libs/html5slider.js"></script> <!-- Firefox compatibility -->
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
<script src="libs/bootstrap.min.js"></script>
<script src="libs/three.js"></script>
<script src="libs/stats.min.js"></script>
<script src="js/data.js"></script>
<script src="js/jet.js"></script>
<script src="js/menu.js"></script>
<script src="js/cache.js"></script>
<script src="js/particles.js"></script>
<script src="js/weapons.js"></script>
<script src="js/sound.js"></script>
<script src="js/plane.js"></script>
<script src="js/game.js"></script>
<script src="js/client.js"></script>
<script src="js/world.js"></script>
<script src="js/controls.js"></script>
<script src="js/hud.js"></script>
<script src="js/main.js"></script>
</body>
</html>