Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5508 was 5502, checked in by jsmely, 16 years ago

weapon updated

  • Property svn:eol-style set to native
File size: 5.1 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<Drone primaryThrust=100 auxiliaryThrust=100 rotationThrust=100 mass = 50 linearDamping = 0.9 angularDamping = 0.7>
29  <attached>
30    <Model scale="10" mesh="Cylinder.mesh"/>
31  </attached>
32  <collisionShapes>
33    <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
34  </collisionShapes>
35</Drone>
36
37<Drone primaryThrust="100" auxilaryThrust="30" rotationThrust="10"
38
39mass = 50
40linearDamping = 0.9
41angularDamping = 0.7
42
43
44>
45  <attached>
46    <Model scale="10" mesh="drone.mesh"/>
47  </attached>
48  <collisionShapes>
49    <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
50  </collisionShapes>
51</Drone>
52
53
54
55
56<?lua
57for i = 1, 10, 1
58do ?>
59    <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 />
60<?lua
61end
62?>
63
64    <GlobalShader compositor="Bloom" visible=false>
65      <events>
66        <visibility>
67          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
68        </visibility>
69      </events>
70    </GlobalShader>
71    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
72    <StaticEntity position="0,0,0" collisionType=static>
73      <collisionShapes>
74        <SphereCollisionShape radius="20" />
75      </collisionShapes>
76    </StaticEntity>
77<!--
78<?lua
79for i = 1, 70, 1
80do ?>
81  <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) ?>">
82    <attached>
83      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
84    </attached>
85  </MovableEntity>
86  <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) ?>">
87    <attached>
88      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
89    </attached>
90  </MovableEntity>
91
92  <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) ?>">
93    <attached>
94      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
95    </attached>
96  </MovableEntity>
97  <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) ?>">
98    <attached>
99      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
100    </attached>
101  </MovableEntity>
102
103  <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) ?>">
104    <attached>
105      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
106    </attached>
107  </MovableEntity>
108  <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) ?>">
109    <attached>
110      <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
111    </attached>
112  </MovableEntity>
113<?lua
114end
115?>
116-->
117  </Scene>
118</Level>
Note: See TracBrowser for help on using the repository browser.