Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/sample2.oxw @ 5323

Last change on this file since 5323 was 5321, checked in by FelixSchulthess, 16 years ago
File size: 7.6 KB
Line 
1<?lua
2  include("levels/hudtemplates.oxw")
3  include("levels/spaceshiptemplates.oxw")
4  dofile("../../media/levels/test.lua")
5?>
6
7<Level
8 name         = "Sample"
9 description  = "Just a few tests"
10>
11  <Scene
12   ambientlight = "0.8, 0.8, 0.8"
13   skybox       = "Orxonox/Starbox"
14  >
15    <!--SpawnPoint position="0,   0,  100"           spawnclass=SpaceShip pawndesign=spaceshipassff />
16    <SpawnPoint position="0,   0, -700" yaw  =180 spawnclass=SpaceShip pawndesign=spaceshipassff />
17    <SpawnPoint position="0, 300, -300" pitch=-90 spawnclass=SpaceShip pawndesign=spaceshipassff /-->
18
19    <?lua test() ?>
20       
21        <!-- axes in ogre's origin of coordinate system for phsics engine testing purposes-->
22        <!--PositionableEntity position="0,0,0">
23                <attached>
24                        <Model position="0,0,0" scale=1 mesh="axes.mesh" />
25                </attached>
26        </PositionableEntity -->
27       
28        <!-- red sphere for phsics engine testing purposes-->
29        <!--PositionableEntity position="40,0,0">
30                <attached>
31                        <Model position="0,0,0" scale=1 mesh="sphere.mesh" />
32                </attached>
33        </PositionableEntity-->
34
35        <!-- yellow cube for phsics engine testing purposes-->
36        <!--PositionableEntity position="80,0,0">
37                <attached>
38                        <Model position="0,0,0" scale=1 mesh="cube.mesh" />
39                </attached>
40        </PositionableEntity-->
41
42        <!-- Carrier with guns not implemented yet -->
43        <MovableEntity position="-2000,-1000,-2000" pitch="-90" roll="90">
44      <attached>
45        <Model position="0,0,0" scale=10 mesh="Carrier.mesh" />
46                <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" />
47        <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" />
48      </attached>
49    </MovableEntity>
50
51    <MovableEntity position="-300,200,-800" velocity="5,0,0" rotationaxis="1,0,0" rotationrate=0>
52      <attached>
53        <Model position="0,0,0" scale=10 mesh="satellite.mesh" />
54        <MovableEntity position="-4,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50>
55          <attached>
56            <Model position="4,0,0" scale=10 mesh="satellitedish.mesh"/>
57          </attached>
58        </MovableEntity>
59        <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
60        <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
61        <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
62        <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
63      </attached>
64    </MovableEntity>
65
66    <MovableEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90>
67      <events>
68        <activity>
69          <DistanceTrigger position="0,0,-300" distance=50 target="ControllableEntity" invert=1 />
70        </activity>
71      </events>
72      <attached>
73        <Model position="0,0,0" scale=10 mesh="ast1.mesh" />
74        <PositionableEntity position="0,0,100">
75          <attached>
76            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
77            <MovableEntity position="0,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=500>
78              <attached>
79                <Model position="0,35,0" scale=2 mesh="ast1.mesh" />
80                <Model position="0,-35,0" scale=2 mesh="ast1.mesh" />
81                <Model position="35,0,0" scale=2 mesh="ast1.mesh">
82                  <attached>
83                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
84                  </attached>
85                </Model>
86                <Model position="-35,0,0" scale=2 mesh="ast1.mesh">
87                  <attached>
88                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
89                  </attached>
90                </Model>
91              </attached>
92            </MovableEntity>
93          </attached>
94        </PositionableEntity>
95        <MovableEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200>
96          <attached>
97            <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
98            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
99            <Model position="0,0,-50" scale=3 mesh="ast1.mesh" />
100            <Model position="0,0,50" scale=3 mesh="ast1.mesh" />
101          </attached>
102        </MovableEntity>
103      </attached>
104    </MovableEntity>
105
106    <ParticleSpawner position="-500,0,-200" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
107    <ParticleSpawner position="-500,0,-300" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
108    <ParticleSpawner position="-500,0,-400" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
109    <ParticleSpawner position="-500,0,-500" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
110    <ParticleSpawner position="-500,0,-600" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
111
112
113    <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
114      <events>
115        <spawn>
116          <EventTrigger delay=1>
117            <events>
118              <trigger>
119                <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
120              </trigger>
121            </events>
122          </EventTrigger>
123        </spawn>
124      </events>
125    </ParticleSpawner>
126
127
128    <ParticleEmitter name=fireright position="200,0,0" source="Orxonox/fire3" active=false>
129      <events>
130        <activity>
131          <DistanceTrigger name=firetrigger1 position="200,0,0" distance=100 target="ControllableEntity" />
132        </activity>
133      </events>
134    </ParticleEmitter>
135    <ParticleEmitter name=fireleft position="-200,0,0" source="Orxonox/fire3" active=false>
136      <events>
137        <activity>
138          <DistanceTrigger name=firetrigger2 position="-200,0,0" distance=100 target="ControllableEntity" />
139        </activity>
140      </events>
141    </ParticleEmitter>
142    <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
143      <events>
144        <activity>
145          <EventListener event=firetrigger1 />
146          <EventListener event=firetrigger2 />
147        </activity>
148      </events>
149    </ParticleEmitter>
150
151
152    <EventDispatcher>
153      <targets>
154        <EventTarget name=fireright />
155        <EventTarget name=firecenter />
156        <EventTarget name=fireleft />
157      </targets>
158      <events>
159        <activity>
160          <DistanceTrigger position="0,0,200" distance=100 target="ControllableEntity" />
161        </activity>
162      </events>
163    </EventDispatcher>
164
165
166    <Model position="0,50,0" scale=3 mesh="assff.mesh">
167      <events>
168        <visibility>
169          <DistanceTrigger position="0,50,0" distance=50 target="ControllableEntity" invert=1 />
170        </visibility>
171      </events>
172    </Model>
173
174
175    <Model position="0,0,200" scale=10 mesh="ast2.mesh" shadow=true />
176    <!--Model position="0,0,-200" scale=10 mesh="ast1.mesh" shadow=true /-->
177    <Model position="0,200,0" scale=10 mesh="ast3.mesh" shadow=true />
178    <Model position="0,-200,0" scale=10 mesh="ast4.mesh" shadow=true />
179    <Model position="200,0,0" scale=10 mesh="ast5.mesh" shadow=false />
180    <Model position="-200,0,0" scale=10 mesh="ast6.mesh" shadow=false />
181
182    <Model position="1000,-200,0" scale3D="1,100,100" mesh="ast1.mesh" />
183
184    <Model position="0, 0,-100" pitch=-90 roll=-90 scale=4 mesh="assff.mesh" />
185    <!--Model position="0,100,-100" pitch=-90 roll=-90 scale=4 mesh="pirate.mesh" />
186    <Model position="0,300,-100" pitch=-90 roll=-90 scale=4 mesh="spacecruiser.mesh" /-->
187
188  </Scene>
189</Level>
Note: See TracBrowser for help on using the repository browser.