Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5344 was 5325, checked in by landauf, 16 years ago

added healthbar

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