[Orxonox-commit 1587] r6305 - code/branches/presentation2/data/levels

decapitb at orxonox.net decapitb at orxonox.net
Wed Dec 9 21:34:27 CET 2009


Author: decapitb
Date: 2009-12-09 21:34:27 +0100 (Wed, 09 Dec 2009)
New Revision: 6305

Modified:
   code/branches/presentation2/data/levels/presentationHS09b.oxw
Log:
added some enemies and stuff

Modified: code/branches/presentation2/data/levels/presentationHS09b.oxw
===================================================================
--- code/branches/presentation2/data/levels/presentationHS09b.oxw	2009-12-09 20:04:57 UTC (rev 6304)
+++ code/branches/presentation2/data/levels/presentationHS09b.oxw	2009-12-09 20:34:27 UTC (rev 6305)
@@ -6,6 +6,8 @@
 <?lua
   include("templates/spaceship_assff.oxt")
   include("templates/spaceship_pirate.oxt")
+  include("templates/spaceship_ghost.oxt")
+  include("templates/spaceship_HXY.oxt")
 ?>
 
 <Level
@@ -18,11 +20,14 @@
   >
 
     
-    	<AmbientSound ambientSource="Earth.ogg" loop="true" play="true" />
+    	<AmbientSound ambientSource="Mars.ogg" loop="true" play="true" />
 
    <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" />
    <?lua
-   elements = {"asteroid_ice.mesh", "asteroid_UV.mesh", "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh"}
+   elements = {"asteroid_UV.mesh"
+--, "asteroid_ice.mesh"
+--, "ast1.mesh", "ast2.mesh", "ast3.mesh", "ast4.mesh", "ast5.mesh", "ast6.mesh"
+}
    elements.length = function()
 	return table.getn(elements)
    end
@@ -31,14 +36,17 @@
    x = math.random() * 200  + (i) * 200
    y = math.random() * 3000 - 1500
    z = math.random() * 3000 - 1500 + (i-100) * 10
-   s = math.random() * 60 + 30
+   s = math.random() * 100 + 50
    e = math.floor(math.random()*elements.length()+1)
    ?>
     
-    <MovableEntity mass=90000 position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.8 angularDamping=0.8 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>"> 
+    <MovableEntity collisiontype=dynamic mass=<?lua print(s*10)?> position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" linearDamping=0.01 angularDamping=0 rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() * 100 - 15) ?>"> 
       <attached>
         <Model position="0,0,0" scale=<?lua print(s) ?> mesh="<?lua print(elements[e])?>" />
       </attached>
+	<collisionShapes>
+        	<SphereCollisionShape radius="<?lua if e==0 then print(s*0.9) end if e==1 then print(s*0.3) end if e==2 or e==3 or e==4 or e==5 or e==6 or e==7 then print(s*2) end ?>" />
+      	</collisionShapes>
     </MovableEntity>
 <?lua 
 end
@@ -50,11 +58,12 @@
 x = math.random() * 100 + i*100
 y = math.random() * 3000 - 1500
 z = math.random() * 3000 - 1500 + (i-100) * 10
-s = math.random() * 60 + 30
+s = math.rando 
 ?>
+
  <ParticleSpawner position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" source="Orxonox/Steam" lifetime=3.0 loop=1 />
-
-<!--<Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>"  color="1, 1, 1, 0.01" scale="20" />
+<!-- 
+<Billboard material="Test/Fog" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>"  color="1, 1, 1, 0.01" scale="20" />
 -->
 <?lua 
 end
@@ -82,8 +91,26 @@
 	<?lua 
 	end
 	?>
+<?lua
+for i = 1,5, 1 
+do
+?>
+    <SpaceShip position="2000,0,0" >
+      <templates>
+        <Template link=spaceshipHXY />
+      </templates>
+      <controller>
+	<WaypointPatrolController name=ghost target=pirate alertnessradius=1000 team=0 active=false>
+          <waypoints>
+            <StaticEntity position="0,0,0" />
+          </waypoints>
+        </WaypointPatrolController>
+      </controller>
+    </SpaceShip>
+<?lua 
+end
+?>
 
-
-    <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
+    <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipHXY  />
   </Scene>
 </Level>




More information about the Orxonox-commit mailing list