[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> |
---|
[12256] | 127 | |
---|
| 128 | |
---|
| 129 | |
---|
[9348] | 130 | |
---|
| 131 | |
---|
| 132 | |
---|
[8246] | 133 | </Scene> |
---|
| 134 | </Level> |
---|