forked from vrap/mission-mars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
251 lines (227 loc) · 10.9 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
<!DOCTYPE html>
<html>
<head>
<title>Mars invader !</title>
<link rel="stylesheet" type="text/css" href="assets/css/styles.css">
<link href='http://fonts.googleapis.com/css?family=Oxygen:400,300' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="shadow-top"></div>
<div class="shadow-right"></div>
<div class="shadow-bottom"></div>
<div class="shadow-left"></div>
<div class="border-top"></div>
<div class="border-top-inner"></div>
<div class="border-right"></div>
<div class="border-right-inner"></div>
<div class="border-bottom"></div>
<div class="border-bottom-inner"></div>
<div class="border-left"></div>
<div class="border-left-inner">
</div>
<div class="st-container">
<!-- Bottom menu -->
<input type="radio" name="radio-set" checked="checked" id="st-control-1"/>
<a href="javascript: void(0);">Home</a>
<input type="radio" name="radio-set" id="st-control-2"/>
<a href="javascript: void(0);">Type of map</a>
<input type="radio" name="radio-set" id="st-control-3"/>
<a href="javascript: void(0);"><span id="text-map">Map</span></a>
<input type="radio" name="radio-set" id="st-control-4"/>
<a href="javascript: void(0);">Scenario</a>
<input type="radio" name="radio-set" id="st-control-5"/>
<a>Go !</a>
<div class="st-scroll">
<!-- Home -->
<section class="st-panel" id="st-panel-1">
<h2>Mission Mars</h2>
<p>
Build or upload your map, a cute little robot will have a journey on it!
<br>
<a class="btn-link" href="javascript: void(0);" id="start">Start</a>
</p>
</section>
<!-- Choice between an existing map or generate one -->
<section class="st-panel" id="st-panel-2">
<div class="st-deco" data-icon="1"></div>
<h2>Choose your type of map</h2>
<p>
<a href="javascript: void(0);" class="btn-link" id="import" style="width: 165px; margin-left: 9px;">Import your map</a>
<br>
<a href="javascript: void(0);" class="btn-link" id="generate" style="width: 165px;">Generate new map</a>
</p>
</section>
<!-- Interface in function of precedent choice -->
<section class="st-panel" id="st-panel-3">
<div class="st-deco" data-icon="2"></div>
<div id="block-upload">
<h2>Upload your map</h2>
<p>
<input type="hidden" id="json">
<input type="file" id="uploadedMap">
<br>
<a href="javascript: void(0);" id="upload" class="btn-link">Choose your scenario</a>
</p>
</div>
<div id="block-generate">
<h2>Generate a new map</h2>
<p>
<span class="bloc-menu"><b>Size:</b>
<input type="text" size="1" maxlength="3" id="map-size" placeholder="XXX" value="100"> cases by side
(the map is a square).
<br/>
</span>
<br>
<a href="javascript: void(0);" id="scenario" class="btn-link">Choose your scenario</a>
</p>
</div>
</section>
<!-- Scenario choice -->
<section class="st-panel" id="st-panel-4">
<div class="st-deco" data-icon="3"></div>
<h2>Choose your game scenario</h2>
<p>
<span class="grid50 bloc-menu">
<i class="flaticon-radar5 btn-link btn-round " id="to-check-explorer"></i>
<input type="radio" id="explorer" name="scenario" class="hidden"><label for="explorer"><b>Explorer</b></label>
<br>
<span id="explorer-settings" class="bloc-settings-input">
<b>Energy:</b> <input type="text" size="1" maxlength="5" id="explorer-energy" placeholder="XXX" value="100"><br/>
<b>Start:</b> x: <input type="text" size="1" maxlength="3" id="explorer-startX" placeholder="X" value="1">
y:<input type="text" size="1" maxlength="3" id="explorer-startY" placeholder="Y" value="1">
</span>
</span>
<span class="grid50 bloc-menu">
<i class="flaticon-push19 btn-link btn-round checked" id="to-check-voyager"></i>
<input type="radio" id="voyager" name="scenario" checked="checked" class="hidden"><label for="voyager"><b>Voyager</b></label>
<br>
<span id="voyager-settings" class="bloc-settings-input">
<b>Energy:</b> <input type="text" size="1" maxlength="5" id="voyager-energy" placeholder="XXX" value="100"><br/>
<b>Start:</b> x: <input type="text" size="1" maxlength="3" id="voyager-startX" placeholder="X" value="1">
y:<input type="text" size="1" maxlength="3" id="voyager-startY" placeholder="Y" value="1"><br>
<b>End :</b> x: <input type="text" size="1" maxlength="3" id="voyager-endX" placeholder="X" value="20">
y:<input type="text" size="1" maxlength="3" id="voyager-endY" placeholder="Y" value="20">
</span>
</span>
<br>
<a class="btn-link" href="javascript: void(0);" id="view">Go !</a>
</p>
</section>
</div><!-- // st-scroll -->
</div><!-- // st-container -->
<!-- Viewer -->
<div class="view">
<div class="loader noise">
<b>Pairing with S3000, please wait ...</b>
</div>
<!-- viewer Full Map 3D -->
<div id="bloc-over-full">
<div id="bloc-fullMap">
<i class="glyphicon glyphicon-close close12"></i>
<canvas id="fullmap">
Canvas not supported.
</canvas>
</div>
</div>
<!-- viewer 3D -->
<div id="render">
<div id="video_container"></div>
</div>
<!-- viewer 2D -->
<div id="bloc-panel-minimap"></div>
<div id="bloc-panel-minimap-hover"></div>
<div id="panel-minimap">
<div id="bloc-minimap">
<canvas id="minimap">
Canvas not supported.
</canvas>
</div>
</div>
<div id="bloc-pop">
<div class="pop">
Hello I'm Speculator 3000
</div>
</div>
<!-- controls -->
<div id="panel-control" class="hide">
<i id="to-close-panel" class="glyphicon glyphicon-close close12"></i>
<div class="control-bloc">
<h3>Wireframe</h3>
<a href="#" id="w1" class="btn-link no-shadow">On</a>
<a href="#" id="w2" class="btn-link no-shadow active">Off</a>
</div>
<div class="control-bloc">
<h3>Fog</h3>
<a href="#" type="button" class="btn-link no-shadow" id="more"> + </a>
<a href="#" type="button" class="btn-link no-shadow" id="less"> - </a>
</div>
<div class="control-bloc">
<h3>Camera</h3>
<a href="#" id="c1" class="btn-link no-shadow">On</a>
<a href="#" id="c2" class="btn-link no-shadow active">Off</a>
</div>
<div class="control-bloc">
<h3>Round time</h3>
<a href="#" type="button" class="btn-link no-shadow" id="roundTime-more"> + </a>
<b> <span id="roundTime-current">1</span> s </b>
<a href="#" type="button" class="btn-link no-shadow" id="roundTime-less"> - </a>
</div>
<div class="control-bloc">
<a id="download" href='#' class="btn-link">Download map</a>
</div>
</div>
<div id="panel-lala">
<div id="display-control" class="info-bloc">
<i class='flaticon-screwdriver3'></i>
</div>
</div>
<div id="panel-infos">
<div id="bloc-battery" class="info-bloc"><i class='glyphicon glyphicon-battery'></i><span id="battery"></span></div>
<div id="bloc-position" class="info-bloc"><i class='glyphicon glyphicon-position'></i><span id="position"></span></div>
<div id="bloc-move" class="info-bloc"><i class='glyphicon glyphicon-move'></i><span id="move"></span></div>
</div>
</div> <!-- view -->
<!-- Script for UI and UX -->
<script type="text/javascript" src="assets/js/interface.js"></script>
<!-- Helpers -->
<script type="text/javascript" src="assets/js/helper/namespace.js"></script>
<script type="text/javascript" src="assets/js/helper/utils.js"></script>
<script type="text/javascript" src="assets/js/helper/requestAnimationFrame.js"></script>
<script type="text/javascript" src="assets/js/helper/FileSaver.js"></script>
<!-- Threejs library -->
<script type="text/javascript" src="assets/js/lib/three/Three.js" defer></script>
<script type="text/javascript" src="assets/js/lib/three/controls/FirstPersonControls.js" defer></script>
<!-- Q (Promise implentation) library -->
<script type="text/javascript" src="assets/js/lib/Q/q.js" defer></script>
<!-- Mars common libraries -->
<script type="text/javascript" src="assets/js/lib/Mars/common/observer.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/common/map.js" defer></script>
<!-- Mars materials -->
<script type="text/javascript" src="assets/js/lib/Mars/common/materials/rock.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/common/materials/ice.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/common/materials/iron.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/common/materials/ore.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/common/materials/sand.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/common/materials/other.js" defer></script>
<!-- Mars Editors and elements -->
<script type="text/javascript" src="assets/js/lib/Mars/editor/element/elementModel.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/editor/element/craterModel.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/editor/element/hillModel.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/editor/element/ravineModel.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/editor/terrainGenerator.js" defer></script>
<!-- Mars viewer -->
<script type="text/javascript" src="assets/js/lib/Mars/viewer/viewer.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/viewer/2dviewer.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/viewer/3dviewer.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/viewer/interface.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/viewer/drag.js" defer></script>
<!-- Rover invader -->
<script type="text/javascript" src="assets/js/lib/Mars/rover/rover.js" defer></script>
<!-- Speculator3000 -->
<script type="text/javascript" src="assets/js/lib/Mars/rover/Speculator3000/s3000.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/rover/Speculator3000/Module/explorer.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/rover/Speculator3000/Module/voyager.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/rover/Speculator3000/Module/crawler.js" defer></script>
<script type="text/javascript" src="assets/js/lib/Mars/rover/Memory/memory.js" defer></script>
</body>
</html>