| [8246] | 1 | <LevelInfo | 
|---|
 | 2 |  name = "Tetris" | 
|---|
 | 3 |  description = "Tetris in space!" | 
|---|
| [9016] | 4 |  tags = "minigame" | 
|---|
 | 5 |  screenshot = "tetris.png" | 
|---|
| [8246] | 6 | /> | 
|---|
 | 7 |  | 
|---|
 | 8 | <?lua | 
|---|
 | 9 |   include("HUDTemplates3.oxo") | 
|---|
 | 10 |   include("stats.oxo") | 
|---|
| [9348] | 11 |   include("tetrisHUD.oxo") | 
|---|
| [8246] | 12 |   include("templates/lodInformation.oxt") | 
|---|
| [9348] | 13 |   include("templates/spaceshipAssff.oxt") | 
|---|
 | 14 |   include("templates/spaceshipGhost.oxt") | 
|---|
 | 15 |   include("templates/spaceshipPirate.oxt") | 
|---|
 | 16 |   include("templates/spaceshipSwallow.oxt") | 
|---|
 | 17 |   include("templates/spaceshipTransporter.oxt") | 
|---|
 | 18 |   include("templates/spaceshipH2.oxt") | 
|---|
| [8246] | 19 | ?> | 
|---|
 | 20 |  | 
|---|
 | 21 | <Template name=tetrisstonecameras defaults=0> | 
|---|
 | 22 |   <TetrisStone> | 
|---|
 | 23 |     <camerapositions> | 
|---|
 | 24 |       <CameraPosition position="55,75,200" absolute=true /> | 
|---|
 | 25 |     </camerapositions> | 
|---|
 | 26 |   </TetrisStone> | 
|---|
 | 27 | </Template> | 
|---|
 | 28 |  | 
|---|
 | 29 | <Template name=tetrisstone> | 
|---|
 | 30 |   <TetrisStone camerapositiontemplate=tetrisstonecameras> | 
|---|
 | 31 |     <attached> | 
|---|
| [9831] | 32 |       <Model position="0,0,0" mesh="CuboidBody.mesh" scale=4.5 /> | 
|---|
| [9832] | 33 |       <Model position="0,0,0" mesh="cube_orange.mesh" scale=4.3 /> | 
|---|
| [8246] | 34 |     </attached> | 
|---|
 | 35 |   </TetrisStone> | 
|---|
 | 36 | </Template> | 
|---|
 | 37 |  | 
|---|
| [9348] | 38 |  | 
|---|
 | 39 |  | 
|---|
 | 40 | <Template name=tetrisbrickcameras defaults=0> | 
|---|
 | 41 |   <TetrisBrick> | 
|---|
 | 42 |     <camerapositions> | 
|---|
 | 43 |       <CameraPosition position="55,75,200" absolute=true /> | 
|---|
 | 44 |       <!--CameraPosition position="0,50,160" drag=true mouselook=true /> | 
|---|
 | 45 |       <CameraPosition position="0,50,0" pitch=-90 drag=true mouselook=true /--> | 
|---|
 | 46 |     </camerapositions> | 
|---|
 | 47 |   </TetrisBrick> | 
|---|
 | 48 | </Template> | 
|---|
 | 49 |  | 
|---|
 | 50 | <Template name=tetrisbrick> | 
|---|
 | 51 |   <TetrisBrick camerapositiontemplate=tetrisbrickcameras> | 
|---|
 | 52 |   </TetrisBrick> | 
|---|
 | 53 | </Template> | 
|---|
 | 54 |  | 
|---|
 | 55 |  | 
|---|
| [8246] | 56 | <Level | 
|---|
| [10624] | 57 |  plugins = "tetris" | 
|---|
| [9016] | 58 |  gametype = "Tetris" | 
|---|
| [8246] | 59 | > | 
|---|
 | 60 |   <templates> | 
|---|
 | 61 |     <Template link=lodtemplate_default /> | 
|---|
 | 62 |   </templates> | 
|---|
| [8637] | 63 |   <?lua include("includes/notifications.oxi") ?> | 
|---|
| [8246] | 64 |  | 
|---|
 | 65 |   <Scene | 
|---|
 | 66 |    ambientlight = "0.5, 0.5, 0.5" | 
|---|
| [9348] | 67 |    skybox       = "Orxonox/skyBoxBasic" | 
|---|
| [8246] | 68 |   > | 
|---|
| [9348] | 69 | <!--luke_grey_-_hypermode.ogg allgorythm-lift_up.ogg Fight1.ogg --> | 
|---|
 | 70 |     <WorldAmbientSound | 
|---|
 | 71 |       source="Ganymede.ogg" | 
