[Orxonox-commit 4463] r9134 - code/branches/newlevel2012/data/levels

mentzerf at orxonox.net mentzerf at orxonox.net
Sun Apr 29 11:06:06 CEST 2012


Author: mentzerf
Date: 2012-04-29 11:06:06 +0200 (Sun, 29 Apr 2012)
New Revision: 9134

Modified:
   code/branches/newlevel2012/data/levels/towerDefense.oxw
Log:
+ Added Template for tower
* Replaced StaticEntity for playfield with TowerDefenseCenterpoint

Modified: code/branches/newlevel2012/data/levels/towerDefense.oxw
===================================================================
--- code/branches/newlevel2012/data/levels/towerDefense.oxw	2012-04-29 08:06:09 UTC (rev 9133)
+++ code/branches/newlevel2012/data/levels/towerDefense.oxw	2012-04-29 09:06:06 UTC (rev 9134)
@@ -35,8 +35,6 @@
 </Template>
 
 <!-- Loads the playfield mesh -->
-<!-- TODO: why don't you add Playfield_ME.mesh to the data repository ? : /orxonox/data_extern/models -->
-
 <Template name=playfield>
   <Pawn camerapositiontemplate=playfieldcameras>
     <attached>
@@ -45,10 +43,15 @@
   </Pawn>
 </Template>
 
+<!-- Template for a tower -->
+<Template name=towertemplate>
+  <Tower>
+    <attached>
+      <Model position="15,0,0" mesh="crate.mesh" scale=1 />
+    </attached>
+  </Tower>
+</Template>
 
-
-
-
 <Level gametype = "TowerDefense">
   <templates>
     <Template link=lodtemplate_default />
@@ -67,7 +70,7 @@
 	<!-- Spawns the camera, attached to a crate -->
     <SpawnPoint team=0 position="0,0,0" lookat="0,0,0" spawnclass=Pawn pawndesign=playfield />
     
- 	<!--SpawnPoint team=1 position="0,0,30" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff  /-->
+ 	<!--SpawnPoint team=1 position="0,0,10" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff  /-->
  	
  	
  	
@@ -88,11 +91,20 @@
     </SpaceShip-->
     
 
-    <StaticEntity position="0,0,0" direction="1,0,0" collistionType=static mass=100000>
+	<!-- PlayField -->
+	<TowerDefenseCenterpoint 
+	name=towerdefensecenter 
+	width=16 
+	height=16 
+	towerTemplate=towertemplate 
+	position="0,0,0" 
+	direction="1,0,0" 
+	collistionType=static 
+	mass=100000>
         <attached>
             <Model position="0,0,0" orientation="1,1,1,1" mesh="Playfield_ME.mesh" scale3D="1,1,1" />
         </attached>
-    </StaticEntity>
+    </TowerDefenseCenterpoint>
 
   </Scene>
 </Level>




More information about the Orxonox-commit mailing list