This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
343 lines (298 loc) · 15 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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
<html>
<head>
<title>Spybotics - The Nightfall Incident</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/css/w3.css">
<link rel="stylesheet" href="assets/css/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/main.css">
<link rel="stylesheet" href="https://code.jquery.com/qunit/qunit-2.3.3.css"> <!-- FOR TESTING -->
<script type="text/javascript" src="assets/js/jquery-3.1.1.min.js"></script>
<!-- Could be loaded as JSON objects via AJAX if run from a web server -->
<script type="text/javascript" src="assets/js/node_data.js"></script>
<script type="text/javascript" src="assets/js/battle_data.js"></script>
<script type="text/javascript" src="assets/js/program_data.js"></script>
<script type="text/javascript" src="assets/js/dialog_data.js"></script>
<script type="text/javascript" src="assets/js/misc_data.js"></script>
<script type="text/javascript" src="assets/js/models.js"></script>
<script type="text/javascript" src="assets/js/controllers.js"></script>
</head>
<body>
<!-- FOR TESTING
<div id="tests">
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="https://code.jquery.com/qunit/qunit-2.3.3.js"></script>
<script src="assets/js/testing/tests.js"></script>
</div>
-->
<div id="splash_screen">
<img id="splash_img" src="images/Spybotics_the_Nightfall_Incident.jpg" />
</div>
<div id="load_screen" class="w3-row-padding w3-center w3-margin-top">
<div class="w3-col m1 w3-hide-small w3-card-4">
</div>
<div class="w3-col m2 w3-hide-small w3-card-4 w3-dark-grey">
<div id="game1" class="w3-container w3-center">
<h3>Game 1</h3>
<img id="game1_img" src="" alt="" style="width:100%; max-height:200px">
<h5 id="game1_save">Empty</h5>
<button class="new_game_btn w3-btn-block w3-gray w3-border w3-border-grey w3-hover-dark-grey">New Game</button>
<button class="load_game_btn w3-btn w3-gray w3-border w3-border-grey w3-hover-dark-grey">Load Game</button>
<button class="del_game_btn w3-btn w3-gray w3-border w3-border-grey w3-hover-dark-grey">Delete</button>
</div>
</div>
<div class="w3-col m2 w3-hide-small w3-card-4">
<!-- Spacer -->
</div>
<div class="w3-col m2 w3-hide-small w3-card-4 w3-dark-grey">
<div id="game2" class="w3-container w3-center">
<h3>Game 2</h3>
<img id="game2_img" src="" alt="" style="width:100%; max-height:200px">
<h5 id="game2_save">Empty</h5>
<button class="new_game_btn w3-btn-block w3-gray w3-border w3-border-grey w3-hover-dark-grey">New Game</button>
<button class="load_game_btn w3-btn w3-gray w3-border w3-border-grey w3-hover-dark-grey">Load Game</button>
<button class="del_game_btn w3-btn w3-gray w3-border w3-border-grey w3-hover-dark-grey">Delete</button>
</div>
</div>
<div class="w3-col m2 w3-hide-small w3-card-4">
</div>
<div class="w3-col m2 w3-hide-small w3-card-4 w3-dark-grey">
<div id="game3" class="w3-container w3-center">
<h3>Game 3</h3>
<img id="game3_img" src="" alt="" style="width:100%; max-height:200px">
<h5 id="game3_save">Empty</h5>
<button class="new_game_btn w3-btn-block w3-gray w3-border w3-border-grey w3-hover-dark-grey">New Game</button>
<button class="load_game_btn w3-btn w3-gray w3-border w3-border-grey w3-hover-dark-grey">Load Game</button>
<button class="del_game_btn w3-btn w3-gray w3-border w3-border-grey w3-hover-dark-grey">Delete</button>
</div>
</div>
</div>
<div id="spybot_screen" class="w3-row-padding w3-center w3-margin-top">
<div class="spybot_profile w3-col m3 w3-hide-small" data-spybot="Gigamesh G60">
<img src="images/spybots/Gigamesh G60.jpg" style="width:100%">
<div class="w3-container w3-white">
<p>Gigamesh G60</p>
</div>
</div>
<div class="spybot_profile w3-col m3 w3-hide-small" data-spybot="Shadowstrike S70">
<img src="images/spybots/Shadowstrike S70.jpg" style="width:100%">
<div class="w3-container w3-white">
<p>Shadowstrike S70</p>
</div>
</div>
<div class="spybot_profile w3-col m3 w3-hide-small" data-spybot="Snaptrax S45">
<img src="images/spybots/Snaptrax S45.jpg" style="width:100%">
<div class="w3-container w3-white">
<p>Snaptrax S45</p>
</div>
</div>
<div class="spybot_profile w3-col m3 w3-hide-small" data-spybot="Technojaw T55">
<img src="images/spybots/Technojaw T55.jpg" style="width:100%">
<div class="w3-container w3-white">
<p>Technojaw T55</p>
</div>
</div>
</div>
<div id="game_ui">
<ul id="navbar" class="w3-navbar w3-light-grey w3-bottombar">
<!--<li style="margin-left: 30px; padding: 0 10px; background-color: #1c587b; color: white;">databattle in progress</li>-->
<li class="w3-right"><i id="settings_btn" class="fa fa-cog"></i></li>
<li class="w3-right"><a id="log_out" class="battle-ui w3-btn w3-grey">Log Out</a></li>
<li id="credit_display" class="w3-right w3-navitem">Credits: <span id="credits"></span></li>
</ul>
<div class="w3-row-padding w3-margin-top">
<div id="sidebar" class="w3-col" style="width: 250px;">
<div class="w3-card-4" style="padding-bottom: 12px;">
<header class="w3-container w3-light-grey">
<h6 id="spybot_name">Spybot</h6>
</header>
<div class="w3-center">
<img id="spybot_profile" class="w3-image profile" src="" alt="">
</div>
</div>
<div id="program_list" class="w3-card-4 w3-padding-8">
<div class="w3-container w3-light-grey">
<h6>Program.List</h6>
</div>
<select id="player_inventory" class="w3-select" size=8></select>
</div>
<div id="player_program_info" class="w3-card-4 w3-padding-8">
<div class="w3-container w3-light-grey">
<h6>Program.Info</h6>
</div>
<div class="w3-row">
<div class="w3-container w3-quarter w3-margin-top">
<img name="program_image" src="" />
</div>
<div class="w3-container w3-rest">
<div>Move: <span name="move"></span></div>
<div>Max Size: <span name="max_size"></span></div>
<div name="curr_size"></div>
</div>
</div>
<div class="w3-container w3-row">
<h4 name="program_name"></h4>
<h5>Commands</h5>
</div>
<div name="commands" class="w3-btn-group"></div>
<p name="description" class="w3-container"></p>
<button id="undo" class="battle-ui w3-btn-block w3-cerulean w3-text-white w3-border w3-border-grey w3-hover-cyan">Undo</button>
<div class="battle-ui w3-btn-group">
<button id="upload" class="battle-ui w3-btn-block w3-cerulean w3-text-white w3-border w3-border-grey w3-hover-cyan">Upload</button>
<button id="start_battle" class="battle-ui w3-btn-block w3-cerulean w3-text-white w3-border w3-border-grey w3-hover-cyan">Start Battle</button>
</div>
</div>
</div>
<div class="w3-rest w3-center">
<canvas id="netmap" width="1600" height="800"></canvas>
<canvas id="battle_screen" class="battle-ui" width="800" height="500" style="background: url('images/source-code_blog.jpg')"></canvas>
<dir id="battle_splash_screen" class="battle-ui"></dir>
</div>
</div>
<div id="store" class="w3-modal">
<div class="w3-modal-content w3-card-8 w3-container w3-light-grey w3-animate-zoom" style="max-width:600px">
<div class="w3-container w3-half">
<div class="w3-container w3-light-grey">
<h6>warez.node</h6>
</div>
<select id="store_inventory" class="w3-select" size=15></select>
<div class="w3-container w3-row">
<div class="w3-btn-group">
<button id="store_buy" class="w3-btn-block w3-cerulean w3-text-white w3-border w3-border-grey w3-hover-cyan">Buy</button>
<button id="store_done" class="w3-btn-block w3-cerulean w3-text-white w3-border w3-border-grey w3-hover-cyan">Done</button>
</div>
</div>
</div>
<div id="store_program_info" class="w3-container w3-half">
<div class="w3-container w3-light-grey">
<h6>Program.Info</h6>
</div>
<div class="w3-row">
<div class="w3-container w3-quarter w3-margin-top">
<img name="program_image" src="" />
</div>
<div class="w3-container w3-rest">
<div>Move: <span name="move"></span></div>
<div>Max Size: <span name="max_size"></span></div>
</div>
</div>
<div class="w3-container w3-row">
<h4 name="program_name"></h4>
<h5>Commands</h5>
</div>
<div name="commands" class="w3-btn-group"></div>
<p name="description" class="w3-container"></p>
</div>
</div>
</div>
<div id="chat" class="w3-modal"> <!-- class="w3-modal" (removed so player can interact with battle during tutorial) -->
<div class="w3-modal-content w3-card-8 w3-animate-zoom" style="max-width:600px">
<!--<span onclick="document.getElementById('chat').style.display='none'" class="w3-closebtn w3-hover-red w3-container w3-padding-8 w3-display-topright" title="Close Modal">×</span>-->
<div class="w3-container w3-light-grey">
<h5>Message</h5>
</div>
<div id="user" class="w3-bottombar">
<img id="avatar" src="" /><span id="username"></span>
</div>
<div id="message" class="w3-container"></div>
<div id="responses"></div>
</div>
</div>
<div id="node_info_popup" class="w3-modal">
<div class="w3-modal-content w3-card-8 w3-animate-zoom" style="max-width:600px">
<!--<span onclick="$('#node_info_popup').hide()" class="w3-closebtn w3-hover-red w3-container w3-padding-8 w3-display-topright" title="Close Modal">×</span>-->
<div class="w3-container w3-light-grey">
<h5>node.info</h5>
</div>
<div id="node_info" class="w3-container">
<div class="w3-panel"><h3 id="node_company"></h3></div>
<div class="w3-panel" id="node_name"></div>
<div class="w3-panel">Security Level: <span id="node_level"></span></div>
<div class="w3-panel" id="node_credits"></div>
<div class="w3-panel" id="node_mission"></div>
<div class="w3-panel" id="node_desc"></div>
</div>
<div class="w3-btn-group">
<button id="node_databattle_btn" class="w3-btn-block w3-cerulean w3-text-white w3-border w3-border-grey w3-hover-cyan">Enter Databattle</button>
<button id="node_shop_btn" class="w3-btn-block w3-cerulean w3-text-white w3-border w3-border-grey w3-hover-cyan">Enter Warez Node</button>
<button id="node_enter_smart_btn" class="w3-btn-block w3-cerulean w3-text-white w3-border w3-border-grey w3-hover-cyan">Enter S.M.A.R.T. Node</button>
<button id="node_cancel_btn" class="w3-btn-block w3-cerulean w3-text-white w3-border w3-border-grey w3-hover-cyan">Cancel</button>
<button id="node_proceed_btn" class="w3-btn-block w3-cerulean w3-text-white w3-border w3-border-grey w3-hover-cyan">Proceed</button>
</div>
</div>
</div>
<div id="smart_hq_popup" class="w3-modal">
<div class="w3-modal-content w3-card-8 w3-animate-zoom" style="max-width:600px">
<!--<span onclick="document.getElementById('chat').style.display='none'" class="w3-closebtn w3-hover-red w3-container w3-padding-8 w3-display-topright" title="Close Modal">×</span>-->
<div class="w3-container w3-light-grey">
<h5>S.M.A.R.T. HQ</h5>
</div>
<div class="w3-container">
<p>
As a S.M.A.R.T. agent, your job is to hunt down crime and problems throughout the net.
</p>
<p>
Use the arrows to scroll around the netmap. Click a node to examine it. Fight databattle against corporate security software to gain control over nodes and open up more areas of the map to explore. Winning databattles earns you credits that you can use to purchase new programs.
</p>
</div>
<div class="w3-container w3-row">
<div class="w3-btn-group">
<button id="smart_node_done" class="w3-btn-block w3-cerulean w3-text-white w3-border w3-border-grey w3-hover-cyan">Done</button>
</div>
</div>
</div>
</div>
<div id="battle_result_popup" class="w3-modal">
<div class="w3-modal-content w3-card-8 w3-animate-zoom" style="max-width:600px">
<!--<span onclick="$('#battle_result_popup').hide()" class="w3-closebtn w3-hover-red w3-container w3-padding-8 w3-display-topright" title="Close Modal">×</span>-->
<div class="w3-container w3-light-grey">
<h5>databattle.result</h5>
</div>
<div id="battle_result" class="w3-container">
<div class="w3-panel">DATABATTLE <span id="battle_result"></span></div>
<div class="w3-panel">MISSION CREDITS AWARDED: <span id="mission_credits"></span></div>
<div class="w3-panel">EXTRA CREDITS AWARDED: <span id="extra_credits"></span></div>
</div>
<div class="w3-btn-group">
<button id="battle_result_logout" class="w3-btn-block w3-cerulean w3-text-white w3-border w3-border-grey w3-hover-cyan">LOG OUT</button>
</div>
</div>
</div>
<div id="settings" class="w3-modal">
<div class="w3-modal-content w3-card-8 w3-animate-zoom" style="max-width:600px">
<span onclick="$('#settings').hide()" class="w3-closebtn w3-hover-red w3-container w3-padding-8 w3-display-topright" title="Close Modal">×</span>
<div class="w3-container w3-light-grey">
<h5>Settings</h5>
</div>
<div class="w3-container">
<div class="w3-panel">
<label for="settings_theme">Theme</label>
<select id="settings_theme" class="w3-select w3-border" name="option">
<option value="light" selected>Light</option>
<option value="dark">Dark</option>
</select>
</div>
<div class="w3-panel">
<label for="settings_map_pan">Map Pan</label>
<select id="settings_map_pan" class="w3-select w3-border" name="option">
<option value="keyboard" selected>Keyboard Only</option>
<option value="mouse">Mouse and Keyboard</option>
</select>
</div>
<div class="w3-panel">
<input id="settings_zoom" class="w3-check" type="checkbox">
<label for="settings_zoom" class="w3-validate">Zoom Enabled</label>
<a id="settings_zoom_reset" href="#">Reset zoom</a>
</div>
<div class="w3-panel">
<input id="settings_friendly_fire" class="w3-check" type="checkbox">
<label for="settings_friendly_fire" class="w3-validate">Friendly-fire Enabled</label>
</div>
</div>
</div>
</div>
</div>
</body>
</html>