- Timestamp:
- May 28, 2009, 4:36:34 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/media/levels/presentation09b.oxw
r5564 r5569 17 17 <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" /> 18 18 19 <SpawnPoint position=" 10000, 2000, 3000" direction="-0.6, -0.5, -0.7" spawnclass=SpaceShip pawndesign=spaceshipassff />19 <SpawnPoint position="-4200, 2500, 1200" spawnclass=SpaceShip pawndesign=spaceshipassff /> 20 20 21 <Model position="10500, 2000, 3000" scale="100" mesh="spacecruiser.mesh"/> 21 22 <?lua 22 23 for i = 1, 200, 1 … … 36 37 end 37 38 ?> 39 40 <?lua 41 elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"} 42 sizes = {4, 4, 4, 4, 4, 10, 20} 43 elements.length = function() 44 return table.getn(elements) 45 end 46 for i = 1, 150, 1 47 do 48 x = math.random() * 750 - 4500 49 y = math.random() * 1000 + 2000 50 z = math.random() * 500 + 1000 51 e = math.floor(math.random()*elements.length()+1) 52 ?> 53 54 <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) ?>"> 55 <attached> 56 <Model position="0,0,0" scale="<?lua print(sizes[e]) ?>" mesh="<?lua print( elements[e]) ?>" /> 57 </attached> 58 </MovableEntity> 59 <?lua 60 end 61 ?> 38 62 39 63 </Scene>
Note: See TracChangeset
for help on using the changeset viewer.