Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5269 was 5269, checked in by landauf, 15 years ago

backlights

  • Property svn:eol-style set to native
File size: 6.2 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    <MovableEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90>
22      <events>
23        <activity>
24          <DistanceTrigger position="0,0,-300" distance=50 target="ControllableEntity" invert=1 />
25        </activity>
26      </events>
27      <attached>
28        <Model position="0,0,0" scale=10 mesh="ast1.mesh" />
29        <PositionableEntity position="0,0,100">
30          <attached>
31            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
32            <MovableEntity position="0,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=500>
33              <attached>
34                <Model position="0,35,0" scale=2 mesh="ast1.mesh">
35                  <attached>
36                    <Backlight position="0, 0, 0" colour="0.0, 1.0, 0.0, 1.0" width=5 length=500 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" />
37                  </attached>
38                </Model>
39                <Model position="0,-35,0" scale=2 mesh="ast1.mesh">
40                  <attached>
41                    <Backlight position="0, 0, 0" colour="1.0, 0.0, 1.0, 1.0" width=5 length=500 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" />
42                  </attached>
43                </Model>
44                <Model position="35,0,0" scale=2 mesh="ast1.mesh">
45                  <attached>
46                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
47                    <Backlight position="0, 0, 0" colour="0.0, 0.0, 1.0, 1.0" width=5 length=500 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" />
48                  </attached>
49                </Model>
50                <Model position="-35,0,0" scale=2 mesh="ast1.mesh">
51                  <attached>
52                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
53                    <Backlight position="0, 0, 0" colour="1.0, 0.0, 0.0, 1.0" width=5 length=500 lifetime=1 elements=50 trailmaterial="Trail/backlighttrail" />
54                  </attached>
55                </Model>
56              </attached>
57            </MovableEntity>
58          </attached>
59        </PositionableEntity>
60        <MovableEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200>
61          <attached>
62            <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
63            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
64            <Model position="0,0,-50" scale=3 mesh="ast1.mesh" />
65            <Model position="0,0,50" scale=3 mesh="ast1.mesh" />
66          </attached>
67        </MovableEntity>
68      </attached>
69    </MovableEntity>
70
71
72    <ParticleSpawner position="-500,0,-200" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
73    <ParticleSpawner position="-500,0,-300" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
74    <ParticleSpawner position="-500,0,-400" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
75    <ParticleSpawner position="-500,0,-500" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
76    <ParticleSpawner position="-500,0,-600" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
77
78
79    <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
80      <events>
81        <spawn>
82          <EventTrigger delay=1>
83            <events>
84              <trigger>
85                <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
86              </trigger>
87            </events>
88          </EventTrigger>
89        </spawn>
90      </events>
91    </ParticleSpawner>
92
93
94    <ParticleEmitter name=fireright position="200,0,0" source="Orxonox/fire3" active=false>
95      <events>
96        <activity>
97          <DistanceTrigger name=firetrigger1 position="200,0,0" distance=100 target="ControllableEntity" />
98        </activity>
99      </events>
100    </ParticleEmitter>
101    <ParticleEmitter name=fireleft position="-200,0,0" source="Orxonox/fire3" active=false>
102      <events>
103        <activity>
104          <DistanceTrigger name=firetrigger2 position="-200,0,0" distance=100 target="ControllableEntity" />
105        </activity>
106      </events>
107    </ParticleEmitter>
108    <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
109      <events>
110        <activity>
111          <EventListener event=firetrigger1 />
112          <EventListener event=firetrigger2 />
113        </activity>
114      </events>
115    </ParticleEmitter>
116
117
118    <EventDispatcher>
119      <targets>
120        <EventTarget name=fireright />
121        <EventTarget name=firecenter />
122        <EventTarget name=fireleft />
123      </targets>
124      <events>
125        <activity>
126          <DistanceTrigger position="0,0,200" distance=100 target="ControllableEntity" />
127        </activity>
128      </events>
129    </EventDispatcher>
130
131
132    <Model position="0,50,0" scale=3 mesh="assff.mesh">
133      <events>
134        <visibility>
135          <DistanceTrigger position="0,50,0" distance=50 target="ControllableEntity" invert=1 />
136        </visibility>
137      </events>
138    </Model>
139
140
141    <Model position="0,0,200" scale=10 mesh="ast2.mesh" shadow=true />
142    <!--Model position="0,0,-200" scale=10 mesh="ast1.mesh" shadow=true /-->
143    <Model position="0,200,0" scale=10 mesh="ast3.mesh" shadow=true />
144    <Model position="0,-200,0" scale=10 mesh="ast4.mesh" shadow=true />
145    <Model position="200,0,0" scale=10 mesh="ast5.mesh" shadow=false />
146    <Model position="-200,0,0" scale=10 mesh="ast6.mesh" shadow=false />
147
148    <Model position="1000,-200,0" scale3D="1,100,100" mesh="ast1.mesh" />
149
150    <Model position="0, 0,-100" pitch=-90 roll=-90 scale=4 mesh="assff.mesh" />
151    <!--Model position="0,100,-100" pitch=-90 roll=-90 scale=4 mesh="pirate.mesh" />
152    <Model position="0,300,-100" pitch=-90 roll=-90 scale=4 mesh="spacecruiser.mesh" /-->
153
154  </Scene>
155</Level>
Note: See TracBrowser for help on using the repository browser.