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