[12256] | 1 | <! ------ Background & Layout for the Level------ /> |
---|
| 2 | |
---|
[12215] | 3 | <LevelInfo |
---|
| 4 | name = "Orxoblox" |
---|
| 5 | description = "A clone version of the BBTAN game." |
---|
| 6 | tags = "minigame" |
---|
| 7 | screenshot = "emptylevel.png" |
---|
| 8 | /> |
---|
| 9 | |
---|
| 10 | <?lua |
---|
[12256] | 11 | include("HUDTemplates3.oxo") |
---|
[12215] | 12 | include("stats.oxo") |
---|
[12256] | 13 | include("pongHUD.oxo") |
---|
[12215] | 14 | include("templates/lodInformation.oxt") |
---|
| 15 | ?> |
---|
| 16 | |
---|
[12256] | 17 | <Template name=pongbatcameras defaults=0> |
---|
| 18 | <PongBat> |
---|
| 19 | <camerapositions> |
---|
| 20 | <CameraPosition position="0,150,0" pitch=-90 absolute=true /> |
---|
| 21 | <CameraPosition position="0,50,160" drag=true mouselook=true /> |
---|
| 22 | <CameraPosition position="0,40,125" drag=true mouselook=true /> |
---|
| 23 | <CameraPosition position="0,30, 90" drag=true mouselook=true /> |
---|
| 24 | </camerapositions> |
---|
| 25 | </PongBat> |
---|
| 26 | </Template> |
---|
[12215] | 27 | |
---|
[12256] | 28 | <Template name=pongbat> |
---|
| 29 | <PongBat camerapositiontemplate=pongbatcameras> |
---|
| 30 | <attached> |
---|
| 31 | <Model position="0,0,3" mesh="cube.mesh" scale3D="14,2,2" /> |
---|
| 32 | <!--Model roll=180 mesh="pongbat.mesh" scale=0.045 /--> |
---|
| 33 | </attached> |
---|
| 34 | </PongBat> |
---|
| 35 | </Template> |
---|
| 36 | |
---|
| 37 | <Template name=pongball> |
---|
| 38 | <PongBall |
---|
| 39 | defScoreSound = "sounds/PlayerWinScore_cut.ogg" |
---|
| 40 | defBatSound = "sounds/Button.ogg" |
---|
| 41 | defBoundarySound = "sounds/Button.ogg"> |
---|
| 42 | <attached> |
---|
| 43 | <Model mesh="sphere.mesh" scale=2 /> |
---|
| 44 | <!--Billboard scale=0.2 colour="1.0, 1.0, 0.5" material="Examples/Flare" /--> |
---|
| 45 | <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" /> |
---|
| 46 | <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" /> |
---|
| 47 | <ParticleSpawner name=hiteffect position="0,0,0" source="Orxonox/sparks2" lifetime=0.01 autostart=0 mainstate=spawn /> |
---|
| 48 | </attached> |
---|
| 49 | <eventlisteners> |
---|
| 50 | <EventTarget target=hiteffect /> |
---|
| 51 | </eventlisteners> |
---|
| 52 | </PongBall> |
---|
| 53 | </Template> |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | |
---|
[12215] | 57 | <Level> |
---|
[12256] | 58 | plugins = "orxoblox" |
---|
| 59 | gametype = "Orxoblox" |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | <templates> |
---|
[12215] | 63 | <Template link=lodtemplate_default /> |
---|
| 64 | </templates> |
---|
| 65 | <?lua include("includes/notifications.oxi") ?> |
---|
| 66 | |
---|
[12256] | 67 | <WorldAmbientSound source="Ganymede.ogg" looping="true" playOnLoad="true"/> |
---|
| 68 | <PongBot /> |
---|
| 69 | |
---|
[12215] | 70 | <Scene |
---|
[12256] | 71 | ambientlight = "0.5, 0.5, 0.5" |
---|
| 72 | skybox = "Orxonox/skyBoxBasic" |
---|
[12215] | 73 | > |
---|
[12256] | 74 | <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" /> |
---|
[12215] | 75 | |
---|
[12256] | 76 | <SpawnPoint position="991.729, -110.11, 435.404" orientation="0.534038, 0.563456, 0.212168, 0.593553" /> |
---|
[12215] | 77 | |
---|
[12256] | 78 | <MovableEntity rotationrate=5 rotationaxis="0,0,1"> |
---|
| 79 | <attached> |
---|
| 80 | <PongCenterpoint name=pongcenter dimension="200,120" balltemplate=pongball battemplate=pongbat ballspeed=200 ballaccfactor=1.0 batspeed=130 batlength=0.25> |
---|
| 81 | <attached> |
---|
| 82 | <Model position="0,0,60" mesh="cube.mesh" scale3D="105,1,1" /> |
---|
| 83 | <Model position="0,0,-60" mesh="cube.mesh" scale3D="105,1,1" /> |
---|
[12215] | 84 | |
---|
[12256] | 85 | <ParticleSpawner name=scoreeffect_right position="120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> |
---|
| 86 | <ParticleSpawner name=scoreeffect_right position="120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 /> |
---|
| 87 | <ParticleSpawner name=scoreeffect_right position="120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> |
---|
| 88 | <ParticleSpawner name=scoreeffect_right position="120,0, 0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 /> |
---|
| 89 | <ParticleSpawner name=scoreeffect_right position="120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> |
---|
| 90 | <ParticleSpawner name=scoreeffect_right position="120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 /> |
---|
| 91 | <ParticleSpawner name=scoreeffect_right position="120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> |
---|
[12215] | 92 | |
---|
[12256] | 93 | <ParticleSpawner name=scoreeffect_left position="-120,0, 45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> |
---|
| 94 | <ParticleSpawner name=scoreeffect_left position="-120,0, 30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 /> |
---|
| 95 | <ParticleSpawner name=scoreeffect_left position="-120,0, 15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> |
---|
| 96 | <ParticleSpawner name=scoreeffect_left position="-120,0, 0" source="Orxonox/BigExplosion1part2" lifetime=0.1 autostart=0 /> |
---|
| 97 | <ParticleSpawner name=scoreeffect_left position="-120,0,-15" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> |
---|
| 98 | <ParticleSpawner name=scoreeffect_left position="-120,0,-30" source="Orxonox/BigExplosion1part2" lifetime=3.0 autostart=0 /> |
---|
| 99 | <ParticleSpawner name=scoreeffect_left position="-120,0,-45" source="Orxonox/sparks2" lifetime=0.1 autostart=0 /> |
---|
| 100 | |
---|
| 101 | <!-- TODO: Create a Pong Score Sound and include it here. |
---|
| 102 | This WorldSound works, but doesn't make sense, since it is played together with ambient/moodDependedDirectory/Ganymede.ogg --> |
---|
| 103 | <!--WorldSound name="scoreSound" position="0,0,0" source="sounds/PongScore_cut.ogg" > |
---|
| 104 | <events> |
---|
| 105 | <play> |
---|
| 106 | <EventListener event=pongcenter /> |
---|
| 107 | </play> |
---|
| 108 | </events> |
---|
| 109 | </WorldSound--> |
---|
| 110 | |
---|
| 111 | <?lua |
---|
| 112 | for i = 1, 15, 1 do |
---|
| 113 | ?> |
---|
| 114 | <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) ?> /> |
---|
| 115 | <?lua end ?> |
---|
| 116 | |
---|
| 117 | </attached> |
---|
| 118 | </PongCenterpoint> |
---|
| 119 | </attached> |
---|
| 120 | </MovableEntity> |
---|
| 121 | |
---|
| 122 | <EventDispatcher> |
---|
| 123 | <targets> |
---|
| 124 | <EventTarget target=scoreeffect_right /> |
---|
| 125 | <EventTarget target=scoreeffect_center /> |
---|
| 126 | </targets> |
---|
| 127 | <events> |
---|
| 128 | <spawn> |
---|
| 129 | <EventFilter> |
---|
| 130 | <names> |
---|
| 131 | <EventName name=right /> |
---|
| 132 | </names> |
---|
| 133 | <EventListener event=pongcenter /> |
---|
| 134 | </EventFilter> |
---|
| 135 | </spawn> |
---|
| 136 | </events> |
---|
| 137 | </EventDispatcher> |
---|
| 138 | <EventDispatcher> |
---|
| 139 | <targets> |
---|
| 140 | <EventTarget target=scoreeffect_left /> |
---|
| 141 | <EventTarget target=scoreeffect_center /> |
---|
| 142 | </targets> |
---|
| 143 | <events> |
---|
| 144 | <spawn> |
---|
| 145 | <EventFilter> |
---|
| 146 | <names> |
---|
| 147 | <EventName name=left /> |
---|
| 148 | </names> |
---|
| 149 | <EventListener event=pongcenter /> |
---|
| 150 | </EventFilter> |
---|
| 151 | </spawn> |
---|
| 152 | </events> |
---|
| 153 | </EventDispatcher> |
---|
| 154 | |
---|
| 155 | <?lua |
---|
| 156 | dofile("includes/CuboidSpaceStation.lua") |
---|
| 157 | ?> |
---|
| 158 | |
---|
| 159 | <StaticEntity pitch=15> |
---|
| 160 | <attached> |
---|
| 161 | <MovableEntity rotationrate="-4.15786" rotationaxis="0,0,1"> |
---|
| 162 | <attached> |
---|
| 163 | <StaticEntity position="-2500,0,0" yaw=90 pitch=90> |
---|
| 164 | <attached> |
---|
| 165 | <?lua |
---|
| 166 | createSpaceStationPar(0,2,1,2,1,4,1,50) |
---|
| 167 | ?> |
---|
| 168 | </attached> |
---|
| 169 | </StaticEntity> |
---|
| 170 | </attached> |
---|
| 171 | </MovableEntity> |
---|
| 172 | </attached> |
---|
| 173 | </StaticEntity> |
---|
| 174 | |
---|
| 175 | <StaticEntity position="0,1200,-200" yaw=50 pitch=60 roll=45> |
---|
| 176 | <attached> |
---|
| 177 | <Model scale=10 mesh="Carrier.mesh" /> |
---|
| 178 | <Model position="0,30,20" scale=10 mesh="pirate.mesh" roll="180" /> |
---|
| 179 | <Model position="-80,-30,20" scale=10 mesh="pirate.mesh" roll="180" /> |
---|
| 180 | </attached> |
---|
| 181 | </StaticEntity> |
---|
| 182 | |
---|
| 183 | <StaticEntity pitch=70> |
---|
| 184 | <attached> |
---|
| 185 | <MovableEntity rotationaxis="0,0,1" rotationrate=8.5974> |
---|
| 186 | <attached> |
---|
| 187 | <StaticEntity yaw=-90 pitch=0 roll=90 position="800,0,0"> |
---|
| 188 | <attached> |
---|
| 189 | <Model position="0,0,0" scale=10 mesh="satellite.mesh" /> |
---|
| 190 | <MovableEntity position="-4,0,20" velocity="0,0,0" rotationaxis="0,0,1" rotationrate=50> |
---|
| 191 | <attached> |
---|
| 192 | <Model position="0,0,0" scale=10 mesh="satellitedish.mesh"/> |
---|
| 193 | </attached> |
---|
| 194 | </MovableEntity> |
---|
| 195 | <ParticleEmitter pitch=-135 roll=30 position="-14, 3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> |
---|
| 196 | <ParticleEmitter pitch=135 roll=30 position="-14, 3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> |
---|
| 197 | <ParticleEmitter pitch=-45 roll=30 position="-14,-3.5,-2.5" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> |
---|
| 198 | <ParticleEmitter pitch=45 roll=30 position="-14,-3.5,-9" source="Orxonox/thruster3" lifetime=2.0 loop=1 startdelay=3.0 /> |
---|
| 199 | </attached> |
---|
| 200 | </StaticEntity> |
---|
| 201 | </attached> |
---|
| 202 | </MovableEntity> |
---|
| 203 | </attached> |
---|
| 204 | </StaticEntity> |
---|
| 205 | |
---|
| 206 | <?lua |
---|
| 207 | for i = 1, 10, 1 do |
---|
| 208 | ?> |
---|
| 209 | <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) ?>"> |
---|
| 210 | <attached> |
---|
| 211 | <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
| 212 | </attached> |
---|
| 213 | </MovableEntity> |
---|
| 214 | <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) ?>"> |
---|
| 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 | |
---|
| 220 | <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) ?>"> |
---|
| 221 | <attached> |
---|
| 222 | <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
| 223 | </attached> |
---|
| 224 | </MovableEntity> |
---|
| 225 | <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) ?>"> |
---|
| 226 | <attached> |
---|
| 227 | <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
| 228 | </attached> |
---|
| 229 | </MovableEntity> |
---|
| 230 | |
---|
| 231 | <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) ?>"> |
---|
| 232 | <attached> |
---|
| 233 | <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
| 234 | </attached> |
---|
| 235 | </MovableEntity> |
---|
| 236 | <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) ?>"> |
---|
| 237 | <attached> |
---|
| 238 | <Model scale="<?lua print(math.random() * 10 + 5) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false /> |
---|
| 239 | </attached> |
---|
| 240 | </MovableEntity> |
---|
| 241 | <?lua end ?> |
---|
[12215] | 242 | |
---|
| 243 | </Scene> |
---|
| 244 | </Level> |
---|
| 245 | |
---|