Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/newlevel2012/data/levels/towerDefense.oxw @ 9149

Last change on this file since 9149 was 9149, checked in by mentzerf, 12 years ago
  • Removed Tower Model
File size: 4.0 KB
Line 
1<!-- TODO: Update the level's image-->
2
3<!-- See TowerDefenseReadme.txt for Information on this file -->
4
5<LevelInfo
6 name = "Tower Defense"
7 description = "Defend your Spacestation from incoming waves."
8 tags = "gametype"
9 screenshot = "emptylevel.png"
10/>
11
12<?lua
13  include("stats.oxo")
14  include("HUDTemplates3.oxo")
15  include("templates/lodInformation.oxt")
16?>
17
18<?lua
19  include("templates/spaceshipAssff.oxt")
20  include("templates/spaceshipPirate.oxt")
21?>
22
23<!-- Specify the position of the camera -->
24<Template name=centerpointmarkcamera defaults=0>
25  <Pawn>
26    <camerapositions>
27      <CameraPosition position="0,0,20"/>
28    </camerapositions>
29  </Pawn>
30</Template>
31
32<!-- Loads a mesh to mark the center-->
33<Template name=centerpointmark>
34  <Pawn camerapositiontemplate=centerpointmarkcamera>
35    <attached>
36      <Model position="0,0,0" mesh="cylinder.mesh" scale3D="1,1,1" /> <!-- the camera is attached to this -->
37    </attached>
38  </Pawn>
39</Template>
40
41
42<!-- Template for a tower -->
43<Template name=towertemplate>
44  <Tower>
45    <attached>
46      <Model position="0,0,0" scale=0.25 mesh="Tower_ME.mesh" />
47    </attached>
48  </Tower>
49</Template>
50
51<Level gametype = "TowerDefense">
52  <templates>
53    <Template link=lodtemplate_default />
54  </templates>
55 
56  <?lua include("includes/notifications.oxi") ?>
57
58  <Scene
59    ambientlight = "0.8, 0.8, 0.8"
60    skybox       = "Orxonox/Starbox"
61  >
62 
63        <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"/>
64   
65        <!-- Spawns the camera, attached to a crate -->
66        <SpawnPoint team=0 position="0,0,0" spawnclass=Pawn pawndesign=centerpointmark />
67        <!--TeamSpawnPoint team=1 position="-7,7,4" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /-->
68       
69        <!--SpawnPoint team=1 position="0,0,10" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff  /-->
70        <!--SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /-->
71       
72        <!--SpaceShip position="-10,0,20" lookat="0,0,0" scale=0.3>
73      <templates>
74        <Template link=spaceshipassff />
75      </templates>
76      <controller>
77        <WaypointController accuracy=3>
78          <waypoints>
79            <Model mesh="cube.mesh" scale=0.2 position="-8,-8,3" />
80            <Model mesh="cube.mesh" scale=0.2 position="8,8,3" />
81            <Model mesh="cube.mesh" scale=0.2 position="8,-8,3" />
82            <Model mesh="cube.mesh" scale=0.2 position="-8,8,3" />
83          </waypoints>
84        </WaypointController>
85      </controller>
86    </SpaceShip-->
87   
88
89        <!-- PlayField -->
90        <TowerDefenseCenterpoint
91        name=towerdefensecenter
92        width=16
93        height=16
94        towerTemplate=towertemplate
95        position="0,0,0"
96        direction="0,0,0"
97        collistionType=static
98        mass=100000>
99                 
100                 <attached>
101                        <Model position="-0.5,-0.5,0" mesh="Playfield_ME.mesh" scale=0.8 />
102            <!--Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /--> <!-- Only temporary needed to help align the collisionshape -->
103                        <!-- This was used to mark the playfield, let's let it be here for now -->
104                        <!--Model position="-8,8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
105                        <!--Model position="-8,-8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
106                        <!--Model position="8,-8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
107                        <!--Model position="8,8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
108        </attached>
109        <collisionShapes> <!-- The collisionshape forbids other worldentities that have a collisionShape to fly through it.
110       
111                               TODO: Find correct size for the collisionshape; since a collisionShape is invisible
112                               I added the crate wich currently has the same dimensions as the collisionshape.
113                               You have to adjust the crate's scale3D as well as the collisionshape's halfExtens to
114                               find the proper shape. -->
115           <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
116        </collisionShapes>
117    </TowerDefenseCenterpoint>
118
119  </Scene>
120</Level>
121
Note: See TracBrowser for help on using the repository browser.