| [8246] | 1 | <LevelInfo | 
|---|
 | 2 |  name = "Tetris" | 
|---|
 | 3 |  description = "Tetris in space!" | 
|---|
| [8931] | 4 |  tags = "minigame" | 
|---|
| [8916] | 5 |  screenshot = "tetris.png" | 
|---|
| [8246] | 6 | /> | 
|---|
 | 7 |  | 
|---|
 | 8 | <?lua | 
|---|
 | 9 |   include("HUDTemplates3.oxo") | 
|---|
 | 10 |   include("stats.oxo") | 
|---|
 | 11 |   include("templates/lodInformation.oxt") | 
|---|
 | 12 | ?> | 
|---|
 | 13 |  | 
|---|
 | 14 | <Template name=tetrisstonecameras defaults=0> | 
|---|
 | 15 |   <TetrisStone> | 
|---|
 | 16 |     <camerapositions> | 
|---|
 | 17 |       <CameraPosition position="55,75,200" absolute=true /> | 
|---|
 | 18 |       <CameraPosition position="0,50,160" drag=true mouselook=true /> | 
|---|
 | 19 |       <CameraPosition position="0,50,0" pitch=-90 drag=true mouselook=true /> | 
|---|
 | 20 |     </camerapositions> | 
|---|
 | 21 |   </TetrisStone> | 
|---|
 | 22 | </Template> | 
|---|
 | 23 |  | 
|---|
 | 24 | <Template name=tetrisstone> | 
|---|
 | 25 |   <TetrisStone camerapositiontemplate=tetrisstonecameras> | 
|---|
 | 26 |     <attached> | 
|---|
 | 27 |       <Model position="0,0,0" mesh="crate.mesh" scale=1 /> | 
|---|
 | 28 |     </attached> | 
|---|
 | 29 |   </TetrisStone> | 
|---|
 | 30 | </Template> | 
|---|
 | 31 |  | 
|---|
 | 32 | <Level | 
|---|
| [8958] | 33 |  gametype = "Tetris" | 
|---|
| [8246] | 34 | > | 
|---|
 | 35 |   <templates> | 
|---|
 | 36 |     <Template link=lodtemplate_default /> | 
|---|
 | 37 |   </templates> | 
|---|
| [8637] | 38 |   <?lua include("includes/notifications.oxi") ?> | 
|---|
| [8246] | 39 |  | 
|---|
 | 40 |   <Scene | 
|---|
 | 41 |    ambientlight = "0.5, 0.5, 0.5" | 
|---|
 | 42 |    skybox       = "Orxonox/skypanoramagen1" | 
|---|
 | 43 |   > | 
|---|
 | 44 |     <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" /> | 
|---|
 | 45 |  | 
|---|
 | 46 |     <?lua | 
|---|
 | 47 |       for i = 1, 10, 1 do | 
|---|
 | 48 |     ?> | 
|---|
 | 49 |       <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" /> | 
|---|
 | 50 |     <?lua end ?> | 
|---|
 | 51 |  | 
|---|
| [8537] | 52 |     <TetrisCenterpoint name=tetriscenter width=11 height=15 stoneSize=10 stoneTemplate=tetrisstone stoneSpeed=10 position="-55,-75,0"> | 
|---|
| [8246] | 53 |         <attached> | 
|---|
 | 54 |             <Model position="55,-1,0" mesh="cube.mesh" scale3D="57,1,11" /> | 
|---|
 | 55 |             <Model position="-1,76,0" mesh="cube.mesh" scale3D="1,76,1" /> | 
|---|
 | 56 |             <Model position="111,76,0" mesh="cube.mesh" scale3D="1,76,1" /> | 
|---|
 | 57 |         </attached> | 
|---|
 | 58 |     </TetrisCenterpoint> | 
|---|
 | 59 |  | 
|---|
 | 60 |   </Scene> | 
|---|
 | 61 | </Level> | 
|---|