|---|
 | 72 |       looping="true" | 
|---|
 | 73 |       playOnLoad="true" | 
|---|
 | 74 |     /> | 
|---|
 | 75 |  | 
|---|
| [8246] | 76 |     <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" /> | 
|---|
 | 77 |  | 
|---|
| [9348] | 78 |  | 
|---|
| [8246] | 79 |     <?lua | 
|---|
 | 80 |       for i = 1, 10, 1 do | 
|---|
 | 81 |     ?> | 
|---|
 | 82 |       <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" /> | 
|---|
 | 83 |     <?lua end ?> | 
|---|
 | 84 |  | 
|---|
| [9348] | 85 |     <TetrisCenterpoint name=tetriscenter width=11 height=15 stoneSize=10 stoneTemplate=tetrisstone brickTemplate=tetrisbrick stoneSpeed=10 position="-55,-75,0"> | 
|---|
| [8246] | 86 |         <attached> | 
|---|
 | 87 |             <Model position="55,-1,0" mesh="cube.mesh" scale3D="57,1,11" /> | 
|---|
 | 88 |             <Model position="-1,76,0" mesh="cube.mesh" scale3D="1,76,1" /> | 
|---|
 | 89 |             <Model position="111,76,0" mesh="cube.mesh" scale3D="1,76,1" /> | 
|---|
 | 90 |         </attached> | 
|---|
| [9348] | 91 |         <!--collisionShapes> | 
|---|
 | 92 |             <BoxCollisionShape position="55,-1,0"  halfExtents="57,1,11" /> | 
|---|
 | 93 |             <BoxCollisionShape position="-1,76,0"  halfExtents="1,76,1" /> | 
|---|
 | 94 |             <BoxCollisionShape position="111,76,0" halfExtents="1,76,1" /> | 
|---|
 | 95 |         </collisionShapes--> | 
|---|
| [8246] | 96 |     </TetrisCenterpoint> | 
|---|
 | 97 |  | 
|---|
| [9348] | 98 | <!-- ------------ insert eye candy here  ---------------- --> | 
|---|
 | 99 |  | 
|---|
 | 100 | <!-- asteroidBelt(centerX, centerY, centerZ, yaw, pitch, segments, minSize, maxSize, radius0, radius1, count, fog) --> | 
|---|
 | 101 | <!-- DONT DARE TO TURN THE FOG ON, whithout finding a better belt position --> | 
|---|
 | 102 |     <?lua | 
|---|
 | 103 |         dofile("includes/asteroidField.lua") | 
|---|
 | 104 |         asteroidBelt(10000, 0, 0, -40, -90, 70, 100, 200, 24000, 20000, 500, 0) | 
|---|
 | 105 |  | 
|---|
 | 106 |     ?> | 
|---|
 | 107 | <!-- -------- 4 spaceships rotating around the tetris field --------- --> | 
|---|
 | 108 |     <SpaceShip position="1000,-75,1" lookat="0,0,0"> | 
|---|
 | 109 |       <templates> | 
|---|
 | 110 |         <Template link=spaceshipswallow /> | 
|---|
 | 111 |       </templates> | 
|---|
 | 112 |       <controller> | 
|---|
 | 113 |         <WaypointController team=10 accuracy=200> | 
|---|
 | 114 |           <waypoints> | 
|---|
 | 115 |             <Model mesh="cube.mesh" scale=0 position="1000,-75,0" /> | 
|---|
 | 116 |             <Model mesh="cube.mesh" scale=0 position="650,-75,650" /> | 
|---|
 | 117 |             <Model mesh="cube.mesh" scale=0 position="-55,-75,1000" /> | 
|---|
 | 118 |             <Model mesh="cube.mesh" scale=0 position="-700,-75,650" /> | 
|---|
 | 119 |             <Model mesh="cube.mesh" scale=0 position="-1000,-75,0" /> | 
|---|
 | 120 |             <Model mesh="cube.mesh" scale=0 position="-700,-75,-650" /> | 
|---|
 | 121 |             <Model mesh="cube.mesh" scale=0 position="-55,-75,-1000" /> | 
|---|
 | 122 |             <Model mesh="cube.mesh" scale=0 position="650,-75,-650" /> | 
|---|
 | 123 |           </waypoints> | 
|---|
 | 124 |         </WaypointController> | 
|---|
 | 125 |       </controller> | 
|---|
 | 126 |     </SpaceShip> | 
|---|
 | 127 |      | 
|---|
 | 128 |    <SpaceShip position="-500,-500,-400" lookat="0,0,0"> | 
|---|
 | 129 |       <templates> | 
|---|
 | 130 |         <Template link=spaceshippirate /> | 
