Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/png2/data/levels/tutorial.oxw @ 7267

Last change on this file since 7267 was 7210, checked in by dafrick, 14 years ago

Created new NotificationDispatcher. It just displays, upon being triggered, some predefined Notification message.

  • Property svn:eol-style set to native
File size: 6.3 KB
Line 
1<?lua
2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceship_assff.oxt")
5  include("templates/lodinformation.oxt")
6?>
7
8<Level
9 name         = "Presentation"
10 description  = "A simple testlevel"
11>
12  <templates>
13    <Template link=lodtemplate_default />
14  </templates>
15
16  <NotificationQueue
17   name   = "notification"
18   position = "0.05, 0.05"
19   font   = "VeraMono"
20   textsize = 0.020
21   length   = 3
22   width  = 50
23  />
24
25  <Scene
26   ambientlight = "0.5, 0.5, 0.5"
27   skybox       = "Orxonox/skypanoramagen1"
28  >
29
30      <CommandNotification preMessage="Press '" postMessage="' to fire your primary weapon." command="fire 0">
31        <events>
32            <trigger>
33                <DistanceTrigger name=trigger position="0,0,-100" distance=10 target="Pawn">
34                    <attached>
35                        <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
36                    </attached>
37                </DistanceTrigger>
38            </trigger>
39        </events>
40    </CommandNotification>
41
42    <SimpleNotification message="Awesome!!!">
43        <events>
44            <trigger>
45                <DistanceTrigger name=trigger position="0,0,100" distance=10 target="Pawn">
46                    <attached>
47                        <Billboard position="0,0,0" colour="1.0,0,1.0" material="Examples/Flare" />
48                    </attached>
49                </DistanceTrigger>
50            </trigger>
51        </events>
52    </SimpleNotification>
53 
54<Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
55  <attached>
56    <Model scale="1" mesh="drone.mesh"/>
57  </attached>
58  <collisionShapes>
59    <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
60  </collisionShapes>
61</Drone>
62
63    <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
64      <attached>
65        <Model scale="1" mesh="rocket.mesh"/>
66      </attached>
67      <collisionShapes>
68        <BoxCollisionShape position="0,0,0"      halfExtents="10, 10, 10" />
69      </collisionShapes>
70    </Drone>
71
72    <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" />
73
74    <Model mesh="hs-w01.mesh" scale=10 position="0,0,-100" />
75    <Model mesh="hs-w01s.mesh" scale=10 position="0,0,-100" />
76
77    <?lua
78      for i = 1, 10, 1 do
79    ?>
80      <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 />
81    <?lua end ?>
82
83    <GlobalShader compositor="Bloom" visible=false>
84      <events>
85        <visibility>
86          <DistanceTrigger position="0,0,0" distance=30 target="Spectator" switch=true />
87        </visibility>
88      </events>
89    </GlobalShader>
90    <Model position="0,0,0" scale=8 mesh="ast1.mesh" />
91    <StaticEntity position="0,0,0" collisionType=static>
92      <collisionShapes>
93        <SphereCollisionShape radius="20" />
94      </collisionShapes>
95    </StaticEntity>
96
97<!--
98    <?lua
99      for i = 1, 70, 1 do
100    ?>
101      <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) ?>">
102        <attached>
103          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
104        </attached>
105      </MovableEntity>
106      <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) ?>">
107        <attached>
108          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
109        </attached>
110      </MovableEntity>
111
112      <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) ?>">
113        <attached>
114          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
115        </attached>
116      </MovableEntity>
117      <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) ?>">
118        <attached>
119          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
120        </attached>
121      </MovableEntity>
122
123      <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) ?>">
124        <attached>
125          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
126        </attached>
127      </MovableEntity>
128      <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) ?>">
129        <attached>
130          <Model scale="<?lua print(math.random() * 30 + 10) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
131        </attached>
132      </MovableEntity>
133    <?lua end ?>
134-->
135
136  </Scene>
137</Level>
Note: See TracBrowser for help on using the repository browser.