Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

it is alive

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