Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation3/data/levels/presentation_pong.oxw @ 7017

Last change on this file since 7017 was 7007, checked in by dafrick, 14 years ago

Tested and cleaned all levels (except for the ones that someone is working on at the moment).
Two levels had old Pickups in them, they have been updated to work properly now.
All levels except one are working. The one that isn't is the presentationHS09b level, which crashes due to LOD.

  • Property svn:eol-style set to native
File size: 10.9 KB
Line 
1<?lua
2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("ponghud.oxo")
5?>
6
7<Template name=pongbatcameras defaults=0>
8  <PongBat>
9    <camerapositions>
10      <CameraPosition position="0,200,0" pitch=-90 absolute=true />
11      <CameraPosition position="0,50,160" drag=true mouselook=true />
12      <CameraPosition position="0,40,125" drag=true mouselook=true />
13      <CameraPosition position="0,30, 90" drag=true mouselook=true />
14    </camerapositions>
15  </PongBat>
16</Template>
17
18<Template name=pongbat>
19  <PongBat camerapositiontemplate=pongbatcameras>
20    <attached>
21      <Model position="0,0,3" mesh="cube.mesh" scale3D="14,2,2" />
22      <!--Model roll=180 mesh="pongbat.mesh" scale=0.045 /-->
23    </attached>
24  </PongBat>
25</Template>
26
27<Template name=pongball>
28  <PongBall>
29    <attached>
30      <Model mesh="sphere.mesh" scale=2 />
31      <!--Billboard scale=0.2 colour="1.0, 1.0, 0.5" material="Examples/Flare" /-->
32      <Backlight scale=0.2 colour="1.0, 1.0, 0.5" width=7 length=500 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
33      <Light type=point diffuse="1.0, 1.0, 0.5" specular="1.0, 1.0, 0.5" attenuation="1200, 1.0, 0.0035, 0.00005" />
34      <ParticleSpawner name=hiteffect position="0,0,0" source="Orxonox/sparks2" lifetime=0.01 autostart=0 mainstate=spawn />
35    </attached>
36    <eventlisteners>
37      <EventTarget target=hiteffect />
38    </eventlisteners>
39  </PongBall>
40</Template>
41
42
43<Level
44 name         = "Presentation"
45 description  = "A simple testlevel"
46 gametype     = Pong
47>
48  <AmbientSound source="ambient/mainmenu.wav" playOnLoad=true />
49
50  <Scene
51   ambientlight = "0.5, 0.5, 0.5"
52   skybox       = "Orxonox/skypanoramagen1"
53  >
54    <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" />
55
56    <?lua
57      for i = 1, 10, 1 do
58    ?>
59      <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" />
60    <?lua end ?>
61
62    <MovableEntity rotationrate=5 rotationaxis="0,0,1">
63      <attached>
64        <PongCenterpoint name=pongcenter dimension="200,120" balltemplate=pongball battemplate=pongbat ballspeed=200 ballaccfactor=1.0 batspeed=130 batlength=0.25>
65          <attached>
66            <Model position="0,0,60" mesh="cube.mesh" scale3D="105,1,1" />
67            <Model position="0,0,-60" mesh="cube.mesh" scale3D="105,1,1" />
68
69            <ParticleSpawner name=scoreeffect_right position="120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
70            <ParticleSpawner name=scoreeffect_right position="120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
71            <ParticleSpawner name=scoreeffect_right position="120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
72            <ParticleSpawner name=scoreeffect_right position="120,0,  0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
73            <ParticleSpawner name=scoreeffect_right position="120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
74            <ParticleSpawner name=scoreeffect_right position="120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
75            <ParticleSpawner name=scoreeffect_right position="120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
76
77            <ParticleSpawner name=scoreeffect_left position="-120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
78            <ParticleSpawner name=scoreeffect_left position="-120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
79            <ParticleSpawner name=scoreeffect_left position="-120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
80            <ParticleSpawner name=scoreeffect_left position="-120,0,  0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 />
81            <ParticleSpawner name=scoreeffect_left position="-120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
82            <ParticleSpawner name=scoreeffect_left position="-120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 />
83            <ParticleSpawner name=scoreeffect_left position="-120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 />
84
85            <WorldSound name="scoreSound" position="0,0,0" source="sounds/pong_score.wav" >
86              <events>
87                <play>
88                  <EventListener event=pongcenter />
89                </play>
90              </events>
91            </WorldSound>
92
93            <?lua
94              for i = 1, 15, 1 do
95            ?>
96              <ParticleSpawner name=scoreeffect_center position="<?lua print(math.random() * 200 - 100) ?>,0,<?lua print(math.random() * 120 - 60) ?>" source="Orxonox/sparks2" lifetime=0.02 autostart=0 startdelay=<?lua print(math.random() * 0.7) ?> />
97            <?lua end ?>
98
99          </attached>
100        </PongCenterpoint>
101      </attached>
102    </MovableEntity>
103
104    <EventDispatcher>
105      <targets>
106        <EventTarget target=scoreeffect_right />
107        <EventTarget target=scoreeffect_center />
108      </targets>
109      <events>
110        <spawn>
111          <EventFilter>
112            <names>
113              <EventName name=right />
114            </names>
115            <EventListener event=pongcenter />
116          </EventFilter>
117        </spawn>
118      </events>
119    </EventDispatcher>
120    <EventDispatcher>
121      <targets>
122        <EventTarget target=scoreeffect_left />
123        <EventTarget target=scoreeffect_center />
124      </targets>
125      <events>
126        <spawn>
127          <EventFilter>
128            <names>
129              <EventName name=left />
130            </names>
131            <EventListener event=pongcenter />
132          </EventFilter>
133        </spawn>
134      </events>
135    </EventDispatcher>
136
137    <?lua
138      dofile("includes/CuboidSpaceStation.lua")
139    ?>
140
141    <StaticEntity pitch=15>
142      <attached>
143        <MovableEntity rotationrate="-4.15786" rotationaxis="0,0,1">
144          <attached>
145            <StaticEntity position="-2500,0,0" yaw=90 pitch=90>
146              <attached>
147                <?lua
148                  createSpaceStationPar(0,2,1,2,1,4,1,50)
149                ?>
150              </attached>
151            </StaticEntity>
152          </attached>
153        </MovableEntity>
154      </attached>
155    </StaticEntity>
156
157    <StaticEntity position="0,1200,-200" yaw=50 pitch=60 roll=45>
158      <attached>
159        <Model scale=10 mesh="Carrier.mesh" />
160        <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" />
161        <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" />
162      </attached>
163    </StaticEntity>
164
165    <StaticEntity pitch=70>
166      <attached>
167        <MovableEntity rotationaxis="0,0,1" rotationrate=8.5974>
168          <attached>
169            <StaticEntity yaw=-90 pitch=0 roll=90 position="800,0,0">
170              <attached>
171                <Model position="0,0,0" scale=10 mesh="satellite.mesh" />
172                <MovableEntity position="-4,0,20" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50>
173                  <attached>
174                    <Model position="0,0,0" scale=10 mesh="satellitedish.mesh"/>
175                  </attached>
176                </MovableEntity>
177                <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
178                <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
179                <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
180                <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 />
181              </attached>
182            </StaticEntity>
183          </attached>
184        </MovableEntity>
185      </attached>
186    </StaticEntity>
187
188    <?lua
189      for i = 1, 10, 1 do
190    ?>
191      <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 100 + 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
192        <attached>
193          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
194        </attached>
195      </MovableEntity>
196      <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * -100 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
197        <attached>
198          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
199        </attached>
200      </MovableEntity>
201
202      <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * 100 + 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
203        <attached>
204          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
205        </attached>
206      </MovableEntity>
207      <MovableEntity position="<?lua print(math.random() * 600 - 300)?>, <?lua print(math.random() * -100 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
208        <attached>
209          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
210        </attached>
211      </MovableEntity>
212
213      <MovableEntity position="<?lua print(math.random() * 100 + 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
214        <attached>
215          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
216        </attached>
217      </MovableEntity>
218      <MovableEntity position="<?lua print(math.random() * -100 - 300)?>, <?lua print(math.random() * 600 - 300) ?>, <?lua print(math.random() * 600 - 300) ?>" rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 30 + 5) ?>">
219        <attached>
220          <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false />
221        </attached>
222      </MovableEntity>
223    <?lua end ?>
224
225  </Scene>
226</Level>
Note: See TracBrowser for help on using the repository browser.