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