Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 12070 was 12070, checked in by emustafa, 6 years ago

OrxoKart uses OrxoKartKart and not HoverShip

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