Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/shieldTest.oxw @ 9160

Last change on this file since 9160 was 9016, checked in by jo, 13 years ago

Merging presentation2011 branch to trunk. Please check for possible bugs.

  • Property svn:eol-style set to native
File size: 1.9 KB
RevLine 
[8146]1<LevelInfo
[8577]2 name = "Shield Testlevel"
[8386]3 description = "A simple Level with one shielded drone to shoot at"
[8577]4 tags = "test"
[9016]5 screenshot = "shieldtestlevel.png"
[8146]6/>
7
8<?lua
9  include("HUDTemplates3.oxo")
10  include("stats.oxo")
[8386]11  include("templates/spaceshipImmTest.oxt")
[8146]12  include("templates/lodInformation.oxt")
13?>
14
[9016]15<Level>
[8146]16
[8386]17<templates>
18  <Template link=lodtemplate_default />
19</templates>
[8637]20<?lua include("includes/notifications.oxi") ?>
[8146]21
[8386]22<Scene
[8146]23   ambientlight = "0.8, 0.5, 0.5"
24   skybox       = "Orxonox/Starbox"
[8386]25>
[8146]26
27<Drone name="meineDrohne"
[8577]28    primarythrust= "80"
29    auxilarythrust= "10"
30    rotationthrust= "10"
31    mass= "50"
32    linearDamping= "0.9"
33    angularDamping= "0.7"
[8146]34
[8577]35    health= 100
36    maxhealth= 150
37    inithealth= 200
[8146]38
[8577]39    shieldhealth= 100
40    initialshieldhealth= 200
41    maxshieldhealth= 250
[8146]42
[8577]43    shieldabsorption= 1
[8187]44
[8577]45    reloadrate= "10"
46    reloadwaittime= 1
[8146]47
48>
49  <attached>
50    <Model scale="4" mesh="drone.mesh"/>
51  </attached>
52  <collisionShapes>
53    <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
54  </collisionShapes>
55</Drone>
56
57<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" />
58
59
60    <?lua
61      for i = 1, 10, 1 do
62    ?>
[8386]63      <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipimmtest />
[8146]64    <?lua end ?>
65
66    <GlobalShader compositor="Bloom" visible=false>
67      <events>
68        <visibility>
69          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
70        </visibility>
71      </events>
72    </GlobalShader>
73    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
74    <StaticEntity position="0,0,0" collisionType=static>
75      <collisionShapes>
76        <SphereCollisionShape radius="20" />
77      </collisionShapes>
78    </StaticEntity>
79
80  </Scene>
81</Level>
Note: See TracBrowser for help on using the repository browser.