Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/surfaceRace/data/levels/surfaceRace.oxw @ 9162

Last change on this file since 9162 was 9162, checked in by laumerf, 12 years ago

added asteroids and pick ups

File size: 11.5 KB
Line 
1<LevelInfo
2 name = "Surface Race"
3 description = "in progress..."
4 screenshot = "emptylevel.png"
5 tags = "gametype"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
12  include("templates/spaceshipRace.oxt")
13  include("templates/pickupRepresentationTemplates.oxt")
14 
15?>
16
17
18<Level
19gametype = SpaceRace
20>
21
22  <templates>
23    <Template link=lodtemplate_default />
24  </templates>
25  <?lua include("includes/notifications.oxi") ?>
26
27  <Scene
28    ambientlight = "2.0, 2.0, 2.0"
29    skybox       = "Orxonox/skyBoxClouds"
30    gravity      = "0,-90,0"
31    negativeWorldRange = "-100000, -100000, -100000"
32    positiveWorldRange = " 100000,  100000,  100000"
33    hasPhysics   = true
34  >
35
36  <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"/>
37
38
39
40<SpaceRaceManager>
41 <checkpoints> 
42        <RaceCheckPoint name="checkpoint1" position="0,8050,-1000" direction="0,1,0" collisionType="static" scale="4" distance="120" checkpointindex="0" islast="false" nextcheckpoints="1,-1,-1">
43        <attached>
44            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
45       
46<!--
47                <Model position="0,0,55" mesh="testcube.mesh" scale3D="110,20,20" />
48                <Model position="0,0,-55" mesh="testcube.mesh" scale3D="110,20,20" />
49                <Model position="55,0,0" mesh="testcube.mesh" scale3D="20,20,110" />
50                <Model position="-55,0,0" mesh="testcube.mesh" scale3D="20,20,110" />
51
52-->
53
54
55        </attached>
56
57
58
59        <collisionShapes>
60
61
62            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
63            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
64            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
65            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
66
67         
68        </collisionShapes>
69
70
71
72       
73    </RaceCheckPoint>
74
75<RaceCheckPoint name="checkpoint2" position="1000,8050,-4000" direction="0,1,0" roll="45" collisionType="static" scale="4" distance="120" checkpointindex="1" islast="false" nextcheckpoints="2,-1,-1">
76        <attached>
77            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
78        </attached>
79       
80
81           <collisionShapes>
82
83            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
84            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
85            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
86            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
87         
88        </collisionShapes>
89    </RaceCheckPoint>
90
91
92
93<RaceCheckPoint name="checkpoint3" position="3000,8050,-4000" direction="0,1,0" roll="-45" collisionType="static" scale="4" distance="120" checkpointindex="2" islast="false" nextcheckpoints="3,-1,-1">
94        <attached>
95            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
96        </attached>
97       <collisionShapes>
98
99
100            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
101            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
102            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
103            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
104
105         
106        </collisionShapes>
107
108    </RaceCheckPoint>
109
110
111<RaceCheckPoint name="checkpoint4" position="4000,8050,-1000" direction="0,1,0" roll="0" collisionType="static" scale="4" distance="120" checkpointindex="3" islast="false" nextcheckpoints="4,-1,-1">
112        <attached>
113            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
114        </attached>
115        <collisionShapes>
116
117
118            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
119            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
120            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
121            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
122
123         
124        </collisionShapes>
125
126    </RaceCheckPoint>
127
128
129<RaceCheckPoint name="checkpoint5" position="4000,8050,0" direction="0,1,0" roll="0" collisionType="static" scale="4" distance="120" checkpointindex="4" islast="false" nextcheckpoints="5,-1,-1">
130        <attached>
131            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
132        </attached>
133        <collisionShapes>
134
135
136            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
137            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
138            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
139            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
140
141         
142        </collisionShapes>
143
144    </RaceCheckPoint>
145
146
147<RaceCheckPoint name="checkpoint6" position="3000,8050,1000" direction="0,1,0" roll="45" collisionType="static" scale="4" distance="120" checkpointindex="5" islast="false" nextcheckpoints="6,-1,-1">
148        <attached>
149            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
150        </attached>
151       <collisionShapes>
152
153
154            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
155            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
156            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
157            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
158
159         
160        </collisionShapes>
161    </RaceCheckPoint>
162
163
164
165<RaceCheckPoint name="checkpoint7" position="0,8050,2000" direction="0,1,0" roll="90" collisionType="static" scale="4" distance="120" checkpointindex="6" islast="false" nextcheckpoints="7,-1,-1">
166        <attached>
167            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
168        </attached>
169      <collisionShapes>
170
171
172            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
173            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
174            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
175            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
176
177         
178        </collisionShapes>
179
180    </RaceCheckPoint>
181
182
183
184<RaceCheckPoint name="checkpoint8" position="-4000,8050,3000" direction="0,1,0" roll="45" collisionType="static" scale="4" distance="120" checkpointindex="7" islast="false" nextcheckpoints="8,-1,-1">
185        <attached>
186            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
187        </attached>
188       <collisionShapes>
189
190            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
191            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
192            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
193            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
194         
195        </collisionShapes>
196    </RaceCheckPoint>
197
198
199<RaceCheckPoint name="checkpoint9" position="-4000,8050,5000" direction="0,1,0" roll="-45" collisionType="static" scale="4" distance="120" checkpointindex="8" islast="false" nextcheckpoints="9,-1,-1">
200        <attached>
201            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
202        </attached>
203         <collisionShapes>
204
205
206            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
207            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
208            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
209            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
210
211         
212        </collisionShapes>
213
214    </RaceCheckPoint>
215
216
217<RaceCheckPoint name="checkpoint10" position="-3000,8050,6000" direction="0,1,0" roll="90" collisionType="static" scale="4" distance="120" checkpointindex="9" islast="false" nextcheckpoints="10,-1,-1">
218        <attached>
219            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
220        </attached>
221       <collisionShapes>
222
223
224            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
225            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
226            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
227            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
228
229         
230        </collisionShapes>
231
232    </RaceCheckPoint>
233
234
235
236<RaceCheckPoint name="checkpoint11" position="6000,8050,6000" direction="0,1,0" roll="90" collisionType="static" scale="4" distance="120" checkpointindex="10" islast="true">
237        <attached>
238            <Model mass="50" scale="50" mesh="raceCheckPoint.mesh" />
239        </attached>
240      <collisionShapes>
241
242
243            <BoxCollisionShape position="0,0,220"     halfExtents="220, 40, 40" />
244            <BoxCollisionShape position="0,0,-220"      halfExtents="220, 40, 40" />
245            <BoxCollisionShape position="220,0,0"      halfExtents="40, 40, 220" />
246            <BoxCollisionShape position="-220,0,0"       halfExtents="40, 40, 220" />
247
248         
249        </collisionShapes>
250
251    </RaceCheckPoint>
252
253
254</checkpoints>
255</SpaceRaceManager>
256
257 <SpawnPoint team=0 position="0,8050,0" lookat="0,8000,-8000" spawnclass=SpaceShip pawndesign=spaceshipRace />
258
259 
260        <!-- -----------------------Zylinder----------------------------
261<StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 friction=0.01 >
262      <attached>
263        <Model position="0,5100,-1300" mesh="cylinder.mesh" scale3D="100,100,100" />
264      </attached>
265  </StaticEntity>
266-->
267
268        <!-- ------------------Boden----------------- -->
269  <StaticEntity position="0,0,0" direction="0,0,0" collisionType=static mass=100000 friction=0.01>
270     <attached>
271        <Model position="0,0,0" mesh="CubeGround.mesh" scale3D="8000,8000,8000" />
272      </attached>
273      <collisionShapes>
274        <BoxCollisionShape position="0,50,0" halfExtents="8000,8000,8000" />
275      </collisionShapes>
276</StaticEntity>
277
278
279
280 <PickupSpawner position="0,8050,-200" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
281      <pickup>
282        <SpeedPickup template=smallspeedpickup />
283      </pickup>
284    </PickupSpawner>
285
286    <PickupSpawner position="0,8050,-400" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
287      <pickup>
288        <SpeedPickup template=mediumspeedpickup />
289      </pickup>
290    </PickupSpawner>
291
292    <PickupSpawner position="0,8050,-600" triggerDistance="10" respawnTime="10" maxSpawnedItems="99">
293      <pickup>
294        <SpeedPickup template=hugespeedpickup />
295      </pickup>
296    </PickupSpawner>
297
298
299
300 <!-- ---------------asteroid ellipse----------------- -->
301
302 <?lua
303    max = 20
304    for i = 0, max, 1
305    do
306        x=-12000
307        y=9000
308        z=-12000
309 
310    ?>
311    <?lua
312    for k = 1, 15, 1
313    do
314    j = math.random()
315    ?>
316
317    <MovableEntity
318      position = "<?lua print(x + math.random() * 20000) ?>,<?lua print(y + math.random() * 5000) ?>,<?lua print(z + math.random() * 20000) ?>"
319      collisionType = "dynamic"
320      linearDamping = "0.5"
321      angularDamping = "0.5"
322      collisiondamage = "1"
323      enablecollisiondamage = "true"
324      scale="<?lua print(j * 5) ?>" >
325      <attached>
326        <Model position="0,0,0" scale="<?lua print(j * 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh">
327      <?lua if k == 0 then ?><attached><!-- ---------asteroid fog----- -->
328            <ParticleEmitter position="0,0,0" source="Orxonox/Steam" />
329          </attached> <?lua end ?>
330        </Model>
331      </attached>
332      <collisionShapes>
333        <SphereCollisionShape radius="<?lua print(j * 80) ?>" />
334      </collisionShapes>
335    </MovableEntity>
336    <?lua
337    end
338    ?>
339    <?lua end ?>
340
341  </Scene>
342</Level>
343
Note: See TracBrowser for help on using the repository browser.