Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/SuperOrxoBros_HS18/data/levels/towerDefense.oxw @ 12195

Last change on this file since 12195 was 12177, checked in by siramesh, 6 years ago

Super Orxo Bros Final (Sidharth Ramesh, Nisa Balta, Jeff Ren)

File size: 14.8 KB
Line 
1<!-- TODO: Update the level's image-->
2
3<!-- See TowerDefenseReadme.txt for Information on this file -->
4
5<LevelInfo
6 name = "Tower Defense"
7 description = "Defend your Spacestation from incoming waves."
8 tags = "minigame"
9 screenshot = "emptylevel.png"
10/>
11
12<?lua
13  include("stats.oxo")
14  include("HUDTemplates3.oxo")
15  include("towerdefenseHUD.oxo")
16  include("templates/lodInformation.oxt")
17  include("includes/weaponSettingsTurret.oxi")
18  include("templates/spaceshipAssff.oxt")
19  include("templates/standardTurret.oxt")
20?>
21
22<Template name=selectercameras defaults=0>
23  <TowerDefenseSelecter>
24    <camerapositions>
25      <CameraPosition position="0,0,1300" lookat="0,0,0" absolute=true drag=true mouselook=true/>
26    </camerapositions>
27  </TowerDefenseSelecter>
28</Template>
29
30<Template name=selectertemplate>
31  <TowerDefenseSelecter team=0 camerapositiontemplate=selectercameras>
32    <attached>
33      <Model position="0,0,0" pitch=90 mesh="TD_Selection.mesh" scale=25/>
34    </attached>
35  </TowerDefenseSelecter>
36</Template>
37
38<Template name=tower1template>
39  <TowerDefenseTower
40  explosionchunks=6
41  shieldrechargerate=10
42  shieldrechargewaittime=5
43  collisionType="none"
44  pitch="0"
45  yaw="0"
46  roll="0"
47  maxPitch=360
48  maxYaw=360
49  maxAttackRadius=1000
50  minAttackRadius=0
51  team=0
52  >
53    <controller>
54       <TurretController team = 0/>
55    </controller>
56    <weaponslots>
57      <WeaponSlot position="0,0,0" />
58    </weaponslots>
59    <weaponsets>
60      <WeaponSet firemode=0 />
61    </weaponsets>
62    <weaponpacks>
63      <WeaponPack>
64        <links>
65          <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
66        </links>
67        <Weapon>
68          <HsW01 mode=0 munitionpershot=0 muzzleoffset="0,0,0" damage=2 shielddamage=1 material="Flares/point_lensflare" delay=0/>
69        </Weapon>
70      </WeaponPack>
71    </weaponpacks>
72    <munition>
73      <LaserMunition initialmagazines=1 maxmagazines=1 munitionpermagazine=10 replenishamount=1 replenishinterval=0.3/>
74    </munition>
75  </TowerDefenseTower>
76</Template>
77
78<Template name=tower2template>
79  <TowerDefenseTower
80  explosionchunks=6
81  shieldrechargerate=10
82  shieldrechargewaittime=5
83  collisionType="none"
84  pitch="0"
85  yaw="0"
86  roll="0"
87  maxPitch=360
88  maxYaw=360
89  maxAttackRadius=1000
90  minAttackRadius=0
91  team=0
92  >
93    <controller>
94       <TurretController team = 0/>
95    </controller>
96    <weaponslots>
97      <WeaponSlot position="0,0,0" />
98    </weaponslots>
99    <weaponsets>
100      <WeaponSet firemode=0 />
101    </weaponsets>
102    <weaponpacks>
103      <WeaponPack>
104        <links>
105          <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
106        </links>
107        <Weapon>         
108          <LightningGun mode=0 munitionpershot=0 muzzleoffset="0,0,0" damage=2 shielddamage=4 />
109        </Weapon>
110      </WeaponPack>
111    </weaponpacks>
112    <munition>
113      <LightningMunition initialmagazines=1 maxmagazines=1 munitionpermagazine=10/>
114    </munition>
115    <attached>
116      <Backlight position="0,0,0" scale=2.0 colour="0.4, 0.0, 1.0" width=10 length=10 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" loop=1 />
117    </attached>   
118  </TowerDefenseTower>
119</Template>
120
121<Template name=tower3template>
122  <TowerDefenseTower
123  explosionchunks=6
124  shieldrechargerate=10
125  shieldrechargewaittime=5
126  collisionType="none"
127  pitch="0"
128  yaw="0"
129  roll="0"
130  maxPitch=360
131  maxYaw=360
132  maxAttackRadius=1000
133  minAttackRadius=0
134  team=0
135  >
136    <controller>
137       <TurretController team = 0/>
138    </controller>
139    <weaponslots>
140      <WeaponSlot position="0,0,0" />
141    </weaponslots>
142    <weaponsets>
143      <WeaponSet firemode=0 />
144    </weaponsets>
145    <weaponpacks>
146      <WeaponPack>
147        <links>
148          <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
149        </links>
150        <Weapon>
151          <SplitGun mode=0 munitionpershot=0 damage=9.3 muzzleoffset=" 1.6, 1.3, -2.0" splittime=0.2 numberofsplits=2 numberofchilds=5 spread=0.1 damagereduction=3.0 />
152        </Weapon>
153      </WeaponPack>
154    </weaponpacks>
155    <munition>
156      <SplitMunition initialmagazines=1 maxmagazines=1 munitionpermagazine=10/>
157    </munition>
158  </TowerDefenseTower>
159</Template>
160
161<Template name=tower4template>
162  <TowerDefenseTower
163  explosionchunks=6
164  shieldrechargerate=10
165  shieldrechargewaittime=5
166  collisionType="none"
167  pitch="0"
168  yaw="0"
169  roll="0"
170  maxPitch=360
171  maxYaw=360
172  maxAttackRadius=1000
173  minAttackRadius=0
174  team=0
175  >
176    <controller>
177       <TurretController team = 0/>
178    </controller>
179    <weaponslots>
180      <WeaponSlot position="0,0,0" />
181    </weaponslots>
182    <weaponsets>
183      <WeaponSet firemode=0 />
184    </weaponsets>
185    <weaponpacks>
186      <WeaponPack>
187        <links>
188          <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
189        </links>
190        <Weapon>
191          <RocketFire mode=0 munitionpershot=0 muzzleoffset="0,0,0" damage=2 shielddamage=4 fuel=10/> 
192        </Weapon>
193      </WeaponPack>
194    </weaponpacks>
195    <munition>
196      <RocketMunition initialmagazines=1 maxmagazines=1 munitionpermagazine=10/>
197    </munition>
198      <attached>
199      <ParticleSpawner position="0,0,0" source="Orxonox/sparks" lifetime=3.0 autostart=1 loop=1 />
200    </attached>
201  </TowerDefenseTower>
202</Template>
203
204<Template name=tower5template>
205  <TowerDefenseTower
206  explosionchunks=6
207  shieldrechargerate=10
208  shieldrechargewaittime=5
209  collisionType="none"
210  pitch="0"
211  yaw="0"
212  roll="0"
213  maxPitch=360
214  maxYaw=360
215  maxAttackRadius=1000
216  minAttackRadius=0
217  team=0
218  >
219    <controller>
220       <TurretController team = 0/>
221    </controller>
222    <weaponslots>
223      <WeaponSlot position="0,0,0" />
224    </weaponslots>
225    <weaponsets>
226      <WeaponSet firemode=0 />
227    </weaponsets>
228    <weaponpacks>
229      <WeaponPack>
230        <links>
231          <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
232        </links>
233        <Weapon>
234          <IceGun mode=0 munitionpershot=0 delay=0.125 damage=9.3 muzzleoffset=" 0,0,0" freezefactor=0.5 freezetime=2.0 />
235        </Weapon>
236      </WeaponPack>
237    </weaponpacks>
238    <munition>
239      <IceMunition initialmagazines=1 maxmagazines=1 munitionpermagazine=10/>
240    </munition>
241  </TowerDefenseTower>
242</Template>
243
244<Template name=enemytowerdefense1>
245  <TowerDefenseEnemy
246   hudtemplate            = spaceshiphud
247   camerapositiontemplate = spaceshipassffcameras
248   spawnparticlesource    = "Orxonox/fairytwirl"
249   spawnparticleduration  = 3
250   explosionchunks        = 6
251
252   health            = 15
253   maxhealth         = 15
254   initialhealth     = 15
255
256   shieldhealth        = 15
257   initialshieldhealth = 15
258   maxshieldhealth     = 15
259   shieldabsorption    = 0.8
260   shieldrechargerate  = 1
261   shieldrechargewaittime = 1
262
263   primaryThrust     = 1000
264   auxilaryThrust    = 30
265   rotationThrust    = 80
266
267   lift = 1;
268   stallSpeed = 220;
269
270   boostPower            = 15
271   boostPowerRate        = 1
272   boostRate             = 5
273   boostCooldownDuration = 10
274
275   shakeFrequency = 15
276   shakeAmplitude = 9
277
278   collisionType     = "dynamic"
279   mass              = 10
280   linearDamping     = 0.7
281   angularDamping    = 0.9999999
282
283   explosionSound = "sounds/Explosion2.ogg"   
284  >
285
286    <engines>
287      <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipassffengine />
288      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipassffengine />
289    </engines>
290    <attached>
291      <Model position="0,0,0" yaw=90 pitch=90 roll=0 scale=4 mesh="assff.mesh" />
292      <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 />
293      <BlinkingBillboard position="-17,-1.5,0" material="Examples/Flare" colour="0.5, 1.0, 0.3" amplitude=0.1 frequency=0.5 phase=180 quadratic=1 />
294    </attached>
295    <collisionShapes>
296      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
297      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
298      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
299      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
300      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
301      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
302    </collisionShapes>
303    <controller>
304       <WaypointController accuracy = 50/>
305    </controller>
306  </TowerDefenseEnemy>
307</Template>
308
309<Template name=enemytowerdefense2>
310  <TowerDefenseEnemy
311   hudtemplate            = spaceshiphud
312   camerapositiontemplate = spaceshipassffcameras
313   spawnparticlesource    = "Orxonox/fairytwirl"
314   spawnparticleduration  = 3
315   explosionchunks        = 6
316
317   health            = 30
318   maxhealth         = 30
319   initialhealth     = 30
320
321   shieldhealth        = 0
322   initialshieldhealth = 0
323   maxshieldhealth     = 0
324   shieldabsorption    = 0.8
325   shieldrechargerate = 1
326   shieldrechargewaittime = 1
327
328   primaryThrust     = 100
329   auxilaryThrust    = 30
330   rotationThrust    = 80
331
332   lift = 1;
333   stallSpeed = 220;
334
335   boostPower            = 15
336   boostPowerRate        = 1
337   boostRate             = 5
338   boostCooldownDuration = 10
339
340   shakeFrequency = 15
341   shakeAmplitude = 9
342
343   collisionType     = "dynamic"
344   mass              = 100
345   linearDamping     = 0.7
346   angularDamping    = 0.9999999
347
348   explosionSound = "sounds/Explosion2.ogg"
349  >
350
351    <engines>
352      <Engine position=" 0, 0, 0"
353        boostfactor    = 2
354        speedfront     = 100
355        speedback      =  50
356        speedleftright =  50
357        speedupdown    =  50       
358        accelerationfront     = 500
359        accelerationbrake     = 500
360        accelerationback      =  125
361        accelerationleftright =  125
362        accelerationupdown    =  125
363      />
364    </engines>
365    <attached>
366      <Model position="0,0,0" yaw=0 pitch=0 roll=0 scale=2.5 mesh="JumpEnemy3.mesh" />
367    </attached>
368    <collisionShapes>
369      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
370      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
371      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
372      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
373      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
374      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
375    </collisionShapes>
376    <controller>
377       <WaypointController accuracy = 50/>
378    </controller>
379  </TowerDefenseEnemy>
380</Template>
381
382<Template name=enemytowerdefense3>
383  <TowerDefenseEnemy
384   hudtemplate            = spaceshiphud
385   camerapositiontemplate = spaceshipassffcameras
386   spawnparticlesource    = "Orxonox/fairytwirl"
387   spawnparticleduration  = 3
388   explosionchunks        = 6
389
390   health            = 15
391   maxhealth         = 15
392   initialhealth     = 15
393   
394   shieldhealth        = 5
395   initialshieldhealth = 5
396   maxshieldhealth     = 5
397   shieldabsorption    = 0.8
398   shieldrechargerate  = 1
399   shieldrechargewaittime = 1
400
401   primaryThrust     = 100
402   auxilaryThrust    = 30
403   rotationThrust    = 80
404
405   lift = 1;
406   stallSpeed = 220;
407
408   boostPower            = 15
409   boostPowerRate        = 1
410   boostRate             = 5
411   boostCooldownDuration = 10
412
413   shakeFrequency = 15
414   shakeAmplitude = 9
415
416   collisionType     = "dynamic"
417   mass              = 100
418   linearDamping     = 0.7
419   angularDamping    = 0.9999999
420
421   explosionSound = "sounds/Explosion2.ogg"
422  >
423
424    <engines>
425      <Engine position=" 0, 0, 0"
426        boostfactor    = 2
427        speedfront     = 300
428        speedback      =  300
429        speedleftright =  300
430        speedupdown    =  300         
431        accelerationfront     = 500
432        accelerationbrake     = 500
433        accelerationback      =  500
434        accelerationleftright =  500
435        accelerationupdown    =  500
436      />
437    </engines>
438    <attached>
439      <Model position="0,0,0" yaw=0 pitch=0 roll=0 scale=2.5 mesh="JumpEnemy4.mesh" />
440    </attached>
441    <collisionShapes>
442      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
443      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
444      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
445      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
446      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
447      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
448    </collisionShapes>
449    <controller>
450       <WaypointController accuracy = 50/>
451    </controller>
452  </TowerDefenseEnemy>
453</Template>
454
455<Level plugins = "towerdefense" gametype = "TowerDefense">
456  <templates>
457    <Template link=lodtemplate_default />
458  </templates>
459
460  <?lua include("includes/notifications.oxi") ?>
461
462  <Scene
463    ambientlight = "0.8, 0.8, 0.8"
464    skybox       = "Orxonox/Starbox"
465  >
466
467    <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"/>
468
469    <SpawnPoint team=0 position="0,0,0"/>
470
471    <Model position="0,0,10000" lodLevel=1 mesh="TD_S1.mesh" scale=1/>
472    <Model position="0,0,10000" lodLevel=1 mesh="TD_S2.mesh" scale=1/>
473    <Model position="0,0,10000" lodLevel=1 mesh="TD_S3.mesh" scale=1/>
474    <Model position="0,0,10000" lodLevel=1 mesh="TD_S4.mesh" scale=1/>
475    <Model position="0,0,10000" lodLevel=1 mesh="TD_S5.mesh" scale=1/>
476    <Model position="0,0,10000" lodLevel=1 mesh="TD_T1.mesh" scale=1/>
477    <Model position="0,0,10000" lodLevel=1 mesh="TD_T2.mesh" scale=1/>
478    <Model position="0,0,10000" lodLevel=1 mesh="TD_T3.mesh" scale=1/>
479    <Model position="0,0,10000" lodLevel=1 mesh="TD_T4.mesh" scale=1/>
480    <Model position="0,0,10000" lodLevel=1 mesh="TD_T5.mesh" scale=1/>
481    <Model position="0,0,10000" lodLevel=1 mesh="TD_F1.mesh" scale=1/>
482
483    <!-- PlayField -->
484    <TowerDefenseCenterpoint
485    name=towerdefensecenter
486    selecterTemplate=selectertemplate
487    tower1Template=tower1template
488    tower2Template=tower2template
489    tower3Template=tower3template
490    tower4Template=tower4template
491    tower5Template=tower5template
492    tower1Cost=100
493    tower2Cost=100
494    tower3Cost=100
495    tower4Cost=100
496    tower5Cost=100
497    fields="F1F1F1R1I1I1I1I1O1F1F1F1F1F1F1F1
498            F1F1F1I2F1F1F1F1F1F1F1F1F1F1F1F1
499            F1F1F1I2F1F1F1F1F1F1F1F1F1F1F1F1
500            F1F1F1I2F1F1F1F1F1F1F1Y1Y1Y1F1F1
501            F1F1F1I2F1F1F1F1F1F1F1F1F1F1F1F1
502            F1F1F1I2F1F1F1F1F1F1F1Y1Y1Y1F1F1
503            F1F1F1R2I3I3I3I3L3F1F1F1F1F1F1F1
504            F1F1F1F1F1F1F1F1I2F1F1F1F1F1F1F1
505            F1F1F1F1F1F1F1F1I2F1F1F1F1F1F1F1
506            X1I1I1I1R0F1F1F1I2F1F1F1F1F1F1F1
507            F1F1F1F1I0F1F1F1I2F1F1F1F1F1F1F1
508            F1F1F1F1I0F1F1F1I2F1F1F1F1F1F1F1
509            F1F1F1F1L1I1I1I1L2F1F1F1F1F1F1F1
510            F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1
511            F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1
512            F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1"
513    width=16
514    height=16
515    tileScale=100
516    position="0,0,0"
517    direction="0,0,0"
518    collisionType=dynamic
519    mass=100000
520    >
521      <camerapositions>
522        <CameraPosition position="0,0,1400" lookat="0,0,0" absolute=true />
523      </camerapositions>   
524    </TowerDefenseCenterpoint>
525
526  </Scene>
527</Level>
528
Note: See TracBrowser for help on using the repository browser.