Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

simple geometric shapes are of great interest

File size: 7.2 KB
RevLine 
[5236]1<?lua
[5242]2  include("levels/hudtemplates.oxw")
[5236]3?>
[5219]4
[5241]5<?lua
[5242]6  include("levels/spaceshiptemplates.oxw")
[5241]7?>
8
[5239]9<Level
[5236]10 name         = "Sample"
11 description  = "Just a few tests"
[5240]12>
13  <Scene
[5297]14   ambientlight = "0.8, 0.8, 0.8"
[5240]15   skybox       = "Orxonox/Starbox"
16  >
[5255]17    <!--SpawnPoint position="0,   0,  100"           spawnclass=SpaceShip pawndesign=spaceshipassff />
[5244]18    <SpawnPoint position="0,   0, -700" yaw  =180 spawnclass=SpaceShip pawndesign=spaceshipassff />
[5284]19    <SpawnPoint position="0, 300, -300" pitch=-90 spawnclass=SpaceShip pawndesign=spaceshipassff /-->
[5297]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-->
[5284]34
[5297]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
[5284]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>
[5236]56
[5255]57    <MovableEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90>
[5256]58      <events>
59        <activity>
60          <DistanceTrigger position="0,0,-300" distance=50 target="ControllableEntity" invert=1 />
61        </activity>
62      </events>
[5219]63      <attached>
[5240]64        <Model position="0,0,0" scale=10 mesh="ast1.mesh" />
65        <PositionableEntity position="0,0,100">
[5236]66          <attached>
[5240]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" />
[5255]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>
[5240]82              </attached>
83            </MovableEntity>
[5236]84          </attached>
[5240]85        </PositionableEntity>
86        <MovableEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200>
87          <attached>
[5255]88            <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
[5240]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>
[5236]93        </MovableEntity>
[5219]94      </attached>
[5236]95    </MovableEntity>
[5219]96
[5266]97    <ParticleSpawner position="-500,0,-200" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
[5255]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 />
[5266]101    <ParticleSpawner position="-500,0,-600" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
[5255]102
[5257]103
[5256]104    <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
[5255]105      <events>
106        <spawn>
[5257]107          <EventTrigger delay=1>
108            <events>
109              <trigger>
110                <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
111              </trigger>
112            </events>
113          </EventTrigger>
[5255]114        </spawn>
115      </events>
116    </ParticleSpawner>
117
[5257]118
119    <ParticleEmitter name=fireright position="200,0,0" source="Orxonox/fire3" active=false>
[5256]120      <events>
121        <activity>
[5257]122          <DistanceTrigger name=firetrigger1 position="200,0,0" distance=100 target="ControllableEntity" />
[5256]123        </activity>
124      </events>
125    </ParticleEmitter>
[5257]126    <ParticleEmitter name=fireleft position="-200,0,0" source="Orxonox/fire3" active=false>
[5256]127      <events>
128        <activity>
[5257]129          <DistanceTrigger name=firetrigger2 position="-200,0,0" distance=100 target="ControllableEntity" />
[5256]130        </activity>
131      </events>
132    </ParticleEmitter>
[5257]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>
[5256]141
[5257]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
[5256]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
[5257]165
[5240]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 />
[5236]172
[5240]173    <Model position="1000,-200,0" scale3D="1,100,100" mesh="ast1.mesh" />
174
[5241]175    <Model position="0, 0,-100" pitch=-90 roll=-90 scale=4 mesh="assff.mesh" />
[5245]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" /-->
[5241]178
[5240]179  </Scene>
180</Level>
Note: See TracBrowser for help on using the repository browser.