Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/ppspickups4/data/levels/tutorial.oxw @ 7057

Last change on this file since 7057 was 6951, checked in by scheusso, 15 years ago

merged rocket branch into presentation3 and cleaned up some things (mostly debug output and intendation)

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