Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/usability/data/levels/tutorial.oxw @ 10256

Last change on this file since 10256 was 7679, checked in by dafrick, 14 years ago

Renaming levelfiles (and some other) according to our new naming conventions which is using camelCase, without '_' or spaces.

  • Property svn:eol-style set to native
File size: 5.3 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
22  <Scene
23   ambientlight = "0.5, 0.5, 0.5"
24   skybox       = "Orxonox/skypanoramagen1"
25  >
26
27
28
29
30<Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
31  <attached>
32    <Model scale="1" mesh="drone.mesh"/>
33  </attached>
34  <collisionShapes>
35    <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
36  </collisionShapes>
37</Drone>
38
39    <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
40      <attached>
41        <Model scale="1" mesh="rocket.mesh"/>
42      </attached>
43      <collisionShapes>
44        <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
45      </collisionShapes>
46    </Drone>
47
48    <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" />
49
50    <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />
51    <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />
52
53    <?lua
54      for i = 1, 10, 1 do
55    ?>
56      <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 />
57    <?lua end ?>
58
59    <GlobalShader compositor="Bloom" visible=false>
60      <events>
61        <visibility>
62          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
63        </visibility>
64      </events>
65    </GlobalShader>
66    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
67    <StaticEntity position="0,0,0" collisionType=static>
68      <collisionShapes>
69        <SphereCollisionShape radius="20" />
70      </collisionShapes>
71    </StaticEntity>
72
73<!--
74    <?lua
75      for i = 1, 70, 1 do
76    ?>
77      <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) ?>">
78        <attached>
79          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
80        </attached>
81      </MovableEntity>
82      <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) ?>">
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
88      <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) ?>">
89        <attached>
90          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
91        </attached>
92      </MovableEntity>
93      <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) ?>">
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
99      <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) ?>">
100        <attached>
101          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
102        </attached>
103      </MovableEntity>
104      <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) ?>">
105        <attached>
106          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
107        </attached>
108      </MovableEntity>
109    <?lua end ?>
110-->
111
112  </Scene>
113</Level>
Note: See TracBrowser for help on using the repository browser.