Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/OrxoKart_HS18/data/levels/OrxoKart1.oxw @ 12057

Last change on this file since 12057 was 12057, checked in by ottka, 6 years ago

rainbow road testing

File size: 11.6 KB
Line 
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
21MAZE_NUM_CELLS = 10
22MAZE_CELL_SIZE = 100
23MAZE_CELL_HEIGHT = 30
24MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE
25--number of tiles
26N = 11
27--scaling factor
28S = 250
29
30MAP_ORIGIN = "0,0,0"
31?>
32
33<Level
34plugins = hover
35gametype = 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
88position="<?lua print((N-1-0)*S) ?>,-1, <?lua print(0*S) ?>"
89halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
90/>
91<!-- tile number 1-->
92<BoxCollisionShape
93position="<?lua print((N-1-0)*S) ?>,-1, <?lua print(1*S) ?>"
94halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
95/>
96<!-- tile number 2-->
97<BoxCollisionShape
98position="<?lua print((N-1-0)*S) ?>,-1, <?lua print(2*S) ?>"
99halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
100/>
101<!-- tile number 3-->
102<BoxCollisionShape
103position="<?lua print((N-1-0)*S) ?>,-1, <?lua print(3*S) ?>"
104halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
105/>
106<!-- tile number 4-->
107<BoxCollisionShape
108position="<?lua print((N-1-0)*S) ?>,-1, <?lua print(4*S) ?>"
109halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
110/>
111<!-- tile number 5-->
112<BoxCollisionShape
113position="<?lua print((N-1-0)*S) ?>,-1, <?lua print(5*S) ?>"
114halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
115/>
116<!-- tile number 6-->
117<BoxCollisionShape
118position="<?lua print((N-1-0)*S) ?>,-1, <?lua print(6*S) ?>"
119halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
120/>
121<!-- tile number 7-->
122<BoxCollisionShape
123position="<?lua print((N-1-0)*S) ?>,-1, <?lua print(7*S) ?>"
124halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
125/>
126<!-- tile number 8-->
127<BoxCollisionShape
128position="<?lua print((N-1-1)*S) ?>,-1, <?lua print(0*S) ?>"
129halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
130/>
131<!-- tile number 9-->
132<BoxCollisionShape
133position="<?lua print((N-1-1)*S) ?>,-1, <?lua print(7*S) ?>"
134halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
135/>
136<!-- tile number 10-->
137<BoxCollisionShape
138position="<?lua print((N-1-1)*S) ?>,-1, <?lua print(8*S) ?>"
139halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
140/>
141<!-- tile number 11-->
142<BoxCollisionShape
143position="<?lua print((N-1-1)*S) ?>,-1, <?lua print(9*S) ?>"
144halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
145/>
146<!-- tile number 12-->
147<BoxCollisionShape
148position="<?lua print((N-1-2)*S) ?>,-1, <?lua print(0*S) ?>"
149halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
150/>
151<!-- tile number 13-->
152<BoxCollisionShape
153position="<?lua print((N-1-2)*S) ?>,-1, <?lua print(2*S) ?>"
154halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
155/>
156<!-- tile number 14-->
157<BoxCollisionShape
158position="<?lua print((N-1-2)*S) ?>,-1, <?lua print(3*S) ?>"
159halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
160/>
161<!-- tile number 15-->
162<BoxCollisionShape
163position="<?lua print((N-1-2)*S) ?>,-1, <?lua print(4*S) ?>"
164halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
165/>
166<!-- tile number 16-->
167<BoxCollisionShape
168position="<?lua print((N-1-2)*S) ?>,-1, <?lua print(5*S) ?>"
169halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
170/>
171<!-- tile number 17-->
172<BoxCollisionShape
173position="<?lua print((N-1-2)*S) ?>,-1, <?lua print(9*S) ?>"
174halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
175/>
176<!-- tile number 18-->
177<BoxCollisionShape
178position="<?lua print((N-1-2)*S) ?>,-1, <?lua print(10*S) ?>"
179halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
180/>
181<!-- tile number 19-->
182<BoxCollisionShape
183position="<?lua print((N-1-3)*S) ?>,-1, <?lua print(0*S) ?>"
184halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
185/>
186<!-- tile number 20-->
187<BoxCollisionShape
188position="<?lua print((N-1-3)*S) ?>,-1, <?lua print(1*S) ?>"
189halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
190/>
191<!-- tile number 21-->
192<BoxCollisionShape
193position="<?lua print((N-1-3)*S) ?>,-1, <?lua print(2*S) ?>"
194halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
195/>
196<!-- tile number 22-->
197<BoxCollisionShape
198position="<?lua print((N-1-3)*S) ?>,-1, <?lua print(5*S) ?>"
199halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
200/>
201<!-- tile number 23-->
202<BoxCollisionShape
203position="<?lua print((N-1-3)*S) ?>,-1, <?lua print(6*S) ?>"
204halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
205/>
206<!-- tile number 24-->
207<BoxCollisionShape
208position="<?lua print((N-1-3)*S) ?>,-1, <?lua print(10*S) ?>"
209halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
210/>
211<!-- tile number 25-->
212<BoxCollisionShape
213position="<?lua print((N-1-4)*S) ?>,-1, <?lua print(6*S) ?>"
214halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
215/>
216<!-- tile number 26-->
217<BoxCollisionShape
218position="<?lua print((N-1-4)*S) ?>,-1, <?lua print(8*S) ?>"
219halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
220/>
221<!-- tile number 27-->
222<BoxCollisionShape
223position="<?lua print((N-1-4)*S) ?>,-1, <?lua print(9*S) ?>"
224halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
225/>
226<!-- tile number 28-->
227<BoxCollisionShape
228position="<?lua print((N-1-4)*S) ?>,-1, <?lua print(10*S) ?>"
229halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
230/>
231<!-- tile number 29-->
232<BoxCollisionShape
233position="<?lua print((N-1-5)*S) ?>,-1, <?lua print(0*S) ?>"
234halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
235/>
236<!-- tile number 30-->
237<BoxCollisionShape
238position="<?lua print((N-1-5)*S) ?>,-1, <?lua print(1*S) ?>"
239halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
240/>
241<!-- tile number 31-->
242<BoxCollisionShape
243position="<?lua print((N-1-5)*S) ?>,-1, <?lua print(2*S) ?>"
244halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
245/>
246<!-- tile number 32-->
247<BoxCollisionShape
248position="<?lua print((N-1-5)*S) ?>,-1, <?lua print(3*S) ?>"
249halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
250/>
251<!-- tile number 33-->
252<BoxCollisionShape
253position="<?lua print((N-1-5)*S) ?>,-1, <?lua print(4*S) ?>"
254halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
255/>
256<!-- tile number 34-->
257<BoxCollisionShape
258position="<?lua print((N-1-5)*S) ?>,-1, <?lua print(5*S) ?>"
259halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
260/>
261<!-- tile number 35-->
262<BoxCollisionShape
263position="<?lua print((N-1-5)*S) ?>,-1, <?lua print(6*S) ?>"
264halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
265/>
266<!-- tile number 36-->
267<BoxCollisionShape
268position="<?lua print((N-1-5)*S) ?>,-1, <?lua print(8*S) ?>"
269halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
270/>
271<!-- tile number 37-->
272<BoxCollisionShape
273position="<?lua print((N-1-6)*S) ?>,-1, <?lua print(0*S) ?>"
274halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
275/>
276<!-- tile number 38-->
277<BoxCollisionShape
278position="<?lua print((N-1-6)*S) ?>,-1, <?lua print(8*S) ?>"
279halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
280/>
281<!-- tile number 39-->
282<BoxCollisionShape
283position="<?lua print((N-1-7)*S) ?>,-1, <?lua print(0*S) ?>"
284halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
285/>
286<!-- tile number 40-->
287<BoxCollisionShape
288position="<?lua print((N-1-7)*S) ?>,-1, <?lua print(8*S) ?>"
289halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
290/>
291<!-- tile number 41-->
292<BoxCollisionShape
293position="<?lua print((N-1-8)*S) ?>,-1, <?lua print(0*S) ?>"
294halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
295/>
296<!-- tile number 42-->
297<BoxCollisionShape
298position="<?lua print((N-1-8)*S) ?>,-1, <?lua print(1*S) ?>"
299halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
300/>
301<!-- tile number 43-->
302<BoxCollisionShape
303position="<?lua print((N-1-8)*S) ?>,-1, <?lua print(2*S) ?>"
304halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
305/>
306<!-- tile number 44-->
307<BoxCollisionShape
308position="<?lua print((N-1-8)*S) ?>,-1, <?lua print(3*S) ?>"
309halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
310/>
311<!-- tile number 45-->
312<BoxCollisionShape
313position="<?lua print((N-1-8)*S) ?>,-1, <?lua print(4*S) ?>"
314halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
315/>
316<!-- tile number 46-->
317<BoxCollisionShape
318position="<?lua print((N-1-8)*S) ?>,-1, <?lua print(8*S) ?>"
319halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
320/>
321<!-- tile number 47-->
322<BoxCollisionShape
323position="<?lua print((N-1-8)*S) ?>,-1, <?lua print(9*S) ?>"
324halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
325/>
326<!-- tile number 48-->
327<BoxCollisionShape
328position="<?lua print((N-1-8)*S) ?>,-1, <?lua print(10*S) ?>"
329halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
330/>
331<!-- tile number 49-->
332<BoxCollisionShape
333position="<?lua print((N-1-9)*S) ?>,-1, <?lua print(4*S) ?>"
334halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
335/>
336<!-- tile number 50-->
337<BoxCollisionShape
338position="<?lua print((N-1-9)*S) ?>,-1, <?lua print(10*S) ?>"
339halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
340/>
341<!-- tile number 51-->
342<BoxCollisionShape
343position="<?lua print((N-1-10)*S) ?>,-1, <?lua print(4*S) ?>"
344halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
345/>
346<!-- tile number 52-->
347<BoxCollisionShape
348position="<?lua print((N-1-10)*S) ?>,-1, <?lua print(5*S) ?>"
349halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
350/>
351<!-- tile number 53-->
352<BoxCollisionShape
353position="<?lua print((N-1-10)*S) ?>,-1, <?lua print(6*S) ?>"
354halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
355/>
356<!-- tile number 54-->
357<BoxCollisionShape
358position="<?lua print((N-1-10)*S) ?>,-1, <?lua print(7*S) ?>"
359halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
360/>
361<!-- tile number 55-->
362<BoxCollisionShape
363position="<?lua print((N-1-10)*S) ?>,-1, <?lua print(8*S) ?>"
364halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
365/>
366<!-- tile number 56-->
367<BoxCollisionShape
368position="<?lua print((N-1-10)*S) ?>,-1, <?lua print(9*S) ?>"
369halfExtents="<?lua print(S/2) ?>,1, <?lua print(S/2) ?>"
370/>
371<!-- tile number 57-->
372<BoxCollisionShape
373position="<?lua print((N-1-10)*S) ?>,-1, <?lua print(10*S) ?>"
374halfExtents="<?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
Note: See TracBrowser for help on using the repository browser.