Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/tutoriallevel3/data/levels/tutorial.oxw @ 8636

Last change on this file since 8636 was 8636, checked in by dafrick, 13 years ago

Making NotificationQueue XML-loadable. Adding notifications to all levels.

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