Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestates3/data/levels/old/sample4.oxw @ 11579

Last change on this file since 11579 was 6417, checked in by rgrieder, 15 years ago

Merged presentation2 branch back to trunk.
Major new features:

  • Actual GUI with settings, etc.
  • Improved space ship steering (human interaction)
  • Rocket fire and more particle effects
  • Advanced sound framework
  • Property svn:eol-style set to native
File size: 6.4 KB
Line 
1<?lua
2  include("hudtemplates3.oxo")
3?>
4
5<?lua
6  include("templates/spaceship_assff.oxt")
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 position="-300,200,-800" velocity="5,0,0" rotationaxis="1,0,0" rotationrate=0>
22      <attached>
23        <Model position="0,0,0" scale=10 mesh="satellite.mesh" />
24        <MovableEntity position="-4,0,0" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50>
25          <attached>
26            <Model position="4,0,0" scale=10 mesh="satellitedish.mesh"/>
27          </attached>
28        </MovableEntity>
29        <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
30        <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
31        <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
32        <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
33      </attached>
34    </MovableEntity>
35
36    <MovableEntity scale=1.5 position="0,0,-300" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=90>
37      <events>
38        <activity>
39          <DistanceTrigger position="0,0,-300" distance=50 target="ControllableEntity" invert=1 />
40        </activity>
41      </events>
42      <attached>
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                <Model position="0,-35,0" scale=2 mesh="ast1.mesh" />
51                <Model position="35,0,0" scale=2 mesh="ast1.mesh">
52                  <attached>
53                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
54                  </attached>
55                </Model>
56                <Model position="-35,0,0" scale=2 mesh="ast1.mesh">
57                  <attached>
58                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
59                  </attached>
60                </Model>
61              </attached>
62            </MovableEntity>
63          </attached>
64        </PositionableEntity>
65        <MovableEntity position="0,0,-100" velocity="0,0,0" rotationaxis="0,1,0" rotationrate=200>
66          <attached>
67            <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
68            <Model position="0,0,0" scale=6 mesh="ast1.mesh" />
69            <Model position="0,0,-50" scale=3 mesh="ast1.mesh" />
70            <Model position="0,0,50" scale=3 mesh="ast1.mesh" />
71          </attached>
72        </MovableEntity>
73      </attached>
74    </MovableEntity>
75
76
77    <ParticleSpawner position="-500,0,-200" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
78    <ParticleSpawner position="-500,0,-300" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
79    <ParticleSpawner position="-500,0,-400" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
80    <ParticleSpawner position="-500,0,-500" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
81    <ParticleSpawner position="-500,0,-600" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 />
82
83
84    <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
85      <events>
86        <spawn>
87          <EventTrigger delay=1>
88            <events>
89              <trigger>
90                <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
91              </trigger>
92            </events>
93          </EventTrigger>
94        </spawn>
95      </events>
96    </ParticleSpawner>
97
98
99    <ParticleEmitter name=fireright position="200,0,0" source="Orxonox/fire3" active=false>
100      <events>
101        <activity>
102          <DistanceTrigger name=firetrigger1 position="200,0,0" distance=100 target="ControllableEntity" />
103        </activity>
104      </events>
105    </ParticleEmitter>
106    <ParticleEmitter name=fireleft position="-200,0,0" source="Orxonox/fire3" active=false>
107      <events>
108        <activity>
109          <DistanceTrigger name=firetrigger2 position="-200,0,0" distance=100 target="ControllableEntity" />
110        </activity>
111      </events>
112    </ParticleEmitter>
113    <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
114      <events>
115        <activity>
116          <EventListener event=firetrigger1 />
117          <EventListener event=firetrigger2 />
118        </activity>
119      </events>
120    </ParticleEmitter>
121
122
123    <EventDispatcher>
124      <targets>
125        <EventTarget target=fireright />
126        <EventTarget target=firecenter />
127        <EventTarget target=fireleft />
128      </targets>
129      <events>
130        <activity>
131          <DistanceTrigger position="0,0,200" distance=100 target="ControllableEntity" />
132        </activity>
133      </events>
134    </EventDispatcher>
135
136
137    <Model position="0,50,0" scale=3 mesh="assff.mesh">
138      <events>
139        <visibility>
140          <DistanceTrigger position="0,50,0" distance=50 target="ControllableEntity" invert=1 />
141        </visibility>
142      </events>
143    </Model>
144
145
146    <Model position="0,0,200" scale=10 mesh="ast2.mesh" shadow=true />
147    <!--Model position="0,0,-200" scale=10 mesh="ast1.mesh" shadow=true /-->
148    <Model position="0,200,0" scale=10 mesh="ast3.mesh" shadow=true />
149    <Model position="0,-200,0" scale=10 mesh="ast4.mesh" shadow=true />
150    <Model position="200,0,0" scale=10 mesh="ast5.mesh" shadow=false />
151    <Model position="-200,0,0" scale=10 mesh="ast6.mesh" shadow=false />
152
153    <Model position="1000,-200,0" scale3D="1,100,100" mesh="ast1.mesh" />
154
155    <Model position="0, 0,-100" pitch=-90 roll=-90 scale=4 mesh="assff.mesh" />
156    <!--Model position="0,100,-100" pitch=-90 roll=-90 scale=4 mesh="pirate.mesh" />
157    <Model position="0,300,-100" pitch=-90 roll=-90 scale=4 mesh="spacecruiser.mesh" /-->
158
159  </Scene>
160</Level>
Note: See TracBrowser for help on using the repository browser.