Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/sample3.oxw @ 5354

Last change on this file since 5354 was 5354, checked in by landauf, 15 years ago
  • added directional light to the levelfile
  • added new skybox
  • added new explosion
  • Property svn:eol-style set to native
File size: 7.8 KB
Line 
1<?lua
2  include("levels/hudtemplates3.oxw")
3?>
4
5<?lua
6  include("levels/spaceshiptemplates3.oxw")
7?>
8
9<Level
10 name         = "Sample"
11 description  = "Just a few tests"
12>
13  <Scene
14   ambientlight = "0.5, 0.5, 0.5"
15   skybox       = "Orxonox/skypanoramagen1"
16  >
17    <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" />
18    <!-- This is for Orxonox/Starbox -- Light type=directional position="0,0,0" direction="0.817, -0.400, 0.415" diffuse="1.0, 0.9, 0.6, 1.0" specular="1.0, 0.9, 0.6, 1.0" /-->
19
20    <SpawnPoint position="0,   0,  100"           spawnclass=SpaceShip pawndesign=spaceshipassff />
21    <SpawnPoint position="0,   0, -700" yaw  =180 spawnclass=SpaceShip pawndesign=spaceshipassff />
22    <SpawnPoint position="0, 300, -300" pitch=-90 spawnclass=SpaceShip pawndesign=spaceshipassff />
23
24    <GlobalShader compositor="Bloom" visible=false>
25      <events>
26        <visibility>
27          <DistanceTrigger position="0,-200,0" distance=50 target="ControllableEntity" switch=true />
28        </visibility>
29      </events>
30    </GlobalShader>
31
32    <Bot/>
33    <Bot/>
34    <Bot/>
35    <Bot/>
36    <Bot/>
37
38    <MovableEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90>
39      <events>
40        <activity>
41          <DistanceTrigger position="0,0,-300" distance=50 target="ControllableEntity" invert=1 />
42        </activity>
43      </events>
44      <attached>
45        <Billboard material="Examples/Flare" colour="0.5, 0.5, 1.0, 1.0" scale=4 />
46        <Model position="0,0,0" scale=10 mesh="ast1.mesh" />
47        <PositionableEntity position="0,0,100">
48          <attached>
49            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
50            <MovableEntity position="0,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=500>
51              <attached>
52                <Model position="0,35,0" scale=2 mesh="ast1.mesh">
53                  <attached>
54                    <Backlight position="0, 0, 0" colour="0.0, 1.0, 0.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
55                  </attached>
56                </Model>
57                <Model position="0,-35,0" scale=2 mesh="ast1.mesh">
58                  <attached>
59                    <Backlight position="0, 0, 0" colour="1.0, 0.0, 1.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
60                  </attached>
61                </Model>
62                <Model position="35,0,0" scale=2 mesh="ast1.mesh">
63                  <attached>
64                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
65                    <Backlight position="0, 0, 0" colour="0.0, 0.0, 1.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
66                  </attached>
67                </Model>
68                <Model position="-35,0,0" scale=2 mesh="ast1.mesh">
69                  <attached>
70                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
71                    <Backlight position="0, 0, 0" colour="1.0, 0.0, 0.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
72                  </attached>
73                </Model>
74              </attached>
75            </MovableEntity>
76          </attached>
77        </PositionableEntity>
78        <MovableEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200>
79          <attached>
80            <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
81            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
82            <Model position="0,0,-50" scale=3 mesh="ast1.mesh" />
83            <Model position="0,0,50" scale=3 mesh="ast1.mesh" />
84          </attached>
85        </MovableEntity>
86      </attached>
87    </MovableEntity>
88
89    <ParticleSpawner position="-500,0,-200" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
90    <ParticleSpawner position="-500,0,-300" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
91    <ParticleSpawner position="-500,0,-400" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
92    <ParticleSpawner position="-500,0,-500" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
93    <ParticleSpawner position="-500,0,-600" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
94
95<!--
96    <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
97      <events>
98        <spawn>
99          <EventTrigger delay=1>
100            <events>
101              <trigger>
102                <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
103              </trigger>
104            </events>
105          </EventTrigger>
106        </spawn>
107      </events>
108    </ParticleSpawner>
109-->
110
111    <ParticleEmitter name=fireright position="200,0,0" source="Orxonox/fire3" active=false>
112      <events>
113        <activity>
114          <DistanceTrigger name=firetrigger1 position="200,0,0" distance=100 target="ControllableEntity" />
115        </activity>
116      </events>
117    </ParticleEmitter>
118    <ParticleEmitter name=fireleft position="-200,0,0" source="Orxonox/fire3" active=false>
119      <events>
120        <activity>
121          <DistanceTrigger name=firetrigger2 position="-200,0,0" distance=100 target="ControllableEntity" />
122        </activity>
123      </events>
124    </ParticleEmitter>
125    <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
126      <events>
127        <activity>
128          <EventListener event=firetrigger1 />
129          <EventListener event=firetrigger2 />
130        </activity>
131      </events>
132    </ParticleEmitter>
133
134
135    <EventDispatcher>
136      <targets>
137        <EventTarget name=fireright />
138        <EventTarget name=firecenter />
139        <EventTarget name=fireleft />
140      </targets>
141      <events>
142        <activity>
143          <DistanceTrigger position="0,0,200" distance=50 target="ControllableEntity" />
144        </activity>
145      </events>
146    </EventDispatcher>
147
148<!--
149    <EventDispatcher>
150      <targets>
151        <EventTarget name=bltest />
152      </targets>
153      <events>
154        <activity>
155          <DistanceTrigger switch=1 position="0,200,0" distance=100 target="ControllableEntity" />
156        </activity>
157      </events>
158    </EventDispatcher>
159-->
160
161    <Model position="0,50,0" scale=3 mesh="assff.mesh">
162      <events>
163        <visibility>
164          <DistanceTrigger position="0,50,0" distance=50 target="ControllableEntity" invert=1 />
165        </visibility>
166      </events>
167    </Model>
168
169
170    <Model position="0,0,200" scale=10 mesh="ast2.mesh" shadow=true />
171    <!--Model position="0,0,-200" scale=10 mesh="ast1.mesh" shadow=true /-->
172    <Model position="0,200,0" scale=10 mesh="ast3.mesh" shadow=true />
173    <Model position="0,-200,0" scale=10 mesh="ast4.mesh" shadow=true />
174    <Model position="200,0,0" scale=10 mesh="ast5.mesh" shadow=false />
175    <Model position="-200,0,0" scale=10 mesh="ast6.mesh" shadow=false />
176
177    <Model position="1000,-200,0" scale3D="1,100,100" mesh="ast1.mesh" />
178
179    <Model position="0, 0,-100" pitch=-90 roll=-90 scale=4 mesh="assff.mesh" />
180    <!--Model position="0,100,-100" pitch=-90 roll=-90 scale=4 mesh="pirate.mesh" />
181    <Model position="0,300,-100" pitch=-90 roll=-90 scale=4 mesh="spacecruiser.mesh" /-->
182
183
184<?lua
185for i = 1, 0, 1
186do ?>
187  <MovableEntity position="<?lua print(math.random() * 3000 - 1500)?>, <?lua print(math.random() * 3000 - 1500) ?>, <?lua print(math.random() * 3000 - 1500) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
188    <attached>
189      <Model scale="<?lua print(math.random() * 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
190    </attached>
191  </MovableEntity>
192<?lua
193end
194?>
195
196  </Scene>
197</Level>
Note: See TracBrowser for help on using the repository browser.