Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/core7/data/levels/towerDefense.oxw @ 10623

Last change on this file since 10623 was 10581, checked in by landauf, 9 years ago

8 modules are now marked as plugins (which means they are only loaded on demand): dodgerace, gametypes (spacerace), invader, jump, mini4dgame, pong, tetris, and towerdefense.

  • Property svn:eol-style set to native
File size: 4.1 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 = "minigame"
9 screenshot = "emptylevel.png"
10/>
11
12<?lua
13  include("stats.oxo")
14  include("HUDTemplates3.oxo")
15  include("towerdefenseHUD.oxo")
16  include("templates/lodInformation.oxt")
17?>
18
19<?lua
20  include("templates/spaceshipAssff.oxt")
21  include("templates/spaceshipPirate.oxt")
22  include("templates/tower.oxt")
23  include("templates/enemytowerdefense.oxt")
24  include("templates/standardTurret.oxt")
25?>
26
27<!-- Specify the position of the camera -->
28<Template name=centerpointmarkcamera defaults=0>
29  <Pawn team=1>
30    <camerapositions>
31      <CameraPosition position="0,0,1500"/>
32    </camerapositions>
33  </Pawn>
34</Template>
35
36<!-- Loads a mesh to mark the center-->
37<Template name=centerpointmark>
38  <Pawn team=1 camerapositiontemplate=centerpointmarkcamera>
39    <attached>
40      <Model position="0,0,0" mesh="cylinder.mesh" scale3D="1,1,1" /> <!-- the camera is attached to this -->
41    </attached>
42  </Pawn>
43</Template>
44
45
46<!-- Template for a tower   EDIT: new towertemplate is included with "templates/tower" -->
47<!--Template name=towertemplate>
48  <Tower>
49    <attached>
50      <Model position="0,0,0" scale=0.25 mesh="Tower_ME.mesh" />
51    </attached>
52  </Tower>
53</Template-->
54
55
56
57
58
59<Level
60  plugins = "towerdefense"
61  gametype = "TowerDefense"
62>
63  <templates>
64    <Template link=lodtemplate_default />
65  </templates>
66
67  <?lua include("includes/notifications.oxi") ?>
68
69  <Scene
70    ambientlight = "0.8, 0.8, 0.8"
71    skybox       = "Orxonox/Starbox"
72  >
73
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
76    <!-- Spawns the camera, attached to a crate -->
77    <SpawnPoint team=1 position="0,0,0" spawnclass=Pawn pawndesign=centerpointmark />
78    <!--TeamSpawnPoint team=1 position="-7,7,4" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /-->
79
80    <!--SpawnPoint team=1 position="0,0,10" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff  /-->
81    <!--SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /-->
82
83
84
85
86    <!--invisible entity to attach towers to, since playfield is static and towers are dynamic-->
87    <StaticEntity team =1 position=0,0,0>
88
89        <attached>
90            <Model position="-50,-50,0" mesh="Playfield_ME.mesh" scale=80 />
91            <!-- Base -->
92            <Model position="500,700,100" mesh="sphere.mesh" scale=80 />
93            <!--Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" /--> <!-- Only temporary needed to help align the collisionshape -->
94            <!-- This was used to mark the playfield, let's let it be here for now -->
95            <!--Model position="-8,8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
96            <!--Model position="-8,-8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
97            <!--Model position="8,-8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
98            <!--Model position="8,8,0" mesh="crate.mesh" scale3D="0.3,0.3,0.3" /-->
99        </attached>
100        <collisionShapes> <!-- The collisionshape forbids other worldentities that have a collisionShape to fly through it.
101
102                               TODO: Find correct size for the collisionshape; since a collisionShape is invisible
103                               I added the crate wich currently has the same dimensions as the collisionshape.
104                               You have to adjust the crate's scale3D as well as the collisionshape's halfExtens to
105                               find the proper shape. -->
106           <BoxCollisionShape position="0,0,0" halfExtents="400,400,100" />
107        </collisionShapes>
108    </StaticEntity>
109
110
111
112
113    <!-- PlayField -->
114    <TowerDefenseCenterpoint
115    name=towerdefensecenter
116    width=16
117    height=16
118    tileScale=100
119    towerTemplate=tower
120    position="0,0,0"
121    direction="0,0,0"
122    collisionType=dynamic
123    mass=100000
124    team=1
125    />
126
127  </Scene>
128</Level>
129
Note: See TracBrowser for help on using the repository browser.