Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/hoverHS15/data/levels/towerDefense.oxw @ 10807

Last change on this file since 10807 was 10629, checked in by fvultier, 9 years ago

Merged towerdefenseFabien branch back to trunk. The towerdefense Minigame is now a plugin.

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