Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentation/data/levels/tetris.oxw @ 8907

Last change on this file since 8907 was 8643, checked in by landauf, 13 years ago

set svn:eol-style to native, removed svn:executable property. no code changes.

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1<LevelInfo
2 name = "Tetris"
3 description = "Tetris in space!"
4 tags = ""
5/>
6
7<?lua
8  include("HUDTemplates3.oxo")
9  include("stats.oxo")
10  include("templates/lodInformation.oxt")
11?>
12
13<Template name=tetrisstonecameras defaults=0>
14  <TetrisStone>
15    <camerapositions>
16      <CameraPosition position="55,75,200" absolute=true />
17      <CameraPosition position="0,50,160" drag=true mouselook=true />
18      <CameraPosition position="0,50,0" pitch=-90 drag=true mouselook=true />
19    </camerapositions>
20  </TetrisStone>
21</Template>
22
23<Template name=tetrisstone>
24  <TetrisStone camerapositiontemplate=tetrisstonecameras>
25    <attached>
26      <Model position="0,0,0" mesh="crate.mesh" scale=1 />
27    </attached>
28  </TetrisStone>
29</Template>
30
31<Level
32 name         = "Presentation"
33 description  = "A simple testlevel"
34 gametype     = "Tetris"
35>
36  <templates>
37    <Template link=lodtemplate_default />
38  </templates>
39  <?lua include("includes/notifications.oxi") ?>
40
41  <Scene
42   ambientlight = "0.5, 0.5, 0.5"
43   skybox       = "Orxonox/skypanoramagen1"
44  >
45    <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" />
46
47    <?lua
48      for i = 1, 10, 1 do
49    ?>
50      <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" />
51    <?lua end ?>
52
53    <TetrisCenterpoint name=tetriscenter width=11 height=15 stoneSize=10 stoneTemplate=tetrisstone stoneSpeed=10 position="-55,-75,0">
54        <attached>
55            <Model position="55,-1,0" mesh="cube.mesh" scale3D="57,1,11" />
56            <Model position="-1,76,0" mesh="cube.mesh" scale3D="1,76,1" />
57            <Model position="111,76,0" mesh="cube.mesh" scale3D="1,76,1" />
58        </attached>
59    </TetrisCenterpoint>
60
61  </Scene>
62</Level>
Note: See TracBrowser for help on using the repository browser.