Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/tutorial.oxw @ 7168

Last change on this file since 7168 was 7163, checked in by dafrick, 14 years ago

Merged presentation3 branch into trunk.

  • Property svn:eol-style set to native
File size: 5.2 KB
Line 
1<?lua
2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceship_assff.oxt")
5  include("templates/lodinformation.oxt")
6?>
7
8<Level
9 name         = "Presentation"
10 description  = "A simple testlevel"
11>
12  <templates>
13    <Template link=lodtemplate_default />
14  </templates>
15
16  <Scene
17   ambientlight = "0.5, 0.5, 0.5"
18   skybox       = "Orxonox/skypanoramagen1"
19  >
20
21 
22 
23 
24<Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
25  <attached>
26    <Model scale="1" mesh="drone.mesh"/>
27  </attached>
28  <collisionShapes>
29    <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
30  </collisionShapes>
31</Drone>
32
33    <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
34      <attached>
35        <Model scale="1" mesh="rocket.mesh"/>
36      </attached>
37      <collisionShapes>
38        <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
39      </collisionShapes>
40    </Drone>
41
42    <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" />
43
44    <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />
45    <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />
46
47    <?lua
48      for i = 1, 10, 1 do
49    ?>
50      <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=spaceshipassff />
51    <?lua end ?>
52
53    <GlobalShader compositor="Bloom" visible=false>
54      <events>
55        <visibility>
56          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
57        </visibility>
58      </events>
59    </GlobalShader>
60    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
61    <StaticEntity position="0,0,0" collisionType=static>
62      <collisionShapes>
63        <SphereCollisionShape radius="20" />
64      </collisionShapes>
65    </StaticEntity>
66
67<!--
68    <?lua
69      for i = 1, 70, 1 do
70    ?>
71      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 1000 + 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
72        <attached>
73          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
74        </attached>
75      </MovableEntity>
76      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * -1000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
77        <attached>
78          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
79        </attached>
80      </MovableEntity>
81
82      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * 1000 + 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
83        <attached>
84          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
85        </attached>
86      </MovableEntity>
87      <MovableEntity position="<?lua print(math.random() * 6000 - 3000)?>, <?lua print(math.random() * -1000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
88        <attached>
89          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
90        </attached>
91      </MovableEntity>
92
93      <MovableEntity position="<?lua print(math.random() * 1000 + 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
94        <attached>
95          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
96        </attached>
97      </MovableEntity>
98      <MovableEntity position="<?lua print(math.random() * -1000 - 3000)?>, <?lua print(math.random() * 6000 - 3000) ?>, <?lua print(math.random() * 6000 - 3000) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
99        <attached>
100          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
101        </attached>
102      </MovableEntity>
103    <?lua end ?>
104-->
105
106  </Scene>
107</Level>
Note: See TracBrowser for help on using the repository browser.