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