Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/tutorial.oxw @ 9195

Last change on this file since 9195 was 9016, checked in by jo, 13 years ago

Merging presentation2011 branch to trunk. Please check for possible bugs.

  • 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 screenshot = "codingtutorial.png"
6/>
7
8<?lua
9  include("HUDTemplates3.oxo")
10  include("stats.oxo")
11  include("templates/spaceshipAssff.oxt")
12  include("templates/lodInformation.oxt")
13?>
14
15<Level>
16  <templates>
17    <Template link=lodtemplate_default />
18  </templates>
19  <?lua include("includes/notifications.oxi") ?>
20
21  <Scene
22   ambientlight = "0.5, 0.5, 0.5"
23   skybox       = "Orxonox/skypanoramagen1"
24  >
25
26
27
28
29<Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
30  <attached>
31    <Model scale="1" mesh="drone.mesh"/>
32  </attached>
33  <collisionShapes>
34    <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
35  </collisionShapes>
36</Drone>
37
38    <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
39      <attached>
40        <Model scale="1" mesh="rocket.mesh"/>
41      </attached>
42      <collisionShapes>
43        <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
44      </collisionShapes>
45    </Drone>
46
47    <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" />
48
49    <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />
50    <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />
51
52    <?lua
53      for i = 1, 10, 1 do
54    ?>
55      <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 />
56    <?lua end ?>
57
58    <GlobalShader compositor="Bloom" visible=false>
59      <events>
60        <visibility>
61          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
62        </visibility>
63      </events>
64    </GlobalShader>
65    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
66    <StaticEntity position="0,0,0" collisionType=static>
67      <collisionShapes>
68        <SphereCollisionShape radius="20" />
69      </collisionShapes>
70    </StaticEntity>
71
72<!--
73    <?lua
74      for i = 1, 70, 1 do
75    ?>
76      <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) ?>">
77        <attached>
78          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
79        </attached>
80      </MovableEntity>
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
87      <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) ?>">
88        <attached>
89          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
90        </attached>
91      </MovableEntity>
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
98      <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) ?>">
99        <attached>
100          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
101        </attached>
102      </MovableEntity>
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    <?lua end ?>
109-->
110
111  </Scene>
112</Level>
Note: See TracBrowser for help on using the repository browser.