1 | <LevelInfo |
---|
2 | name = "Jump" |
---|
3 | description = "Jump in space!" |
---|
4 | tags = "minigame" |
---|
5 | screenshot = "jump.png" |
---|
6 | /> |
---|
7 | |
---|
8 | <?lua |
---|
9 | include("HUDTemplates3.oxo") |
---|
10 | include("jumpHUD.oxo") |
---|
11 | include("stats.oxo") |
---|
12 | include("templates/lodInformation.oxt") |
---|
13 | ?> |
---|
14 | |
---|
15 | <Template name=jumpfigurecameras defaults=0> |
---|
16 | <JumpFigure> |
---|
17 | <camerapositions> |
---|
18 | <CameraPosition position="0,-150,0" absolute=true mouselook=false drag=false lookat="0,0,0"/> |
---|
19 | </camerapositions> |
---|
20 | </JumpFigure> |
---|
21 | </Template> |
---|
22 | |
---|
23 | <Template name=figureLeftHand defaults=0> |
---|
24 | <Model position="4.0,0.0,5.0" mesh="FigureLeftHand.mesh" scale=1 pitch=90> |
---|
25 | </Model> |
---|
26 | </Template> |
---|
27 | |
---|
28 | <Template name=figureRightHand defaults=0> |
---|
29 | <Model position="-4.0,0.0,5.0" mesh="FigureRightHand.mesh" scale=1 pitch=90> |
---|
30 | </Model> |
---|
31 | </Template> |
---|
32 | |
---|
33 | <Template name=jumpFigureTemplate> |
---|
34 | <JumpFigure camerapositiontemplate=jumpfigurecameras mouseFactor="100.0" modelLefthand=figureLeftHand modelRighthand=figureRightHand rocketPos=10.0 propellerPos=10.0 bootsPos=-5.2 jumpSpeed=250.0 handMinAngle=-20 handMaxAngle=75 handSpeed=250 rocketSpeed=250.0 propellerSpeed=150.0> |
---|
35 | <attached> |
---|
36 | <Model position="0,0,0" mesh="Figure.mesh" scale=1 pitch=90/> |
---|
37 | </attached> |
---|
38 | </JumpFigure> |
---|
39 | </Template> |
---|
40 | |
---|
41 | <Template name=jumpProjectileTemplate> |
---|
42 | <JumpProjectile> |
---|
43 | <attached> |
---|
44 | <Model mesh="Projectile.mesh" scale=1 pitch=90/> |
---|
45 | <ParticleEmitter scale=1 pitch=0 roll=0 position="0, 0, 0" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=0.0 /> |
---|
46 | </attached> |
---|
47 | </JumpProjectile> |
---|
48 | </Template> |
---|
49 | |
---|
50 | <Template name=jumpPlatformStaticTemplate> |
---|
51 | <JumpPlatformStatic height=3 width=19> |
---|
52 | <attached> |
---|
53 | <Model mesh="Platform01.mesh" scale=1 pitch=90/> |
---|
54 | <Backlight scale=0.2 colour="0.9, 0.4, 0.0" width=7 length=500 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" loop=1 /> |
---|
55 | </attached> |
---|
56 | </JumpPlatformStatic> |
---|
57 | </Template> |
---|
58 | |
---|
59 | <Template name=jumpPlatformHMoveTemplate> |
---|
60 | <JumpPlatformHMove height=3 width=19> |
---|
61 | <attached> |
---|
62 | <Model mesh="Platform02.mesh" scale=1 pitch=90/> |
---|
63 | <Backlight scale=0.2 colour="0.1, 0.1, 1.0" width=7 length=500 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" loop=1 /> |
---|
64 | </attached> |
---|
65 | </JumpPlatformHMove> |
---|
66 | </Template> |
---|
67 | |
---|
68 | <Template name=jumpPlatformVMoveTemplate> |
---|
69 | <JumpPlatformVMove height=3 width=19> |
---|
70 | <attached> |
---|
71 | <Model mesh="Platform03.mesh" scale=1 pitch=90/> |
---|
72 | <Backlight scale=0.2 colour="1.0, 0.1, 1.0" width=7 length=500 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" loop=1 /> |
---|
73 | </attached> |
---|
74 | </JumpPlatformVMove> |
---|
75 | </Template> |
---|
76 | |
---|
77 | <Template name=jumpPlatformDisappearTemplate> |
---|
78 | <JumpPlatformDisappear height=3 width=19> |
---|
79 | <attached> |
---|
80 | <Model mesh="Platform04.mesh" scale=1 pitch=90/> |
---|
81 | <Backlight scale=0.2 colour="0.1, 1.0, 0.1" width=7 length=500 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" loop=1 /> |
---|
82 | </attached> |
---|
83 | </JumpPlatformDisappear> |
---|
84 | </Template> |
---|
85 | |
---|
86 | <Template name=jumpPlatformTimerTemplate> |
---|
87 | <JumpPlatformTimer height=3 width=19 effectPath="Orxonox/BigExplosion1part2" effectStartTime="0.4"> |
---|
88 | <attached> |
---|
89 | <Model mesh="Platform05.mesh" scale=1 pitch=90/> |
---|
90 | <ParticleEmitter scaled3D="5.0, 1.0, 2.0" pitch=0 roll=0 position="-4, 0, -2.0" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=0.0 /> |
---|
91 | <ParticleEmitter scaled3D="5.0, 1.0, 2.0" pitch=0 roll=0 position="0, 0, -2.0" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=0.0 /> |
---|
92 | <ParticleEmitter scaled3D="5.0, 1.0, 2.0" pitch=0 roll=0 position="4, 0, -2.0" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=0.0 /> |
---|
93 | </attached> |
---|
94 | </JumpPlatformTimer> |
---|
95 | </Template> |
---|
96 | |
---|
97 | <Template name=jumpPlatformFakeTemplate> |
---|
98 | <JumpPlatformFake height=3 width=19> |
---|
99 | <attached> |
---|
100 | <Model mesh="Platform06.mesh" scale=1 pitch=90/> |
---|
101 | <ParticleEmitter scale3D="0.2,0.2,0.2" pitch=0 roll=0 position="0, 0, -2.5" source="Orxonox/sparks" lifetime=1.0 loop=1 startdelay=0.0 /> |
---|
102 | </attached> |
---|
103 | </JumpPlatformFake> |
---|
104 | </Template> |
---|
105 | |
---|
106 | <Template name=jumpEnemy1Template> |
---|
107 | <JumpEnemy height=7 width=18> |
---|
108 | <attached> |
---|
109 | <Model mesh="Enemy1.mesh" scale=1 pitch=90/> |
---|
110 | <FadingBillboard active=true scale=0.09 position="0, 0, 10" colour="0.2, 1.0, 0.65, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 /> |
---|
111 | <Backlight scale=0.33 name=bltest position="0, 0, -10" colour="0.6, 0.8, 0.75, 0.7" width=25 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" /> |
---|
112 | </attached> |
---|
113 | </JumpEnemy> |
---|
114 | </Template> |
---|
115 | |
---|
116 | <Template name=jumpEnemy2Template> |
---|
117 | <JumpEnemy height=8 width=20> |
---|
118 | <attached> |
---|
119 | <Model mesh="Enemy2.mesh" scale=1 pitch=90/> |
---|
120 | <MovableEntity position="-17, 0, 4" rotationaxis="0, 1, 0" rotationrate=500 > |
---|
121 | <attached> |
---|
122 | <Model mesh="Enemy2Wing.mesh" scale=1 pitch=90/> |
---|
123 | </attached> |
---|
124 | </MovableEntity> |
---|
125 | <MovableEntity position="17, 0, 4" rotationaxis="0, 1, 0" rotationrate=500 > |
---|
126 | <attached> |
---|
127 | <Model mesh="Enemy2Wing.mesh" scale=1 pitch=90/> |
---|
128 | </attached> |
---|
129 | </MovableEntity> |
---|
130 | <ParticleEmitter scale3D="1.0,1.0,1.0" pitch=0 roll=0 position="-1, 0, -3" source="Orxonox/laser" lifetime=1.0 loop=1 startdelay=0.0 /> |
---|
131 | </attached> |
---|
132 | </JumpEnemy> |
---|
133 | </Template> |
---|
134 | |
---|
135 | <Template name=jumpEnemy3Template> |
---|
136 | <JumpEnemy height=8.2 width=11.2> |
---|
137 | <attached> |
---|
138 | <Model mesh="Enemy3.mesh" scale=1 pitch=90/> |
---|
139 | <Backlight scale3D="0.1, 0.1, 1.0" position="0, -11, -4" colour="1.0, 0.0, 0.9, 1.0" width=1 length=1 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1"/> |
---|
140 | <Backlight scale3D="0.1, 0.1, 1.0" position="6.32, 5.5, -4" colour="1.0, 0.0, 0.9, 1.0" width=1 length=1 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1"/> |
---|
141 | <Backlight scale3D="0.1, 0.1, 1.0" position="-6.32, 5.5, -4" colour="1.0, 0.0, 0.9, 1.0" width=1 length=1 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1"/> |
---|
142 | </attached> |
---|
143 | </JumpEnemy> |
---|
144 | </Template> |
---|
145 | |
---|
146 | <Template name=jumpEnemy4Template> |
---|
147 | <JumpEnemy height=7.5 width=21.5 rotationaxis="0, 0, 1" rotationrate=40 > |
---|
148 | <attached> |
---|
149 | <Model mesh="Enemy4.mesh" scale=1 pitch=90/> |
---|
150 | </attached> |
---|
151 | </JumpEnemy> |
---|
152 | </Template> |
---|
153 | |
---|
154 | <Template name=jumpSpringTemplate> |
---|
155 | <JumpSpring height=6 width=9.25> |
---|
156 | <attached> |
---|
157 | <Model mesh="Spring.mesh" scale=1 rotationaxis="0, 0, 1" pitch=90 position="0.0, 0.0, 0.0"/> |
---|
158 | </attached> |
---|
159 | </JumpSpring> |
---|
160 | </Template> |
---|
161 | |
---|
162 | <Template name=jumpRocketTemplate> |
---|
163 | <JumpRocket height=8.5 width=13.5> |
---|
164 | <attached> |
---|
165 | <Model mesh="Rocket.mesh" scale=1 pitch=90 position="0.0, 0.0, 1.0"/> |
---|
166 | </attached> |
---|
167 | </JumpRocket> |
---|
168 | </Template> |
---|
169 | |
---|
170 | <Template name=jumpPropellerTemplate> |
---|
171 | <JumpPropeller height=4 width=15.5> |
---|
172 | <attached> |
---|
173 | <Model mesh="Propeller.mesh" scale=1 pitch=90 position="0.0, 0.0, 1.0"/> |
---|
174 | </attached> |
---|
175 | </JumpPropeller> |
---|
176 | </Template> |
---|
177 | |
---|
178 | <Template name=jumpBootsTemplate> |
---|
179 | <JumpBoots height=5.2 width=3.5> |
---|
180 | <attached> |
---|
181 | <Model mesh="Boots.mesh" scale=1 pitch=90 position="0.0, 0.0, 1.0"/> |
---|
182 | </attached> |
---|
183 | </JumpBoots> |
---|
184 | </Template> |
---|
185 | |
---|
186 | <Template name=jumpShieldTemplate> |
---|
187 | <JumpShield height=1.55 width=15.5> |
---|
188 | <attached> |
---|
189 | <Model mesh="Shield.mesh" scale=1 pitch=90 position="0.0, 0.0, 1.0"/> |
---|
190 | </attached> |
---|
191 | </JumpShield> |
---|
192 | </Template> |
---|
193 | |
---|
194 | <Level gametype = "Jump"> |
---|
195 | <templates> |
---|
196 | <Template link=lodtemplate_default /> |
---|
197 | </templates> |
---|
198 | <?lua include("includes/notifications.oxi") ?> |
---|
199 | |
---|
200 | <WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true"/> |
---|
201 | <JumpBot /> |
---|
202 | |
---|
203 | <Scene ambientlight="1.0, 1.0, 1.0" skybox="Orxonox/skyBoxBasic"> |
---|
204 | <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" /> |
---|
205 | |
---|
206 | <SpawnPoint position="991.729, -110.11, 435.404" orientation="0.534038, 0.563456, 0.212168, 0.593553" /> |
---|
207 | |
---|
208 | <MovableEntity> |
---|
209 | <attached> |
---|
210 | <JumpCenterpoint |
---|
211 | name=jumpcenter |
---|
212 | dimension="120,80" |
---|
213 | sectionLength="150" |
---|
214 | platformSpeed="20" |
---|
215 | cameraOffset="10" |
---|
216 | |
---|
217 | platformStaticTemplate=jumpPlatformStaticTemplate |
---|
218 | platformHMoveTemplate=jumpPlatformHMoveTemplate |
---|
219 | platformVMoveTemplate=jumpPlatformVMoveTemplate |
---|
220 | platformDisappearTemplate=jumpPlatformDisappearTemplate |
---|
221 | platformTimerTemplate=jumpPlatformTimerTemplate |
---|
222 | platformFakeTemplate=jumpPlatformFakeTemplate |
---|
223 | figureTemplate=jumpFigureTemplate |
---|
224 | projectileTemplate=jumpProjectileTemplate |
---|
225 | springTemplate=jumpSpringTemplate |
---|
226 | rocketTemplate=jumpRocketTemplate |
---|
227 | propellerTemplate=jumpPropellerTemplate |
---|
228 | bootsTemplate=jumpBootsTemplate |
---|
229 | shieldTemplate=jumpShieldTemplate |
---|
230 | enemy1Template=jumpEnemy1Template |
---|
231 | enemy2Template=jumpEnemy2Template |
---|
232 | enemy3Template=jumpEnemy3Template |
---|
233 | enemy4Template=jumpEnemy4Template |
---|
234 | > |
---|
235 | |
---|
236 | <attached> |
---|
237 | |
---|
238 | <Model position="0,0,-1000" mesh="Platform01.mesh" scale="1" /> |
---|
239 | <Model position="0,0,-1000" mesh="Platform02.mesh" scale="1" /> |
---|
240 | <Model position="0,0,-1000" mesh="Platform03.mesh" scale="1" /> |
---|
241 | <Model position="0,0,-1000" mesh="Platform04.mesh" scale="1" /> |
---|
242 | <Model position="0,0,-1000" mesh="Platform05.mesh" scale="1" /> |
---|
243 | <Model position="0,0,-1000" mesh="Platform06.mesh" scale="1" /> |
---|
244 | <Model position="0,0,-1000" mesh="Projectile.mesh" scale="1" /> |
---|
245 | <Model position="0,0,-1000" mesh="Figure.mesh" scale="1" /> |
---|
246 | <Model position="0,0,-1000" mesh="Enemy1.mesh" scale="1" /> |
---|
247 | <Model position="0,0,-1000" mesh="Enemy2.mesh" scale="1" /> |
---|
248 | <Model position="0,0,-1000" mesh="Enemy3.mesh" scale="1" /> |
---|
249 | <Model position="0,0,-1000" mesh="Enemy4.mesh" scale="1" /> |
---|
250 | <Model position="0,0,-1000" mesh="Spring.mesh" scale="1" /> |
---|
251 | <Model position="0,0,-1000" mesh="Rocket.mesh" scale="1" /> |
---|
252 | </attached> |
---|
253 | </JumpCenterpoint> |
---|
254 | </attached> |
---|
255 | </MovableEntity> |
---|
256 | |
---|
257 | <EventDispatcher> |
---|
258 | <targets> |
---|
259 | <EventTarget target=scoreeffect_right /> |
---|
260 | <EventTarget target=scoreeffect_center /> |
---|
261 | </targets> |
---|
262 | <events> |
---|
263 | <spawn> |
---|
264 | <EventFilter> |
---|
265 | <names> |
---|
266 | <EventName name=right /> |
---|
267 | </names> |
---|
268 | <EventListener event=jumpcenter /> |
---|
269 | </EventFilter> |
---|
270 | </spawn> |
---|
271 | </events> |
---|
272 | </EventDispatcher> |
---|
273 | <EventDispatcher> |
---|
274 | <targets> |
---|
275 | <EventTarget target=scoreeffect_left /> |
---|
276 | <EventTarget target=scoreeffect_center /> |
---|
277 | </targets> |
---|
278 | <events> |
---|
279 | <spawn> |
---|
280 | <EventFilter> |
---|
281 | <names> |
---|
282 | <EventName name=left /> |
---|
283 | </names> |
---|
284 | <EventListener event=jumpcenter /> |
---|
285 | </EventFilter> |
---|
286 | </spawn> |
---|
287 | </events> |
---|
288 | </EventDispatcher> |
---|
289 | |
---|
290 | </Scene> |
---|
291 | </Level> |
---|