Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 7621 was 7404, checked in by dafrick, 14 years ago

Adding new level notifications.oxw, to "showcase", or at this stage rather "test" Notifications.
Restoring tutorial.oxw to its old state, before it was hijacked by me for testing.

Extending Script class. Now also normal orxonox code can be executed with it, the execution of code can be triggered with Triggers (obviously) and cod can also executed on load.
I needed this to load the NotificationLayer in levels where it is needed.
Also inserted a Script that loads the NotificationQueue to display Notifications in all levels it was needed.

  • Property svn:eol-style set to native
File size: 5.2 KB
RevLine 
[5378]1<?lua
[5654]2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceship_assff.oxt")
[7163]5  include("templates/lodinformation.oxt")
[5378]6?>
7
8<Level
9 name         = "Presentation"
10 description  = "A simple testlevel"
11>
[7163]12  <templates>
13    <Template link=lodtemplate_default />
14  </templates>
15
[5378]16  <Scene
17   ambientlight = "0.5, 0.5, 0.5"
18   skybox       = "Orxonox/skypanoramagen1"
19  >
[5452]20
[7210]21
[5452]22
23
[7404]24<Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
25  <attached>
26    <Model scale="1" mesh="drone.mesh"/>
27  </attached>
28  <collisionShapes>
29    <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
30  </collisionShapes>
31</Drone>
32
33    <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
34      <attached>
35        <Model scale="1" mesh="rocket.mesh"/>
36      </attached>
37      <collisionShapes>
38        <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
39      </collisionShapes>
40    </Drone>
41
[5378]42    <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" />
43
[7404]44    <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />
45    <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />
[5403]46
[7163]47    <?lua
48      for i = 1, 10, 1 do
49    ?>
50      <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 />
51    <?lua end ?>
[5383]52
[7404]53    <GlobalShader compositor="Bloom" visible=false>
54      <events>
55        <visibility>
56          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
57        </visibility>
58      </events>
59    </GlobalShader>
60    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
61    <StaticEntity position="0,0,0" collisionType=static>
62      <collisionShapes>
63        <SphereCollisionShape radius="20" />
64      </collisionShapes>
65    </StaticEntity>
[7163]66
[7404]67<!--
68    <?lua
69      for i = 1, 70, 1 do
70    ?>
71      <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) ?>">
72        <attached>
73          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
74        </attached>
75      </MovableEntity>
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
82      <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) ?>">
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      <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
93      <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) ?>">
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      <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    <?lua end ?>
104-->
105
[5378]106  </Scene>
107</Level>
Note: See TracBrowser for help on using the repository browser.