Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5569 for data


Ignore:
Timestamp:
May 28, 2009, 4:36:34 AM (15 years ago)
Author:
bknecht
Message:

added depris pieces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/media/levels/presentation09b.oxw

    r5564 r5569  
    1717    <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" />
    1818
    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 />
    2020
     21    <Model position="10500, 2000, 3000" scale="100" mesh="spacecruiser.mesh"/>
    2122<?lua
    2223for i = 1, 200, 1
     
    3637end
    3738?>
     39
     40<?lua
     41elements = {"BodyDebris1.mesh", "CockpitDebris.mesh", "LightningGun.mesh", "WingDebris1.mesh", "WingDebris2.mesh", "satellitedish.mesh", "Thruster.mesh"}
     42sizes = {4, 4, 4, 4, 4, 10, 20}
     43elements.length = function()
     44    return table.getn(elements)
     45end
     46for i = 1, 150, 1
     47do
     48x = math.random() * 750 - 4500
     49y = math.random() * 1000 + 2000
     50z = math.random() * 500 + 1000
     51e = 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
     60end
     61?>
    3862   
    3963  </Scene>
Note: See TracChangeset for help on using the changeset viewer.