Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5308 was 5297, checked in by FelixSchulthess, 16 years ago

simple geometric shapes are of great interest

File size: 7.2 KB
Line 
1<?lua
2  include("levels/hudtemplates.oxw")
3?>
4
5<?lua
6  include("levels/spaceshiptemplates.oxw")
7?>
8
9<Level
10 name         = "Sample"
11 description  = "Just a few tests"
12>
13  <Scene
14   ambientlight = "0.8, 0.8, 0.8"
15   skybox       = "Orxonox/Starbox"
16  >
17    <!--SpawnPoint position="0,   0,  100"           spawnclass=SpaceShip pawndesign=spaceshipassff />
18    <SpawnPoint position="0,   0, -700" yaw  =180 spawnclass=SpaceShip pawndesign=spaceshipassff />
19    <SpawnPoint position="0, 300, -300" pitch=-90 spawnclass=SpaceShip pawndesign=spaceshipassff /-->
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    <MovableEntity position="-300,200,-800" velocity="5,0,0" rotationaxis="1,0,0" rotationrate=0>
43      <attached>
44        <Model position="0,0,0" scale=10 mesh="satellite.mesh" />
45        <MovableEntity position="-4,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50>
46          <attached>
47            <Model position="4,0,0" scale=10 mesh="satellitedish.mesh"/>
48          </attached>
49        </MovableEntity>
50        <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
51        <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
52        <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
53        <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
54      </attached>
55    </MovableEntity>
56
57    <MovableEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90>
58      <events>
59        <activity>
60          <DistanceTrigger position="0,0,-300" distance=50 target="ControllableEntity" invert=1 />
61        </activity>
62      </events>
63      <attached>
64        <Model position="0,0,0" scale=10 mesh="ast1.mesh" />
65        <PositionableEntity position="0,0,100">
66          <attached>
67            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
68            <MovableEntity position="0,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=500>
69              <attached>
70                <Model position="0,35,0" scale=2 mesh="ast1.mesh" />
71                <Model position="0,-35,0" scale=2 mesh="ast1.mesh" />
72                <Model position="35,0,0" scale=2 mesh="ast1.mesh">
73                  <attached>
74                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
75                  </attached>
76                </Model>
77                <Model position="-35,0,0" scale=2 mesh="ast1.mesh">
78                  <attached>
79                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
80                  </attached>
81                </Model>
82              </attached>
83            </MovableEntity>
84          </attached>
85        </PositionableEntity>
86        <MovableEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200>
87          <attached>
88            <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
89            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
90            <Model position="0,0,-50" scale=3 mesh="ast1.mesh" />
91            <Model position="0,0,50" scale=3 mesh="ast1.mesh" />
92          </attached>
93        </MovableEntity>
94      </attached>
95    </MovableEntity>
96
97    <ParticleSpawner position="-500,0,-200" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
98    <ParticleSpawner position="-500,0,-300" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
99    <ParticleSpawner position="-500,0,-400" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
100    <ParticleSpawner position="-500,0,-500" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
101    <ParticleSpawner position="-500,0,-600" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
102
103
104    <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
105      <events>
106        <spawn>
107          <EventTrigger delay=1>
108            <events>
109              <trigger>
110                <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
111              </trigger>
112            </events>
113          </EventTrigger>
114        </spawn>
115      </events>
116    </ParticleSpawner>
117
118
119    <ParticleEmitter name=fireright position="200,0,0" source="Orxonox/fire3" active=false>
120      <events>
121        <activity>
122          <DistanceTrigger name=firetrigger1 position="200,0,0" distance=100 target="ControllableEntity" />
123        </activity>
124      </events>
125    </ParticleEmitter>
126    <ParticleEmitter name=fireleft position="-200,0,0" source="Orxonox/fire3" active=false>
127      <events>
128        <activity>
129          <DistanceTrigger name=firetrigger2 position="-200,0,0" distance=100 target="ControllableEntity" />
130        </activity>
131      </events>
132    </ParticleEmitter>
133    <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
134      <events>
135        <activity>
136          <EventListener event=firetrigger1 />
137          <EventListener event=firetrigger2 />
138        </activity>
139      </events>
140    </ParticleEmitter>
141
142
143    <EventDispatcher>
144      <targets>
145        <EventTarget name=fireright />
146        <EventTarget name=firecenter />
147        <EventTarget name=fireleft />
148      </targets>
149      <events>
150        <activity>
151          <DistanceTrigger position="0,0,200" distance=100 target="ControllableEntity" />
152        </activity>
153      </events>
154    </EventDispatcher>
155
156
157    <Model position="0,50,0" scale=3 mesh="assff.mesh">
158      <events>
159        <visibility>
160          <DistanceTrigger position="0,50,0" distance=50 target="ControllableEntity" invert=1 />
161        </visibility>
162      </events>
163    </Model>
164
165
166    <Model position="0,0,200" scale=10 mesh="ast2.mesh" shadow=true />
167    <!--Model position="0,0,-200" scale=10 mesh="ast1.mesh" shadow=true /-->
168    <Model position="0,200,0" scale=10 mesh="ast3.mesh" shadow=true />
169    <Model position="0,-200,0" scale=10 mesh="ast4.mesh" shadow=true />
170    <Model position="200,0,0" scale=10 mesh="ast5.mesh" shadow=false />
171    <Model position="-200,0,0" scale=10 mesh="ast6.mesh" shadow=false />
172
173    <Model position="1000,-200,0" scale3D="1,100,100" mesh="ast1.mesh" />
174
175    <Model position="0, 0,-100" pitch=-90 roll=-90 scale=4 mesh="assff.mesh" />
176    <!--Model position="0,100,-100" pitch=-90 roll=-90 scale=4 mesh="pirate.mesh" />
177    <Model position="0,300,-100" pitch=-90 roll=-90 scale=4 mesh="spacecruiser.mesh" /-->
178
179  </Scene>
180</Level>
Note: See TracBrowser for help on using the repository browser.