1 | <LevelInfo |
---|
2 | name = "Hover 2" |
---|
3 | description = "Level for Minigame Hover" |
---|
4 | tags = "minigame" |
---|
5 | screenshot = "emptylevel.png" |
---|
6 | /> |
---|
7 | |
---|
8 | <?lua |
---|
9 | include("stats.oxo") |
---|
10 | include("HUDTemplates3.oxo") |
---|
11 | include("templates/lodInformation.oxt") |
---|
12 | ?> |
---|
13 | |
---|
14 | <?lua |
---|
15 | include("templates/spaceshipPirate.oxt") |
---|
16 | include("templates/spaceshipHover.oxt") |
---|
17 | include("overlays/HoverHUD.oxo") |
---|
18 | ?> |
---|
19 | |
---|
20 | <?lua |
---|
21 | MAZE_NUM_CELLS = 10 |
---|
22 | MAZE_CELL_SIZE = 100 |
---|
23 | MAZE_CELL_HEIGHT = 30 |
---|
24 | MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE |
---|
25 | --number of tiles |
---|
26 | N = 11 |
---|
27 | --scaling factor |
---|
28 | S = 250 |
---|
29 | |
---|
30 | MAP_ORIGIN = "0,0,0" |
---|
31 | ?> |
---|
32 | |
---|
33 | <Level |
---|
34 | plugins = hover |
---|
35 | gametype = Hover |
---|
36 | > |
---|
37 | <templates> |
---|
38 | <Template link=lodtemplate_default /> |
---|
39 | </templates> |
---|
40 | <?lua include("includes/notifications.oxi") ?> |
---|
41 | |
---|
42 | <Scene |
---|
43 | ambientlight = "0.8, 0.8, 0.8" |
---|
44 | skybox = "Orxonox/Starbox" |
---|
45 | gravity = "0, -200, 0" |
---|
46 | > |
---|
47 | |
---|
48 | <StaticEntity position="0,0,0" collisionType="static"> |
---|
49 | <attached> |
---|
50 | <!-- Walls and flags (physics and design)--> |
---|
51 | <!-- |
---|
52 | <HoverOrigin |
---|
53 | numCells="<?lua print(MAZE_NUM_CELLS)?>" |
---|
54 | cellSize="<?lua print(MAZE_CELL_SIZE)?>" |
---|
55 | cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>" |
---|
56 | /> |
---|
57 | --> |
---|
58 | |
---|
59 | <!-- floor design --> |
---|
60 | |
---|
61 | |
---|
62 | |
---|
63 | |
---|
64 | |
---|
65 | |
---|
66 | |
---|
67 | <Model |
---|
68 | position="<?lua print((N-1)*S/2)?>,0,<?lua print((N-1)*S/2)?>" |
---|
69 | |
---|
70 | scale3D="<?lua print(S)?>,8,<?lua print(S)?>" |
---|
71 | mesh="teststrecke.mesh" |
---|
72 | /> |
---|
73 | |
---|
74 | |
---|
75 | </attached> |
---|
76 | <collisionShapes> |
---|
77 | <!-- roof physics --> |
---|
78 | <!-- |
---|
79 | <BoxCollisionShape |
---|
80 | position="<?lua print(MAZE_SIZE/2)?>,<?lua print(MAZE_CELL_HEIGHT+1)?>,<?lua print(MAZE_SIZE/2)?>" |
---|
81 | halfExtents="<?lua print(MAZE_SIZE/2)?>,1,<?lua print(MAZE_SIZE/2)?>" |
---|
82 | /> |
---|
83 | --> |
---|
84 | <!-- floor physics --> |
---|
85 | |
---|
86 | <!-- tile number 0--> |
---|
87 | <BoxCollisionShape |
---|
88 | position="<?lua print((N-1-0)*S) ?>,-1, <?lua print(0*S) ?>" |
---|
89 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
90 | /> |
---|
91 | <!-- tile number 1--> |
---|
92 | <BoxCollisionShape |
---|
93 | position="<?lua print((N-1-0)*S) ?>,-1, <?lua print(1*S) ?>" |
---|
94 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
95 | /> |
---|
96 | <!-- tile number 2--> |
---|
97 | <BoxCollisionShape |
---|
98 | position="<?lua print((N-1-0)*S) ?>,-1, <?lua print(2*S) ?>" |
---|
99 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
100 | /> |
---|
101 | <!-- tile number 3--> |
---|
102 | <BoxCollisionShape |
---|
103 | position="<?lua print((N-1-0)*S) ?>,-1, <?lua print(3*S) ?>" |
---|
104 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
105 | /> |
---|
106 | <!-- tile number 4--> |
---|
107 | <BoxCollisionShape |
---|
108 | position="<?lua print((N-1-0)*S) ?>,-1, <?lua print(4*S) ?>" |
---|
109 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
110 | /> |
---|
111 | <!-- tile number 5--> |
---|
112 | <BoxCollisionShape |
---|
113 | position="<?lua print((N-1-0)*S) ?>,-1, <?lua print(5*S) ?>" |
---|
114 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
115 | /> |
---|
116 | <!-- tile number 6--> |
---|
117 | <BoxCollisionShape |
---|
118 | position="<?lua print((N-1-0)*S) ?>,-1, <?lua print(6*S) ?>" |
---|
119 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
120 | /> |
---|
121 | <!-- tile number 7--> |
---|
122 | <BoxCollisionShape |
---|
123 | position="<?lua print((N-1-0)*S) ?>,-1, <?lua print(7*S) ?>" |
---|
124 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
125 | /> |
---|
126 | <!-- tile number 8--> |
---|
127 | <BoxCollisionShape |
---|
128 | position="<?lua print((N-1-1)*S) ?>,-1, <?lua print(0*S) ?>" |
---|
129 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
130 | /> |
---|
131 | <!-- tile number 9--> |
---|
132 | <BoxCollisionShape |
---|
133 | position="<?lua print((N-1-1)*S) ?>,-1, <?lua print(7*S) ?>" |
---|
134 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
135 | /> |
---|
136 | <!-- tile number 10--> |
---|
137 | <BoxCollisionShape |
---|
138 | position="<?lua print((N-1-1)*S) ?>,-1, <?lua print(8*S) ?>" |
---|
139 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
140 | /> |
---|
141 | <!-- tile number 11--> |
---|
142 | <BoxCollisionShape |
---|
143 | position="<?lua print((N-1-1)*S) ?>,-1, <?lua print(9*S) ?>" |
---|
144 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
145 | /> |
---|
146 | <!-- tile number 12--> |
---|
147 | <BoxCollisionShape |
---|
148 | position="<?lua print((N-1-2)*S) ?>,-1, <?lua print(0*S) ?>" |
---|
149 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
150 | /> |
---|
151 | <!-- tile number 13--> |
---|
152 | <BoxCollisionShape |
---|
153 | position="<?lua print((N-1-2)*S) ?>,-1, <?lua print(2*S) ?>" |
---|
154 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
155 | /> |
---|
156 | <!-- tile number 14--> |
---|
157 | <BoxCollisionShape |
---|
158 | position="<?lua print((N-1-2)*S) ?>,-1, <?lua print(3*S) ?>" |
---|
159 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
160 | /> |
---|
161 | <!-- tile number 15--> |
---|
162 | <BoxCollisionShape |
---|
163 | position="<?lua print((N-1-2)*S) ?>,-1, <?lua print(4*S) ?>" |
---|
164 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
165 | /> |
---|
166 | <!-- tile number 16--> |
---|
167 | <BoxCollisionShape |
---|
168 | position="<?lua print((N-1-2)*S) ?>,-1, <?lua print(5*S) ?>" |
---|
169 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
170 | /> |
---|
171 | <!-- tile number 17--> |
---|
172 | <BoxCollisionShape |
---|
173 | position="<?lua print((N-1-2)*S) ?>,-1, <?lua print(9*S) ?>" |
---|
174 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
175 | /> |
---|
176 | <!-- tile number 18--> |
---|
177 | <BoxCollisionShape |
---|
178 | position="<?lua print((N-1-2)*S) ?>,-1, <?lua print(10*S) ?>" |
---|
179 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
180 | /> |
---|
181 | <!-- tile number 19--> |
---|
182 | <BoxCollisionShape |
---|
183 | position="<?lua print((N-1-3)*S) ?>,-1, <?lua print(0*S) ?>" |
---|
184 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
185 | /> |
---|
186 | <!-- tile number 20--> |
---|
187 | <BoxCollisionShape |
---|
188 | position="<?lua print((N-1-3)*S) ?>,-1, <?lua print(1*S) ?>" |
---|
189 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
190 | /> |
---|
191 | <!-- tile number 21--> |
---|
192 | <BoxCollisionShape |
---|
193 | position="<?lua print((N-1-3)*S) ?>,-1, <?lua print(2*S) ?>" |
---|
194 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
195 | /> |
---|
196 | <!-- tile number 22--> |
---|
197 | <BoxCollisionShape |
---|
198 | position="<?lua print((N-1-3)*S) ?>,-1, <?lua print(5*S) ?>" |
---|
199 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
200 | /> |
---|
201 | <!-- tile number 23--> |
---|
202 | <BoxCollisionShape |
---|
203 | position="<?lua print((N-1-3)*S) ?>,-1, <?lua print(6*S) ?>" |
---|
204 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
205 | /> |
---|
206 | <!-- tile number 24--> |
---|
207 | <BoxCollisionShape |
---|
208 | position="<?lua print((N-1-3)*S) ?>,-1, <?lua print(10*S) ?>" |
---|
209 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
210 | /> |
---|
211 | <!-- tile number 25--> |
---|
212 | <BoxCollisionShape |
---|
213 | position="<?lua print((N-1-4)*S) ?>,-1, <?lua print(6*S) ?>" |
---|
214 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
215 | /> |
---|
216 | <!-- tile number 26--> |
---|
217 | <BoxCollisionShape |
---|
218 | position="<?lua print((N-1-4)*S) ?>,-1, <?lua print(8*S) ?>" |
---|
219 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
220 | /> |
---|
221 | <!-- tile number 27--> |
---|
222 | <BoxCollisionShape |
---|
223 | position="<?lua print((N-1-4)*S) ?>,-1, <?lua print(9*S) ?>" |
---|
224 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
225 | /> |
---|
226 | <!-- tile number 28--> |
---|
227 | <BoxCollisionShape |
---|
228 | position="<?lua print((N-1-4)*S) ?>,-1, <?lua print(10*S) ?>" |
---|
229 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
230 | /> |
---|
231 | <!-- tile number 29--> |
---|
232 | <BoxCollisionShape |
---|
233 | position="<?lua print((N-1-5)*S) ?>,-1, <?lua print(0*S) ?>" |
---|
234 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
235 | /> |
---|
236 | <!-- tile number 30--> |
---|
237 | <BoxCollisionShape |
---|
238 | position="<?lua print((N-1-5)*S) ?>,-1, <?lua print(1*S) ?>" |
---|
239 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
240 | /> |
---|
241 | <!-- tile number 31--> |
---|
242 | <BoxCollisionShape |
---|
243 | position="<?lua print((N-1-5)*S) ?>,-1, <?lua print(2*S) ?>" |
---|
244 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
245 | /> |
---|
246 | <!-- tile number 32--> |
---|
247 | <BoxCollisionShape |
---|
248 | position="<?lua print((N-1-5)*S) ?>,-1, <?lua print(3*S) ?>" |
---|
249 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
250 | /> |
---|
251 | <!-- tile number 33--> |
---|
252 | <BoxCollisionShape |
---|
253 | position="<?lua print((N-1-5)*S) ?>,-1, <?lua print(4*S) ?>" |
---|
254 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
255 | /> |
---|
256 | <!-- tile number 34--> |
---|
257 | <BoxCollisionShape |
---|
258 | position="<?lua print((N-1-5)*S) ?>,-1, <?lua print(5*S) ?>" |
---|
259 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
260 | /> |
---|
261 | <!-- tile number 35--> |
---|
262 | <BoxCollisionShape |
---|
263 | position="<?lua print((N-1-5)*S) ?>,-1, <?lua print(6*S) ?>" |
---|
264 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
265 | /> |
---|
266 | <!-- tile number 36--> |
---|
267 | <BoxCollisionShape |
---|
268 | position="<?lua print((N-1-5)*S) ?>,-1, <?lua print(8*S) ?>" |
---|
269 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
270 | /> |
---|
271 | <!-- tile number 37--> |
---|
272 | <BoxCollisionShape |
---|
273 | position="<?lua print((N-1-6)*S) ?>,-1, <?lua print(0*S) ?>" |
---|
274 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
275 | /> |
---|
276 | <!-- tile number 38--> |
---|
277 | <BoxCollisionShape |
---|
278 | position="<?lua print((N-1-6)*S) ?>,-1, <?lua print(8*S) ?>" |
---|
279 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
280 | /> |
---|
281 | <!-- tile number 39--> |
---|
282 | <BoxCollisionShape |
---|
283 | position="<?lua print((N-1-7)*S) ?>,-1, <?lua print(0*S) ?>" |
---|
284 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
285 | /> |
---|
286 | <!-- tile number 40--> |
---|
287 | <BoxCollisionShape |
---|
288 | position="<?lua print((N-1-7)*S) ?>,-1, <?lua print(8*S) ?>" |
---|
289 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
290 | /> |
---|
291 | <!-- tile number 41--> |
---|
292 | <BoxCollisionShape |
---|
293 | position="<?lua print((N-1-8)*S) ?>,-1, <?lua print(0*S) ?>" |
---|
294 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
295 | /> |
---|
296 | <!-- tile number 42--> |
---|
297 | <BoxCollisionShape |
---|
298 | position="<?lua print((N-1-8)*S) ?>,-1, <?lua print(1*S) ?>" |
---|
299 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
300 | /> |
---|
301 | <!-- tile number 43--> |
---|
302 | <BoxCollisionShape |
---|
303 | position="<?lua print((N-1-8)*S) ?>,-1, <?lua print(2*S) ?>" |
---|
304 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
305 | /> |
---|
306 | <!-- tile number 44--> |
---|
307 | <BoxCollisionShape |
---|
308 | position="<?lua print((N-1-8)*S) ?>,-1, <?lua print(3*S) ?>" |
---|
309 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
310 | /> |
---|
311 | <!-- tile number 45--> |
---|
312 | <BoxCollisionShape |
---|
313 | position="<?lua print((N-1-8)*S) ?>,-1, <?lua print(4*S) ?>" |
---|
314 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
315 | /> |
---|
316 | <!-- tile number 46--> |
---|
317 | <BoxCollisionShape |
---|
318 | position="<?lua print((N-1-8)*S) ?>,-1, <?lua print(8*S) ?>" |
---|
319 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
320 | /> |
---|
321 | <!-- tile number 47--> |
---|
322 | <BoxCollisionShape |
---|
323 | position="<?lua print((N-1-8)*S) ?>,-1, <?lua print(9*S) ?>" |
---|
324 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
325 | /> |
---|
326 | <!-- tile number 48--> |
---|
327 | <BoxCollisionShape |
---|
328 | position="<?lua print((N-1-8)*S) ?>,-1, <?lua print(10*S) ?>" |
---|
329 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
330 | /> |
---|
331 | <!-- tile number 49--> |
---|
332 | <BoxCollisionShape |
---|
333 | position="<?lua print((N-1-9)*S) ?>,-1, <?lua print(4*S) ?>" |
---|
334 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
335 | /> |
---|
336 | <!-- tile number 50--> |
---|
337 | <BoxCollisionShape |
---|
338 | position="<?lua print((N-1-9)*S) ?>,-1, <?lua print(10*S) ?>" |
---|
339 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
340 | /> |
---|
341 | <!-- tile number 51--> |
---|
342 | <BoxCollisionShape |
---|
343 | position="<?lua print((N-1-10)*S) ?>,-1, <?lua print(4*S) ?>" |
---|
344 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
345 | /> |
---|
346 | <!-- tile number 52--> |
---|
347 | <BoxCollisionShape |
---|
348 | position="<?lua print((N-1-10)*S) ?>,-1, <?lua print(5*S) ?>" |
---|
349 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
350 | /> |
---|
351 | <!-- tile number 53--> |
---|
352 | <BoxCollisionShape |
---|
353 | position="<?lua print((N-1-10)*S) ?>,-1, <?lua print(6*S) ?>" |
---|
354 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
355 | /> |
---|
356 | <!-- tile number 54--> |
---|
357 | <BoxCollisionShape |
---|
358 | position="<?lua print((N-1-10)*S) ?>,-1, <?lua print(7*S) ?>" |
---|
359 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
360 | /> |
---|
361 | <!-- tile number 55--> |
---|
362 | <BoxCollisionShape |
---|
363 | position="<?lua print((N-1-10)*S) ?>,-1, <?lua print(8*S) ?>" |
---|
364 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
365 | /> |
---|
366 | <!-- tile number 56--> |
---|
367 | <BoxCollisionShape |
---|
368 | position="<?lua print((N-1-10)*S) ?>,-1, <?lua print(9*S) ?>" |
---|
369 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
370 | /> |
---|
371 | <!-- tile number 57--> |
---|
372 | <BoxCollisionShape |
---|
373 | position="<?lua print((N-1-10)*S) ?>,-1, <?lua print(10*S) ?>" |
---|
374 | halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>" |
---|
375 | /> |
---|
376 | |
---|
377 | |
---|
378 | |
---|
379 | |
---|
380 | |
---|
381 | |
---|
382 | <!-- |
---|
383 | <BoxCollisionShape |
---|
384 | position="<?lua print((N-1)*S/2)?>,-1,<?lua print((N-1)*S/2)?>" |
---|
385 | halfExtents="<?lua print(S*N/2)?>,1,<?lua print(S*N/2)?>" |
---|
386 | /> |
---|
387 | |
---|
388 | --> |
---|
389 | </collisionShapes> |
---|
390 | |
---|
391 | </StaticEntity> |
---|
392 | |
---|
393 | <Light |
---|
394 | type=directional |
---|
395 | position="-50,500,-50" |
---|
396 | direction="0.577, -0.577, 0.577" |
---|
397 | diffuse="1.0, 0.9, 0.9, 1.0" |
---|
398 | specular="1.0, 0.9, 0.9, 1.0" |
---|
399 | /> |
---|
400 | |
---|
401 | <SpawnPoint |
---|
402 | team=0 |
---|
403 | position="<?lua print(S*0)?>,40,<?lua print(8*S)?>" |
---|
404 | lookat="0,40,0" |
---|
405 | spawnclass=HoverShip |
---|
406 | pawndesign=spaceshiphover |
---|
407 | /> |
---|
408 | |
---|
409 | </Scene> |
---|
410 | </Level> |
---|
411 | |
---|