1 | <LevelInfo |
---|
2 | name = "Tetris" |
---|
3 | description = "Tetris in space!" |
---|
4 | tags = "minigame" |
---|
5 | screenshot = "tetris.png" |
---|
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 | <!--collisionShapes> |
---|
30 | <BoxCollisionShape position="0,0,0" halfExtents="5,5,5" /> |
---|
31 | </collisionShapes--> |
---|
32 | </TetrisStone> |
---|
33 | </Template> |
---|
34 | |
---|
35 | |
---|
36 | |
---|
37 | <Template name=tetrisbrickcameras defaults=0> |
---|
38 | <TetrisBrick> |
---|
39 | <camerapositions> |
---|
40 | <CameraPosition position="55,75,200" absolute=true /> |
---|
41 | <CameraPosition position="0,50,160" drag=true mouselook=true /> |
---|
42 | <CameraPosition position="0,50,0" pitch=-90 drag=true mouselook=true /> |
---|
43 | </camerapositions> |
---|
44 | </TetrisBrick> |
---|
45 | </Template> |
---|
46 | |
---|
47 | <Template name=tetrisbrick> |
---|
48 | <TetrisBrick camerapositiontemplate=tetrisbrickcameras> |
---|
49 | <attached> |
---|
50 | <Model position="0,0,0" mesh="crate.mesh" scale=1 /> |
---|
51 | </attached> |
---|
52 | </TetrisBrick> |
---|
53 | </Template> |
---|
54 | |
---|
55 | |
---|
56 | <Level |
---|
57 | gametype = "Tetris" |
---|
58 | > |
---|
59 | <templates> |
---|
60 | <Template link=lodtemplate_default /> |
---|
61 | </templates> |
---|
62 | <?lua include("includes/notifications.oxi") ?> |
---|
63 | |
---|
64 | <Scene |
---|
65 | ambientlight = "0.5, 0.5, 0.5" |
---|
66 | skybox = "Orxonox/skypanoramagen1" |
---|
67 | > |
---|
68 | <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" /> |
---|
69 | |
---|
70 | <?lua |
---|
71 | for i = 1, 10, 1 do |
---|
72 | ?> |
---|
73 | <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" /> |
---|
74 | <?lua end ?> |
---|
75 | |
---|
76 | <TetrisCenterpoint name=tetriscenter width=11 height=15 stoneSize=10 stoneTemplate=tetrisstone brickTemplate=tetrisbrick stoneSpeed=10 position="-55,-75,0"> |
---|
77 | <attached> |
---|
78 | <Model position="55,-1,0" mesh="cube.mesh" scale3D="57,1,11" /> |
---|
79 | <Model position="-1,76,0" mesh="cube.mesh" scale3D="1,76,1" /> |
---|
80 | <Model position="111,76,0" mesh="cube.mesh" scale3D="1,76,1" /> |
---|
81 | </attached> |
---|
82 | <!--collisionShapes> |
---|
83 | <BoxCollisionShape position="55,-1,0" halfExtents="57,1,11" /> |
---|
84 | <BoxCollisionShape position="-1,76,0" halfExtents="1,76,1" /> |
---|
85 | <BoxCollisionShape position="111,76,0" halfExtents="1,76,1" /> |
---|
86 | </collisionShapes--> |
---|
87 | </TetrisCenterpoint> |
---|
88 | |
---|
89 | </Scene> |
---|
90 | </Level> |
---|