1 | <LevelInfo |
---|
2 | name = "Asteroids Race" |
---|
3 | description = "Reach the checkpoints and avoid asteroids." |
---|
4 | tags = "gametype, singleplayer" |
---|
5 | screenshot = "asteroids.png" |
---|
6 | /> |
---|
7 | |
---|
8 | <?lua |
---|
9 | include("HUDTemplates3.oxo") |
---|
10 | include("stats.oxo") |
---|
11 | include("templates/spaceshipAssff.oxt") |
---|
12 | include("templates/lodInformation.oxt") |
---|
13 | ?> |
---|
14 | |
---|
15 | <Level |
---|
16 | gametype = "Asteroids" |
---|
17 | > |
---|
18 | <templates> |
---|
19 | <Template link=lodtemplate_default /> |
---|
20 | </templates> |
---|
21 | <?lua include("includes/notifications.oxi") ?> |
---|
22 | |
---|
23 | <Scene |
---|
24 | ambientlight = "0.5, 0.5, 0.5" |
---|
25 | skybox = "Orxonox/Starbox" |
---|
26 | > |
---|
27 | |
---|
28 | <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> |
---|
29 | |
---|
30 | <SpawnPoint position="-300,300,0" name="playerstart" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> |
---|
31 | |
---|
32 | <?lua |
---|
33 | for i = 1, 250, 1 |
---|
34 | do |
---|
35 | j = math.random() |
---|
36 | ?> |
---|
37 | |
---|
38 | <MovableEntity |
---|
39 | position = "<?lua print(math.random()* 15000 - 1000) ?>,<?lua print(math.random() * 12000 - 4000) ?>,<?lua print(math.random() * 12000 - 4000) ?>" |
---|
40 | collisionType = dynamic |
---|
41 | linearDamping = 0.8 |
---|
42 | angularDamping = 0 |
---|
43 | scale = "<?lua print(j * 150)?>" |
---|
44 | collisiondamage = 1 |
---|
45 | enablecollisiondamage = true |
---|
46 | > |
---|
47 | <attached> |
---|
48 | <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" /> |
---|
49 | </attached> |
---|
50 | <collisionShapes> |
---|
51 | <SphereCollisionShape radius="<?lua print(j * 350) ?>" /> |
---|
52 | </collisionShapes> |
---|
53 | </MovableEntity> |
---|
54 | |
---|
55 | <?lua |
---|
56 | end |
---|
57 | ?> |
---|
58 | |
---|
59 | <!-- |
---|
60 | <MovableEntity position="0,0,0" collisionType=dynamic scale=5 linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true> |
---|
61 | <attached> |
---|
62 | <Model mass=100 mesh="ast1.mesh" /> |
---|
63 | </attached> |
---|
64 | <collisionShapes> |
---|
65 | <SphereCollisionShape radius=11.75 /> |
---|
66 | </collisionShapes> |
---|
67 | </MovableEntity> |
---|
68 | |
---|
69 | |
---|
70 | <MovableEntity position="0,300,0" scale=10 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true> |
---|
71 | <attached> |
---|
72 | <Model mass=100 mesh="ast1.mesh" /> |
---|
73 | </attached> |
---|
74 | <collisionShapes> |
---|
75 | <SphereCollisionShape radius=22.5 /> |
---|
76 | </collisionShapes> |
---|
77 | </MovableEntity> |
---|
78 | |
---|
79 | |
---|
80 | <MovableEntity position="0,600,0" scale=34 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true> |
---|
81 | <attached> |
---|
82 | <Model mass=100 mesh="ast1.mesh" /> |
---|
83 | </attached> |
---|
84 | <collisionShapes> |
---|
85 | <SphereCollisionShape radius=76.5 /> |
---|
86 | </collisionShapes> |
---|
87 | </MovableEntity> |
---|
88 | |
---|
89 | <MovableEntity position="0,1200,0" scale=80 collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true> |
---|
90 | <attached> |
---|
91 | <Model mass=100 mesh="ast1.mesh" /> |
---|
92 | </attached> |
---|
93 | <collisionShapes> |
---|
94 | <SphereCollisionShape radius=200 /> |
---|
95 | </collisionShapes> |
---|
96 | </MovableEntity> |
---|
97 | --> |
---|
98 | |
---|
99 | <SpaceShip position="2000,200,0" lookat="0,0,0" > |
---|
100 | <templates> |
---|
101 | <Template link=spaceshipassff /> |
---|
102 | </templates> |
---|
103 | <controller> |
---|
104 | <AIController /> |
---|
105 | </controller> |
---|
106 | </SpaceShip> |
---|
107 | |
---|
108 | <SpaceShip position="8000,300,700" lookat="0,0,0" > |
---|
109 | <templates> |
---|
110 | <Template link=spaceshipassff /> |
---|
111 | </templates> |
---|
112 | <controller> |
---|
113 | <AIController /> |
---|
114 | </controller> |
---|
115 | </SpaceShip> |
---|
116 | |
---|
117 | <SpaceShip position="10200,400,-600" lookat="0,0,0" > |
---|
118 | <templates> |
---|
119 | <Template link=spaceshipassff /> |
---|
120 | </templates> |
---|
121 | <controller> |
---|
122 | <AIController /> |
---|
123 | </controller> |
---|
124 | </SpaceShip> |
---|
125 | |
---|
126 | <ForceField position="200,300,-500" direction="0,0,1" diameter=500 velocity=120> |
---|
127 | <attached> |
---|
128 | <ParticleEmitter source="Orxonox/ForceFieldPurpleSmall" startdelay=0 /> |
---|
129 | </attached> |
---|
130 | </ForceField> |
---|
131 | |
---|
132 | <ForceField position="2200,-300,1200" direction="1,0.3,-0.7" diameter=800 velocity=200> |
---|
133 | <attached> |
---|
134 | <ParticleEmitter source="Orxonox/ForceFieldBlueBig" startdelay=0 /> |
---|
135 | </attached> |
---|
136 | </ForceField> |
---|
137 | |
---|
138 | <ForceField position="8600,1400,500" direction="-1,-1,-1" diameter=500 velocity=400> |
---|
139 | <attached> |
---|
140 | <ParticleEmitter source="Orxonox/ForceFieldGreenSmall" startdelay=0 /> |
---|
141 | </attached> |
---|
142 | </ForceField> |
---|
143 | |
---|
144 | <ForceField position="11800,500,-2600" direction="-1,0,1" diameter=900 velocity=300> |
---|
145 | <attached> |
---|
146 | <ParticleEmitter source="Orxonox/ForceFieldPurpleBig" startdelay=0 /> |
---|
147 | </attached> |
---|
148 | </ForceField> |
---|
149 | |
---|
150 | |
---|
151 | <CheckPoint name=trigger1 position="-300,300,0" scale=1 isdestination=false isfirst=true stayactive=true distance=10 addtime=24 /> |
---|
152 | |
---|
153 | |
---|
154 | <CheckPoint name=trigger2 position="2200,600,0" scale=3 isdestination=false stayactive=true distance=100 addtime=20> |
---|
155 | <events> |
---|
156 | <activity> |
---|
157 | <EventListener event=trigger1 /> |
---|
158 | </activity> |
---|
159 | </events> |
---|
160 | <attached> |
---|
161 | <Billboard material="Flares/lensflare" colour="1,0,0"> |
---|
162 | <events> |
---|
163 | <visibility> |
---|
164 | <EventTrigger invert=true> |
---|
165 | <events> |
---|
166 | <trigger> |
---|
167 | <EventListener event=trigger1 /> |
---|
168 | </trigger> |
---|
169 | </events> |
---|
170 | </EventTrigger> |
---|
171 | </visibility> |
---|
172 | </events> |
---|
173 | </Billboard> |
---|
174 | <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> |
---|
175 | <events> |
---|
176 | <visibility> |
---|
177 | <EventTrigger> |
---|
178 | <events> |
---|
179 | <trigger> |
---|
180 | <EventListener event=trigger1 /> |
---|
181 | </trigger> |
---|
182 | </events> |
---|
183 | <EventTrigger invert=true> |
---|
184 | <events> |
---|
185 | <trigger> |
---|
186 | <EventListener event=trigger2 /> |
---|
187 | </trigger> |
---|
188 | </events> |
---|
189 | </EventTrigger> |
---|
190 | </EventTrigger> |
---|
191 | </visibility> |
---|
192 | </events> |
---|
193 | </BlinkingBillboard> |
---|
194 | <Billboard material="Flares/lensflare" colour="0,1,0"> |
---|
195 | <events> |
---|
196 | <visibility> |
---|
197 | <EventListener event=trigger2 /> |
---|
198 | </visibility> |
---|
199 | </events> |
---|
200 | </Billboard> |
---|
201 | </attached> |
---|
202 | </CheckPoint> |
---|
203 | |
---|
204 | |
---|
205 | <CheckPoint name=trigger3 position="4100,0,400" scale=3 isdestination=false stayactive=true distance=100 addtime=10> |
---|
206 | <events> |
---|
207 | <activity> |
---|
208 | <EventListener event=trigger2 /> |
---|
209 | </activity> |
---|
210 | </events> |
---|
211 | <attached> |
---|
212 | <Billboard material="Flares/lensflare" colour="1,0,0"> |
---|
213 | <events> |
---|
214 | <visibility> |
---|
215 | <EventTrigger invert=true> |
---|
216 | <events> |
---|
217 | <trigger> |
---|
218 | <EventListener event=trigger2 /> |
---|
219 | </trigger> |
---|
220 | </events> |
---|
221 | </EventTrigger> |
---|
222 | </visibility> |
---|
223 | </events> |
---|
224 | </Billboard> |
---|
225 | <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> |
---|
226 | <events> |
---|
227 | <visibility> |
---|
228 | <EventTrigger> |
---|
229 | <events> |
---|
230 | <trigger> |
---|
231 | <EventListener event=trigger2 /> |
---|
232 | </trigger> |
---|
233 | </events> |
---|
234 | <EventTrigger invert=true> |
---|
235 | <events> |
---|
236 | <trigger> |
---|
237 | <EventListener event=trigger3 /> |
---|
238 | </trigger> |
---|
239 | </events> |
---|
240 | </EventTrigger> |
---|
241 | </EventTrigger> |
---|
242 | </visibility> |
---|
243 | </events> |
---|
244 | </BlinkingBillboard> |
---|
245 | <Billboard material="Flares/lensflare" colour="0,1,0"> |
---|
246 | <events> |
---|
247 | <visibility> |
---|
248 | <EventListener event=trigger3 /> |
---|
249 | </visibility> |
---|
250 | </events> |
---|
251 | </Billboard> |
---|
252 | </attached> |
---|
253 | </CheckPoint> |
---|
254 | |
---|
255 | |
---|
256 | <CheckPoint name=trigger4 position="5600,400,0" scale=3 isdestination=false stayactive=true distance=100 addtime=10> |
---|
257 | <events> |
---|
258 | <activity> |
---|
259 | <EventListener event=trigger3 /> |
---|
260 | </activity> |
---|
261 | </events> |
---|
262 | <attached> |
---|
263 | <Billboard material="Flares/lensflare" colour="1,0,0"> |
---|
264 | <events> |
---|
265 | <visibility> |
---|
266 | <EventTrigger invert=true> |
---|
267 | <events> |
---|
268 | <trigger> |
---|
269 | <EventListener event=trigger3 /> |
---|
270 | </trigger> |
---|
271 | </events> |
---|
272 | </EventTrigger> |
---|
273 | </visibility> |
---|
274 | </events> |
---|
275 | </Billboard> |
---|
276 | <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> |
---|
277 | <events> |
---|
278 | <visibility> |
---|
279 | <EventTrigger> |
---|
280 | <events> |
---|
281 | <trigger> |
---|
282 | <EventListener event=trigger3 /> |
---|
283 | </trigger> |
---|
284 | </events> |
---|
285 | <EventTrigger invert=true> |
---|
286 | <events> |
---|
287 | <trigger> |
---|
288 | <EventListener event=trigger4 /> |
---|
289 | </trigger> |
---|
290 | </events> |
---|
291 | </EventTrigger> |
---|
292 | </EventTrigger> |
---|
293 | </visibility> |
---|
294 | </events> |
---|
295 | </BlinkingBillboard> |
---|
296 | <Billboard material="Flares/lensflare" colour="0,1,0"> |
---|
297 | <events> |
---|
298 | <visibility> |
---|
299 | <EventListener event=trigger4 /> |
---|
300 | </visibility> |
---|
301 | </events> |
---|
302 | </Billboard> |
---|
303 | </attached> |
---|
304 | </CheckPoint> |
---|
305 | |
---|
306 | |
---|
307 | <CheckPoint name=trigger5 position="7200,600,-200" scale=3 isdestination=false stayactive=true distance=100 addtime=10> |
---|
308 | <events> |
---|
309 | <activity> |
---|
310 | <EventListener event=trigger4 /> |
---|
311 | </activity> |
---|
312 | </events> |
---|
313 | <attached> |
---|
314 | <Billboard material="Flares/lensflare" colour="1,0,0"> |
---|
315 | <events> |
---|
316 | <visibility> |
---|
317 | <EventTrigger invert=true> |
---|
318 | <events> |
---|
319 | <trigger> |
---|
320 | <EventListener event=trigger4 /> |
---|
321 | </trigger> |
---|
322 | </events> |
---|
323 | </EventTrigger> |
---|
324 | </visibility> |
---|
325 | </events> |
---|
326 | </Billboard> |
---|
327 | <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> |
---|
328 | <events> |
---|
329 | <visibility> |
---|
330 | <EventTrigger> |
---|
331 | <events> |
---|
332 | <trigger> |
---|
333 | <EventListener event=trigger4 /> |
---|
334 | </trigger> |
---|
335 | </events> |
---|
336 | <EventTrigger invert=true> |
---|
337 | <events> |
---|
338 | <trigger> |
---|
339 | <EventListener event=trigger5 /> |
---|
340 | </trigger> |
---|
341 | </events> |
---|
342 | </EventTrigger> |
---|
343 | </EventTrigger> |
---|
344 | </visibility> |
---|
345 | </events> |
---|
346 | </BlinkingBillboard> |
---|
347 | <Billboard material="Flares/lensflare" colour="0,1,0"> |
---|
348 | <events> |
---|
349 | <visibility> |
---|
350 | <EventListener event=trigger5 /> |
---|
351 | </visibility> |
---|
352 | </events> |
---|
353 | </Billboard> |
---|
354 | </attached> |
---|
355 | </CheckPoint> |
---|
356 | |
---|
357 | |
---|
358 | <CheckPoint name=trigger6 position="9200, 800,-800" scale=3 isdestination=false stayactive=true distance=100 addtime=15> |
---|
359 | <events> |
---|
360 | <activity> |
---|
361 | <EventListener event=trigger5 /> |
---|
362 | </activity> |
---|
363 | </events> |
---|
364 | <attached> |
---|
365 | <Billboard material="Flares/lensflare" colour="1,0,0"> |
---|
366 | <events> |
---|
367 | <visibility> |
---|
368 | <EventTrigger invert=true> |
---|
369 | <events> |
---|
370 | <trigger> |
---|
371 | <EventListener event=trigger5 /> |
---|
372 | </trigger> |
---|
373 | </events> |
---|
374 | </EventTrigger> |
---|
375 | </visibility> |
---|
376 | </events> |
---|
377 | </Billboard> |
---|
378 | <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> |
---|
379 | <events> |
---|
380 | <visibility> |
---|
381 | <EventTrigger> |
---|
382 | <events> |
---|
383 | <trigger> |
---|
384 | <EventListener event=trigger5 /> |
---|
385 | </trigger> |
---|
386 | </events> |
---|
387 | <EventTrigger invert=true> |
---|
388 | <events> |
---|
389 | <trigger> |
---|
390 | <EventListener event=trigger6 /> |
---|
391 | </trigger> |
---|
392 | </events> |
---|
393 | </EventTrigger> |
---|
394 | </EventTrigger> |
---|
395 | </visibility> |
---|
396 | </events> |
---|
397 | </BlinkingBillboard> |
---|
398 | <Billboard material="Flares/lensflare" colour="0,1,0"> |
---|
399 | <events> |
---|
400 | <visibility> |
---|
401 | <EventListener event=trigger6 /> |
---|
402 | </visibility> |
---|
403 | </events> |
---|
404 | </Billboard> |
---|
405 | </attached> |
---|
406 | </CheckPoint> |
---|
407 | |
---|
408 | |
---|
409 | <Model position="11200,400,-1800" scale=10 pitch=-90 mesh="Carrier.mesh"> |
---|
410 | <attached> |
---|
411 | <CheckPoint position="-10,0,0" name=trigger7 scale=0.6 isdestination=true stayactive=true distance=100> |
---|
412 | <events> |
---|
413 | <activity> |
---|
414 | <EventListener event=trigger6 /> |
---|
415 | </activity> |
---|
416 | </events> |
---|
417 | <attached> |
---|
418 | <Billboard material="Flares/lensflare" colour="1,0,0"> |
---|
419 | <events> |
---|
420 | <visibility> |
---|
421 | <EventTrigger invert=true> |
---|
422 | <events> |
---|
423 | <trigger> |
---|
424 | <EventListener event=trigger6 /> |
---|
425 | </trigger> |
---|
426 | </events> |
---|
427 | </EventTrigger> |
---|
428 | </visibility> |
---|
429 | </events> |
---|
430 | </Billboard> |
---|
431 | <BlinkingBillboard frequency=0.2 amplitude=1 material="Flares/lensflare" colour="1,1,0"> |
---|
432 | <events> |
---|
433 | <visibility> |
---|
434 | <EventTrigger> |
---|
435 | <events> |
---|
436 | <trigger> |
---|
437 | <EventListener event=trigger6 /> |
---|
438 | </trigger> |
---|
439 | </events> |
---|
440 | <EventTrigger invert=true> |
---|
441 | <events> |
---|
442 | <trigger> |
---|
443 | <EventListener event=trigger7 /> |
---|
444 | </trigger> |
---|
445 | </events> |
---|
446 | </EventTrigger> |
---|
447 | </EventTrigger> |
---|
448 | </visibility> |
---|
449 | </events> |
---|
450 | </BlinkingBillboard> |
---|
451 | <Billboard material="Flares/lensflare" colour="0,1,0"> |
---|
452 | <events> |
---|
453 | <visibility> |
---|
454 | <EventListener event=trigger7 /> |
---|
455 | </visibility> |
---|
456 | </events> |
---|
457 | </Billboard> |
---|
458 | </attached> |
---|
459 | </CheckPoint> |
---|
460 | </attached> |
---|
461 | </Model> |
---|
462 | |
---|
463 | </Scene> |
---|
464 | </Level> |
---|