[10078] | 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> |
---|
[10259] | 24 | <Model position="4.0,0.0,5.0" mesh="JumpFigureLeftHand.mesh" scale=1 pitch=90> |
---|
[10078] | 25 | </Model> |
---|
| 26 | </Template> |
---|
| 27 | |
---|
| 28 | <Template name=figureRightHand defaults=0> |
---|
[10259] | 29 | <Model position="-4.0,0.0,5.0" mesh="JumpFigureRightHand.mesh" scale=1 pitch=90> |
---|
[10078] | 30 | </Model> |
---|
| 31 | </Template> |
---|
| 32 | |
---|
| 33 | <Template name=jumpFigureTemplate> |
---|
[10259] | 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> |
---|
[10078] | 35 | <attached> |
---|
| 36 | <Model position="0,0,0" mesh="JumpFigure.mesh" scale=1 pitch=90/> |
---|
| 37 | </attached> |
---|
| 38 | </JumpFigure> |
---|
| 39 | </Template> |
---|
| 40 | |
---|
| 41 | <Template name=jumpProjectileTemplate> |
---|
| 42 | <JumpProjectile> |
---|
| 43 | <attached> |
---|
| 44 | <Model mesh="JumpProjectile.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="JumpPlatform01.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="JumpPlatform02.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="JumpPlatform03.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="JumpPlatform04.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="JumpPlatform05.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="JumpPlatform06.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> |
---|
[10259] | 107 | <JumpEnemy height=7 width=18> |
---|
[10078] | 108 | <attached> |
---|
| 109 | <Model mesh="JumpEnemy1.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> |
---|
[10259] | 117 | <JumpEnemy height=8 width=20> |
---|
[10078] | 118 | <attached> |
---|
| 119 | <Model mesh="JumpEnemy2.mesh" scale=1 pitch=90/> |
---|
[10259] | 120 | <MovableEntity position="-17, 0, 4" rotationaxis="0, 1, 0" rotationrate=500 > |
---|
[10078] | 121 | <attached> |
---|
| 122 | <Model mesh="JumpEnemy2Wing.mesh" scale=1 pitch=90/> |
---|
| 123 | </attached> |
---|
| 124 | </MovableEntity> |
---|
[10259] | 125 | <MovableEntity position="17, 0, 4" rotationaxis="0, 1, 0" rotationrate=500 > |
---|
[10078] | 126 | <attached> |
---|
| 127 | <Model mesh="JumpEnemy2Wing.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> |
---|
[10259] | 136 | <JumpEnemy height=8.2 width=11.2> |
---|
[10078] | 137 | <attached> |
---|
| 138 | <Model mesh="JumpEnemy3.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> |
---|
[10259] | 147 | <JumpEnemy height=7.5 width=21.5 rotationaxis="0, 0, 1" rotationrate=40 > |
---|
[10078] | 148 | <attached> |
---|
| 149 | <Model mesh="JumpEnemy4.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="JumpSpring.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="JumpRocket.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="JumpPropeller.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="JumpBoots.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="JumpShield.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="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" /> |
---|
[10259] | 244 | <Model position="0,0,-1000" mesh="JumpProjectile.mesh" scale="1" /> |
---|
[10078] | 245 | <Model position="0,0,-1000" mesh="JumpEnemy1.mesh" scale="1" /> |
---|
| 246 | <Model position="0,0,-1000" mesh="JumpEnemy2.mesh" scale="1" /> |
---|
| 247 | <Model position="0,0,-1000" mesh="JumpEnemy3.mesh" scale="1" /> |
---|
| 248 | <Model position="0,0,-1000" mesh="JumpEnemy4.mesh" scale="1" /> |
---|
| 249 | <Model position="0,0,-1000" mesh="JumpSpring.mesh" scale="1" /> |
---|
| 250 | <Model position="0,0,-1000" mesh="JumpRocket.mesh" scale="1" /> |
---|
[10260] | 251 | <Model position="0,0,-1000" mesh="JumpPropeller.mesh" scale="1" /> |
---|
| 252 | <Model position="0,0,-1000" mesh="JumpBoots.mesh" scale="1" /> |
---|
| 253 | <Model position="0,0,-1000" mesh="JumpShield.mesh" scale="1" /> |
---|
[10078] | 254 | </attached> |
---|
| 255 | </JumpCenterpoint> |
---|
| 256 | </attached> |
---|
| 257 | </MovableEntity> |
---|
[10259] | 258 | |
---|
| 259 | <EventDispatcher> |
---|
| 260 | <targets> |
---|
| 261 | <EventTarget target=scoreeffect_right /> |
---|
| 262 | <EventTarget target=scoreeffect_center /> |
---|
| 263 | </targets> |
---|
| 264 | <events> |
---|
| 265 | <spawn> |
---|
| 266 | <EventFilter> |
---|
| 267 | <names> |
---|
| 268 | <EventName name=right /> |
---|
| 269 | </names> |
---|
| 270 | <EventListener event=jumpcenter /> |
---|
| 271 | </EventFilter> |
---|
| 272 | </spawn> |
---|
| 273 | </events> |
---|
| 274 | </EventDispatcher> |
---|
| 275 | <EventDispatcher> |
---|
| 276 | <targets> |
---|
| 277 | <EventTarget target=scoreeffect_left /> |
---|
| 278 | <EventTarget target=scoreeffect_center /> |
---|
| 279 | </targets> |
---|
| 280 | <events> |
---|
| 281 | <spawn> |
---|
| 282 | <EventFilter> |
---|
| 283 | <names> |
---|
| 284 | <EventName name=left /> |
---|
| 285 | </names> |
---|
| 286 | <EventListener event=jumpcenter /> |
---|
| 287 | </EventFilter> |
---|
| 288 | </spawn> |
---|
| 289 | </events> |
---|
| 290 | </EventDispatcher> |
---|
| 291 | |
---|
[10078] | 292 | </Scene> |
---|
| 293 | </Level> |
---|