[Orxonox-commit 5060] r9724 - in code/branches/invaders/data/levels: . templates

zifloria at orxonox.net zifloria at orxonox.net
Mon Oct 28 16:58:58 CET 2013


Author: zifloria
Date: 2013-10-28 16:58:58 +0100 (Mon, 28 Oct 2013)
New Revision: 9724

Modified:
   code/branches/invaders/data/levels/Invaders.oxw
   code/branches/invaders/data/levels/templates/spaceshipInvader.oxt
Log:
shooting and steering basics

Modified: code/branches/invaders/data/levels/Invaders.oxw
===================================================================
--- code/branches/invaders/data/levels/Invaders.oxw	2013-10-28 15:07:58 UTC (rev 9723)
+++ code/branches/invaders/data/levels/Invaders.oxw	2013-10-28 15:58:58 UTC (rev 9724)
@@ -30,9 +30,56 @@
 
     <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"/>
     <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=InvaderShip pawndesign=spaceshipinvader />
+    <MovableEntity
+      position = "-200,0,0"
+      velocity = "975.7, 0, 0"
+    >
+      <events>
+        <activity>
+          <EventListener event="start" />
+        </activity>
+      </events>
+      <attached>
 
+        <Model mass="1000" mesh="ast1.mesh" />
+      </attached>
+      <camerapositions>
+        <CameraPosition position="0,300,-100" direction="0, -1, 0" drag=false mouselook=true />
+      </camerapositions>
+    </MovableEntity>
+
+    <DistanceTrigger name="start" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=0 />
+
+
     <InvaderCenterPoint name=invadercenter />
     
+    <?lua
+      for i = 1, 250, 1
+      do
+      j = math.random()
+    ?>
+
+    <MovableEntity
+      position = "<?lua print(math.random()* 15000 - 1000) ?>,-1000,<?lua print(math.random() * 12000 - 4000) ?>"
+      collisionType = dynamic
+      linearDamping = 0.8
+      angularDamping = 0
+      scale = "<?lua print(j * 150)?>"
+      collisiondamage = 1
+      enablecollisiondamage = true
+    >
+      <attached>
+        <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
+      </attached>
+      <collisionShapes>
+        <SphereCollisionShape radius="<?lua print(j * 350) ?>" />
+      </collisionShapes>
+    </MovableEntity>
+
+    <?lua
+      end
+    ?>
+    
   </Scene>
 </Level>
 

Modified: code/branches/invaders/data/levels/templates/spaceshipInvader.oxt
===================================================================
--- code/branches/invaders/data/levels/templates/spaceshipInvader.oxt	2013-10-28 15:07:58 UTC (rev 9723)
+++ code/branches/invaders/data/levels/templates/spaceshipInvader.oxt	2013-10-28 15:58:58 UTC (rev 9724)
@@ -67,7 +67,7 @@
 <!--       <CameraPosition position="0,15, 60" drag=true mouselook=true />
       <CameraPosition position="0,20, 90" drag=true mouselook=true />
       <CameraPosition position="0,30,120" drag=true mouselook=true /> -->
-      <CameraPosition position="0,300,-100" direction="0, -1, 0" drag=true mouselook=true />
+      <CameraPosition position="0,300,-100" direction="0, -1, 0" drag=false mouselook=true />
     </camerapositions>
   </InvaderShip>
 </Template>




More information about the Orxonox-commit mailing list