Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/pickupsFS14/data/levels/jump.oxw @ 10158

Last change on this file since 10158 was 10112, checked in by fvultier, 10 years ago

this is the correct version

File size: 11.1 KB
RevLine 
[10051]1<LevelInfo
2 name = "Jump"
3 description = "Jump in space!"
4 tags = "minigame"
[10074]5 screenshot = "jump.png"
[10051]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
[10074]23<Template name=figureLeftHand defaults=0>
[10112]24  <Model position="4.0,0.0,5.0" mesh="JumpFigureLeftHand.mesh" scale=1 pitch=90>
[10074]25  </Model>
26</Template>
[10051]27
[10074]28<Template name=figureRightHand defaults=0>
[10112]29  <Model position="-4.0,0.0,5.0" mesh="JumpFigureRightHand.mesh" scale=1 pitch=90>
[10074]30  </Model>
31</Template>
[10051]32
33<Template name=jumpFigureTemplate>
[10074]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>
[10051]35    <attached>
[10112]36      <Model position="0,0,0" mesh="JumpFigure.mesh" scale=1 pitch=90/>
[10051]37    </attached>
38  </JumpFigure>
39</Template>
40
41<Template name=jumpProjectileTemplate>
42  <JumpProjectile>
43    <attached>
[10112]44      <Model mesh="JumpProjectile.mesh" scale=1  pitch=90/>
[10051]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>
[10074]51  <JumpPlatformStatic height=3 width=19>
[10051]52    <attached>
[10112]53      <Model mesh="JumpPlatform01.mesh" scale=1  pitch=90/>
[10074]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 />
[10051]55    </attached>
56  </JumpPlatformStatic>
57</Template>
58
59<Template name=jumpPlatformHMoveTemplate>
[10074]60  <JumpPlatformHMove height=3 width=19>
[10051]61    <attached>
[10112]62      <Model mesh="JumpPlatform02.mesh" scale=1  pitch=90/>
[10051]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>
[10074]69  <JumpPlatformVMove height=3 width=19>
[10051]70    <attached>
[10112]71      <Model mesh="JumpPlatform03.mesh" scale=1  pitch=90/>
[10074]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 />
[10051]73    </attached>
74  </JumpPlatformVMove>
75</Template>
76
77<Template name=jumpPlatformDisappearTemplate>
[10074]78  <JumpPlatformDisappear height=3 width=19>
[10051]79    <attached>
[10112]80      <Model mesh="JumpPlatform04.mesh" scale=1  pitch=90/>
[10074]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 />
[10051]82    </attached>
83  </JumpPlatformDisappear>
84</Template>
85
86<Template name=jumpPlatformTimerTemplate>
[10074]87  <JumpPlatformTimer height=3 width=19 effectPath="Orxonox/BigExplosion1part2" effectStartTime="0.4">
[10051]88    <attached>
[10112]89      <Model mesh="JumpPlatform05.mesh" scale=1  pitch=90/>
[10074]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 />
[10051]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 />
[10074]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 />     
[10051]93    </attached>
94  </JumpPlatformTimer>
95</Template>
96
97<Template name=jumpPlatformFakeTemplate>
[10074]98  <JumpPlatformFake height=3 width=19>
[10051]99    <attached>
[10112]100      <Model mesh="JumpPlatform06.mesh" scale=1  pitch=90/>
[10051]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
[10074]106<Template name=jumpEnemy1Template>
107  <JumpEnemy height=7 width=18>
[10051]108    <attached>
[10112]109      <Model mesh="JumpEnemy1.mesh" scale=1  pitch=90/>
[10074]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" />           
[10051]112    </attached>
113  </JumpEnemy>
114</Template>
115
[10074]116<Template name=jumpEnemy2Template>
117  <JumpEnemy height=8 width=20>
118    <attached>
[10112]119      <Model mesh="JumpEnemy2.mesh" scale=1  pitch=90/>
[10074]120      <MovableEntity position="-17, 0, 4" rotationaxis="0, 1, 0" rotationrate=500 >
121        <attached>
[10112]122          <Model mesh="JumpEnemy2Wing.mesh" scale=1 pitch=90/>
[10074]123        </attached>
124      </MovableEntity>     
125      <MovableEntity position="17, 0, 4" rotationaxis="0, 1, 0" rotationrate=500 >
126        <attached>
[10112]127          <Model mesh="JumpEnemy2Wing.mesh" scale=1 pitch=90/>
[10074]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>
[10051]134
[10074]135<Template name=jumpEnemy3Template>
136  <JumpEnemy height=8.2 width=11.2>
137    <attached>
[10112]138      <Model mesh="JumpEnemy3.mesh" scale=1  pitch=90/>
[10074]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>
[10112]149      <Model mesh="JumpEnemy4.mesh" scale=1  pitch=90/>
[10074]150    </attached>
151  </JumpEnemy>
152</Template>
153
154<Template name=jumpSpringTemplate>
155  <JumpSpring height=6 width=9.25>
156    <attached>
[10112]157      <Model mesh="JumpSpring.mesh" scale=1  rotationaxis="0, 0, 1" pitch=90 position="0.0, 0.0, 0.0"/>
[10074]158    </attached>
159  </JumpSpring>
160</Template>
161
162<Template name=jumpRocketTemplate>
163  <JumpRocket height=8.5 width=13.5>
164    <attached>
[10112]165      <Model mesh="JumpRocket.mesh" scale=1  pitch=90 position="0.0, 0.0, 1.0"/>
[10074]166    </attached>
167  </JumpRocket>
168</Template>
169
170<Template name=jumpPropellerTemplate>
171  <JumpPropeller height=4 width=15.5>
172    <attached>
[10112]173      <Model mesh="JumpPropeller.mesh" scale=1  pitch=90 position="0.0, 0.0, 1.0"/>
[10074]174    </attached>
175  </JumpPropeller>
176</Template>
177
178<Template name=jumpBootsTemplate>
179  <JumpBoots height=5.2 width=3.5>
180    <attached>
[10112]181      <Model mesh="JumpBoots.mesh" scale=1  pitch=90 position="0.0, 0.0, 1.0"/>
[10074]182    </attached>
183  </JumpBoots>
184</Template>
185
186<Template name=jumpShieldTemplate>
187  <JumpShield height=1.55 width=15.5>
188    <attached>
[10112]189      <Model mesh="JumpShield.mesh" scale=1 pitch=90 position="0.0, 0.0, 1.0"/>
[10074]190    </attached>
191  </JumpShield>
192</Template>
193
[10051]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"
[10074]213          sectionLength="150"
214          platformSpeed="20"
215          cameraOffset="10"
[10051]216
217          platformStaticTemplate=jumpPlatformStaticTemplate
218          platformHMoveTemplate=jumpPlatformHMoveTemplate
219          platformVMoveTemplate=jumpPlatformVMoveTemplate
220          platformDisappearTemplate=jumpPlatformDisappearTemplate
221          platformTimerTemplate=jumpPlatformTimerTemplate
[10074]222          platformFakeTemplate=jumpPlatformFakeTemplate         
[10051]223          figureTemplate=jumpFigureTemplate
[10074]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          >
[10051]235
236          <attached>
237
[10112]238            <Model position="0,0,-1000" mesh="JumpPlatform01.mesh" scale="1" />
239            <Model position="0,0,-1000" mesh="JumpPlatform02.mesh" scale="1" />
240            <Model position="0,0,-1000" mesh="JumpPlatform03.mesh" scale="1" />
241            <Model position="0,0,-1000" mesh="JumpPlatform04.mesh" scale="1" />
242            <Model position="0,0,-1000" mesh="JumpPlatform05.mesh" scale="1" />
243            <Model position="0,0,-1000" mesh="JumpPlatform06.mesh" scale="1" />
244            <Model position="0,0,-1000" mesh="JumpProjectile.mesh" scale="1" />
245            <Model position="0,0,-1000" mesh="JumpFigure.mesh" scale="1" />
246            <Model position="0,0,-1000" mesh="JumpEnemy1.mesh" scale="1" />
247            <Model position="0,0,-1000" mesh="JumpEnemy2.mesh" scale="1" />
248            <Model position="0,0,-1000" mesh="JumpEnemy3.mesh" scale="1" />
249            <Model position="0,0,-1000" mesh="JumpEnemy4.mesh" scale="1" />
250            <Model position="0,0,-1000" mesh="JumpSpring.mesh" scale="1" />
251            <Model position="0,0,-1000" mesh="JumpRocket.mesh" scale="1" />
[10051]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>
Note: See TracBrowser for help on using the repository browser.