[Orxonox-commit 6007] r10666 - code/branches/campaignHS15/data/levels

bhatiab at orxonox.net bhatiab at orxonox.net
Mon Oct 19 15:26:22 CEST 2015


Author: bhatiab
Date: 2015-10-19 15:26:21 +0200 (Mon, 19 Oct 2015)
New Revision: 10666

Modified:
   code/branches/campaignHS15/data/levels/Campaign1.oxw
Log:
Added General Level-structure.

Modified: code/branches/campaignHS15/data/levels/Campaign1.oxw
===================================================================
--- code/branches/campaignHS15/data/levels/Campaign1.oxw	2015-10-19 13:17:40 UTC (rev 10665)
+++ code/branches/campaignHS15/data/levels/Campaign1.oxw	2015-10-19 13:26:21 UTC (rev 10666)
@@ -121,7 +121,7 @@
     <EventMultiTrigger name=spawntrigger>
       <events>
           <trigger>
-              <SpawnPoint team=0 position="0,-200,0" lookat="0,0,-50" spawnclass=SpaceShip pawndesign=spaceshipassff2 />
+              <SpawnPoint team=0 position="-50,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff2 />
           </trigger>
       </events>
     </EventMultiTrigger>
@@ -151,18 +151,53 @@
         </events>
     </QuestEffectBeacon>
 
-    <!--ELEMENTS -->
+    <!--STRUCTURE -->   
 
-  	<SpaceShip position="500,500,-200" lookat="-500,500,-200" team=0>
+    <StaticEntity position="-2500,0,1800" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
+        <attached> 
+            <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" /> 
+        </attached> 
+        <collisionShapes> 
+            <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" /> 
+        </collisionShapes> 
+    </StaticEntity>
+
+    <StaticEntity position="-2500,0,-1800" direction="0,-1,0" collisionType=static mass=100000 friction=0.01 >
+        <attached> 
+            <Model position="0,0,0" mesh="cube.mesh" scale3D="10,10,10" /> 
+        </attached> 
+        <collisionShapes> 
+            <BoxCollisionShape position="0,0,0" halfExtents="10,10,10" /> 
+        </collisionShapes> 
+    </StaticEntity>
+
+     <!--ELEMENTS -->
+
+       <?lua
+      max = 5
+    for i = 1, max, 1
+    do 
+      x = math.cos(math.pi/8*(i+1))*1500
+      y = math.sin(math.pi/8*(i+1))*1500
+    ?>
+    <SpaceShip position="<?lua print(y)?>,<?lua print(math.pow(-1,i)*250) ?>,<?lua print(x)?>" lookat="0,0,0" team=1>
+        <templates>
+            <Template link=spaceshippirate />
+        </templates>
+        
+    </SpaceShip>
+    <?lua end ?>
+
+  	<SpaceShip position="-2500,0,1700" lookat="-2500,0,-1800" team=0>
   		<templates>
   			<Template link=spaceshipTransporter />
   		</templates>
   		<controller>
   		    <WaypointController accuracy=10>
   		        <waypoints>
-  		            <Model mesh="cube.mesh" scale=8 position="0,700,-200" />
-                      <Model mesh="cube.mesh" scale=8 position="500,500,-200" />
-                      <Model mesh="cube.mesh" scale=8 position="-500,500,-200" />
+  		            <Model mesh="cube.mesh" scale=8 position="-2500,0,900" />
+                  <Model mesh="cube.mesh" scale=8 position="-2500,0,-900" />
+                  <Model mesh="cube.mesh" scale=8 position="-2500,0,-1700" />
   		        </waypoints>
   		    </WaypointController>
   		</controller>




More information about the Orxonox-commit mailing list