[Orxonox-commit 563] r2194 - media/levels
bknecht at orxonox.net
bknecht at orxonox.net
Thu May 28 04:36:34 CEST 2009
Author: bknecht
Date: 2009-05-28 04:36:34 +0200 (Thu, 28 May 2009)
New Revision: 2194
Modified:
media/levels/presentation09b.oxw
Log:
added depris pieces
Modified: media/levels/presentation09b.oxw
===================================================================
--- media/levels/presentation09b.oxw 2009-05-28 02:35:54 UTC (rev 2193)
+++ media/levels/presentation09b.oxw 2009-05-28 02:36:34 UTC (rev 2194)
@@ -16,8 +16,9 @@
>
<Light type=directional position="0,0,0" direction="0.683, 0.289, 0.670" diffuse="1.0, 1.0, 1.0, 1.0" specular="1.0, 1.0, 1.0, 1.0" />
- <SpawnPoint position="10000, 2000, 3000" direction="-0.6, -0.5, -0.7" spawnclass=SpaceShip pawndesign=spaceshipassff />
-
+ <SpawnPoint position="-4200, 2500, 1200" spawnclass=SpaceShip pawndesign=spaceshipassff />
+
+ <Model position="10500, 2000, 3000" scale="100" mesh="spacecruiser.mesh"/>
<?lua
for i = 1, 200, 1
do
@@ -34,7 +35,30 @@
</MovableEntity>
<?lua
end
+?>
+
+<?lua
+elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
+sizes = {4, 4, 4, 4, 4, 10, 20}
+elements.length = function()
+ return table.getn(elements)
+end
+for i = 1, 150, 1
+do
+x = math.random() * 750 - 4500
+y = math.random() * 1000 + 2000
+z = math.random() * 500 + 1000
+e = math.floor(math.random()*elements.length()+1)
?>
+ <MovableEntity 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() * 30 - 15) ?>">
+ <attached>
+ <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" />
+ </attached>
+ </MovableEntity>
+<?lua
+end
+?>
+
</Scene>
</Level>
More information about the Orxonox-commit
mailing list