|---|
 | 131 |       </templates> | 
|---|
 | 132 |       <controller> | 
|---|
 | 133 |         <WaypointController team=10> | 
|---|
 | 134 |           <waypoints> | 
|---|
 | 135 |             <Model mesh="cube.mesh" scale=0 position="-1000,-200,0" /> | 
|---|
 | 136 |             <Model mesh="cube.mesh" scale=0 position="-700,-150,650" /> | 
|---|
 | 137 |             <Model mesh="cube.mesh" scale=0 position="-55,-75,1000" /> | 
|---|
 | 138 |             <Model mesh="cube.mesh" scale=0 position="650,100,650" />           | 
|---|
 | 139 |             <Model mesh="cube.mesh" scale=0 position="1000,150,0" /> | 
|---|
 | 140 |             <Model mesh="cube.mesh" scale=0 position="650,100,-650" /> | 
|---|
 | 141 |             <Model mesh="cube.mesh" scale=0 position="-55,0,-1000" /> | 
|---|
 | 142 |             <Model mesh="cube.mesh" scale=0 position="-700,-100,-650" /> | 
|---|
 | 143 |           </waypoints> | 
|---|
 | 144 |         </WaypointController> | 
|---|
 | 145 |       </controller> | 
|---|
 | 146 |     </SpaceShip> | 
|---|
 | 147 |      | 
|---|
 | 148 |        <SpaceShip position="-700,200,651" lookat="1,0,0"> | 
|---|
 | 149 |       <templates> | 
|---|
 | 150 |         <Template link=spaceshipghost /> | 
|---|
 | 151 |       </templates> | 
|---|
 | 152 |       <controller> | 
|---|
 | 153 |         <WaypointController team=10 accuracy=300> | 
|---|
 | 154 |           <waypoints> | 
|---|
 | 155 |             <Model mesh="cube.mesh" scale=0 position="-700,200,650" /> | 
|---|
 | 156 |             <Model mesh="cube.mesh" scale=0 position="-55,100,1000" /> | 
|---|
 | 157 |             <Model mesh="cube.mesh" scale=0 position="650,0,650" />           | 
|---|
 | 158 |             <Model mesh="cube.mesh" scale=0 position="1000,-100,0" /> | 
|---|
 | 159 |             <Model mesh="cube.mesh" scale=0 position="650,0,-650" /> | 
|---|
 | 160 |             <Model mesh="cube.mesh" scale=0 position="-55,100,-1000" /> | 
|---|
 | 161 |             <Model mesh="cube.mesh" scale=0 position="-700,200,-650" /> | 
|---|
 | 162 |             <Model mesh="cube.mesh" scale=0 position="-1000,300,0" /> | 
|---|
 | 163 |           </waypoints> | 
|---|
 | 164 |         </WaypointController> | 
|---|
 | 165 |       </controller> | 
|---|
 | 166 |     </SpaceShip> | 
|---|
 | 167 |      | 
|---|
 | 168 |     <SpaceShip position="1000,-75,0" lookat="0,0,0"> | 
|---|
 | 169 |       <templates> | 
|---|
 | 170 |         <Template link=spaceshipHtwo /> | 
|---|
 | 171 |       </templates> | 
|---|
 | 172 |       <controller> | 
|---|
 | 173 |         <WaypointController team=10> | 
|---|
 | 174 |           <waypoints> | 
|---|
 | 175 |             <Model mesh="cube.mesh" scale=0 position="400,240,400" /> | 
|---|
 | 176 |             <Model mesh="cube.mesh" scale=0 position="-55,240,700" /> | 
|---|
 | 177 |             <Model mesh="cube.mesh" scale=0 position="-500,240,400" /> | 
|---|
 | 178 |             <Model mesh="cube.mesh" scale=0 position="-700,240,0" /> | 
|---|
 | 179 |             <Model mesh="cube.mesh" scale=0 position="-500,240,-400" /> | 
|---|
 | 180 |             <Model mesh="cube.mesh" scale=0 position="-55,240,-700" /> | 
|---|
 | 181 |             <Model mesh="cube.mesh" scale=0 position="400,240,-400" /> | 
|---|
 | 182 |             <Model mesh="cube.mesh" scale=0 position="700,240,0" /> | 
|---|
 | 183 |           </waypoints> | 
|---|
 | 184 |         </WaypointController> | 
|---|
 | 185 |       </controller> | 
|---|
 | 186 |     </SpaceShip> | 
|---|
 | 187 |      | 
|---|
 | 188 |      | 
|---|
 | 189 |      | 
|---|
| [8246] | 190 |   </Scene> | 
|---|
 | 191 | </Level> | 
|---|