Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/tetris.oxw @ 9725

Last change on this file since 9725 was 9348, checked in by landauf, 12 years ago

merged branch presentation2012merge back to trunk

  • Property svn:eol-style set to native
File size: 6.8 KB
RevLine 
[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>
[9348]32      <Model position="0,0,0" mesh="crate.mesh" scale=0.9 />
[8246]33    </attached>
34  </TetrisStone>
35</Template>
36
[9348]37
38
39<Template name=tetrisbrickcameras defaults=0>
40  <TetrisBrick>
41    <camerapositions>
42      <CameraPosition position="55,75,200" absolute=true />
43      <!--CameraPosition position="0,50,160" drag=true mouselook=true />
44      <CameraPosition position="0,50,0" pitch=-90 drag=true mouselook=true /-->
45    </camerapositions>
46  </TetrisBrick>
47</Template>
48
49<Template name=tetrisbrick>
50  <TetrisBrick camerapositiontemplate=tetrisbrickcameras>
51  </TetrisBrick>
52</Template>
53
54
[8246]55<Level
[9016]56 gametype = "Tetris"
[8246]57>
58  <templates>
59    <Template link=lodtemplate_default />
60  </templates>
[8637]61  <?lua include("includes/notifications.oxi") ?>
[8246]62
63  <Scene
64   ambientlight = "0.5, 0.5, 0.5"
[9348]65   skybox       = "Orxonox/skyBoxBasic"
[8246]66  >
[9348]67<!--luke_grey_-_hypermode.ogg allgorythm-lift_up.ogg Fight1.ogg -->
68    <WorldAmbientSound
69      source="Ganymede.ogg"
70      looping="true"
71      playOnLoad="true"
72    />
73
[8246]74    <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" />
75
[9348]76
[8246]77    <?lua
78      for i = 1, 10, 1 do
79    ?>
80      <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" />
81    <?lua end ?>
82
[9348]83    <TetrisCenterpoint name=tetriscenter width=11 height=15 stoneSize=10 stoneTemplate=tetrisstone brickTemplate=tetrisbrick stoneSpeed=10 position="-55,-75,0">
[8246]84        <attached>
85            <Model position="55,-1,0" mesh="cube.mesh" scale3D="57,1,11" />
86            <Model position="-1,76,0" mesh="cube.mesh" scale3D="1,76,1" />
87            <Model position="111,76,0" mesh="cube.mesh" scale3D="1,76,1" />
88        </attached>
[9348]89        <!--collisionShapes>
90            <BoxCollisionShape position="55,-1,0"  halfExtents="57,1,11" />
91            <BoxCollisionShape position="-1,76,0"  halfExtents="1,76,1" />
92            <BoxCollisionShape position="111,76,0" halfExtents="1,76,1" />
93        </collisionShapes-->
[8246]94    </TetrisCenterpoint>
95
[9348]96<!-- ------------ insert eye candy here  ---------------- -->
97
98<!-- asteroidBelt(centerX, centerY, centerZ, yaw, pitch, segments, minSize, maxSize, radius0, radius1, count, fog) -->
99<!-- DONT DARE TO TURN THE FOG ON, whithout finding a better belt position -->
100    <?lua
101        dofile("includes/asteroidField.lua")
102        asteroidBelt(10000, 0, 0, -40, -90, 70, 100, 200, 24000, 20000, 500, 0)
103
104    ?>
105<!-- -------- 4 spaceships rotating around the tetris field --------- -->
106    <SpaceShip position="1000,-75,1" lookat="0,0,0">
107      <templates>
108        <Template link=spaceshipswallow />
109      </templates>
110      <controller>
111        <WaypointController team=10 accuracy=200>
112          <waypoints>
113            <Model mesh="cube.mesh" scale=0 position="1000,-75,0" />
114            <Model mesh="cube.mesh" scale=0 position="650,-75,650" />
115            <Model mesh="cube.mesh" scale=0 position="-55,-75,1000" />
116            <Model mesh="cube.mesh" scale=0 position="-700,-75,650" />
117            <Model mesh="cube.mesh" scale=0 position="-1000,-75,0" />
118            <Model mesh="cube.mesh" scale=0 position="-700,-75,-650" />
119            <Model mesh="cube.mesh" scale=0 position="-55,-75,-1000" />
120            <Model mesh="cube.mesh" scale=0 position="650,-75,-650" />
121          </waypoints>
122        </WaypointController>
123      </controller>
124    </SpaceShip>
125   
126   <SpaceShip position="-500,-500,-400" lookat="0,0,0">
127      <templates>
128        <Template link=spaceshippirate />
129      </templates>
130      <controller>
131        <WaypointController team=10>
132          <waypoints>
133            <Model mesh="cube.mesh" scale=0 position="-1000,-200,0" />
134            <Model mesh="cube.mesh" scale=0 position="-700,-150,650" />
135            <Model mesh="cube.mesh" scale=0 position="-55,-75,1000" />
136            <Model mesh="cube.mesh" scale=0 position="650,100,650" />         
137            <Model mesh="cube.mesh" scale=0 position="1000,150,0" />
138            <Model mesh="cube.mesh" scale=0 position="650,100,-650" />
139            <Model mesh="cube.mesh" scale=0 position="-55,0,-1000" />
140            <Model mesh="cube.mesh" scale=0 position="-700,-100,-650" />
141          </waypoints>
142        </WaypointController>
143      </controller>
144    </SpaceShip>
145   
146       <SpaceShip position="-700,200,651" lookat="1,0,0">
147      <templates>
148        <Template link=spaceshipghost />
149      </templates>
150      <controller>
151        <WaypointController team=10 accuracy=300>
152          <waypoints>
153            <Model mesh="cube.mesh" scale=0 position="-700,200,650" />
154            <Model mesh="cube.mesh" scale=0 position="-55,100,1000" />
155            <Model mesh="cube.mesh" scale=0 position="650,0,650" />         
156            <Model mesh="cube.mesh" scale=0 position="1000,-100,0" />
157            <Model mesh="cube.mesh" scale=0 position="650,0,-650" />
158            <Model mesh="cube.mesh" scale=0 position="-55,100,-1000" />
159            <Model mesh="cube.mesh" scale=0 position="-700,200,-650" />
160            <Model mesh="cube.mesh" scale=0 position="-1000,300,0" />
161          </waypoints>
162        </WaypointController>
163      </controller>
164    </SpaceShip>
165   
166    <SpaceShip position="1000,-75,0" lookat="0,0,0">
167      <templates>
168        <Template link=spaceshipHtwo />
169      </templates>
170      <controller>
171        <WaypointController team=10>
172          <waypoints>
173            <Model mesh="cube.mesh" scale=0 position="400,240,400" />
174            <Model mesh="cube.mesh" scale=0 position="-55,240,700" />
175            <Model mesh="cube.mesh" scale=0 position="-500,240,400" />
176            <Model mesh="cube.mesh" scale=0 position="-700,240,0" />
177            <Model mesh="cube.mesh" scale=0 position="-500,240,-400" />
178            <Model mesh="cube.mesh" scale=0 position="-55,240,-700" />
179            <Model mesh="cube.mesh" scale=0 position="400,240,-400" />
180            <Model mesh="cube.mesh" scale=0 position="700,240,0" />
181          </waypoints>
182        </WaypointController>
183      </controller>
184    </SpaceShip>
185   
186   
187   
[8246]188  </Scene>
189</Level>
Note: See TracBrowser for help on using the repository browser.