Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/tutorial.oxw @ 5491

Last change on this file since 5491 was 5484, checked in by vmikos, 16 years ago

Endversion TeamBaseMatch

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