Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/consolecommands3/data/levels/presentation.oxw @ 7426

Last change on this file since 7426 was 7163, checked in by dafrick, 14 years ago

Merged presentation3 branch into trunk.

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