Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5540 for data/media/levels


Ignore:
Timestamp:
May 25, 2009, 1:11:20 PM (15 years ago)
Author:
Aurelian
Message:

Forcefileds modelled for faster performance, asteroids with right collision shapes.

File:
1 edited

Legend:

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

    r5528 r5540  
    88 name         = "Asteroids Race"
    99 description  = "testmap for gametype asteroid race"
    10  gametype     = Asteroids
     10 gametype     =  Asteroids
    1111>
    12   <Scene
    13    ambientlight = "0.5, 0.5, 0.5"
    14    skybox       = "Orxonox/Starbox"
    15   >
     12<Scene
     13 ambientlight = "0.5, 0.5, 0.5"
     14 skybox       = "Orxonox/Starbox"
     15>
    1616
    1717<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" />
     
    2121<SpawnPoint position="-300,300,0" name="playerstart" direction="1,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
    2222
    23 <!--
     23
    2424<?lua
    25 for i = 1, 500, 1
     25for i = 1, 350, 1
    2626do
    2727j = math.random()
    2828?>
    2929
    30     <MovableEntity position="<?lua print(math.random()* 10000 - 5000) ?>,<?lua print(math.random() * 10000 - 5000) ?>,<?lua print(math.random() * 10000 - 5000) ?>" collisionType=dynamic linearDamping=0.8 angularDamping=0 scale=<?lua print(j * 150 + 30) ?> rotationaxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationrate="<?lua print(math.random() *100) ?>" >
     30    <MovableEntity
     31     position="<?lua print(math.random()* 9000 - 1000) ?>,<?lua print(math.random() * 8000 - 4000) ?>,<?lua print(math.random() * 8000 - 4000) ?>"       collisionType=dynamic
     32     linearDamping=0.8
     33     angularDamping=0
     34     scale=<?lua print(j * 150)?>
     35     collisiondamage=0.005
     36     enablecollisiondamage=true>
    3137      <attached>
    32         <Model position="0,0,0" scale=<?lua print(j * 10) ?> mass=<?lua print(j * 30) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
     38        <Model mass=<?lua print(j * 30) ?> mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
    3339      </attached>
    3440      <collisionShapes>
    35         <SphereCollisionShape radius="<?lua print(j * 2300 + 450) ?>" />
     41        <SphereCollisionShape radius="<?lua print(j * 350) ?>" />
    3642      </collisionShapes>
    3743    </MovableEntity>
     
    3945end
    4046?>
    41 -->
    42 
    43 
    44 <MovableEntity position="0,0,0" collisionType=dynamic linearDamping=0.8 angularDamping=0 scale=5 collisiondamage=1 enablecollisiondamage=true>
    45   <attached>
    46     <Model position="0,0,0" scale=10 mass=100 mesh="ast1.mesh" />
     47
     48<!--
     49<MovableEntity position="0,0,0" collisionType=dynamic scale=5 linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
     50  <attached>
     51    <Model mass=100 mesh="ast1.mesh" />
    4752  </attached>
    4853    <collisionShapes>
    49       <SphereCollisionShape radius=150 />
     54      <SphereCollisionShape radius=11.75 />
    5055    </collisionShapes>
    5156</MovableEntity>
    5257
    5358
    54 <ForceField position="0,-500,0" direction="0,1,0" diameter=500 velocity=70>
    55   <attached>
    56     <ParticleEmitter source="Orxonox/ForceFieldPurple" startdelay=0 />
     59<MovableEntity position="0,300,0" scale=10 collisionType=dynamic linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
     60  <attached>
     61    <Model mass=100 mesh="ast1.mesh" />
     62  </attached>
     63    <collisionShapes>
     64      <SphereCollisionShape radius=22.5 />
     65    </collisionShapes>
     66</MovableEntity>
     67
     68
     69<MovableEntity position="0,600,0"  scale=34  collisionType=dynamic linearDamping=0.8 angularDamping=0 collisiondamage=0.005 enablecollisiondamage=true>
     70  <attached>
     71    <Model mass=100 mesh="ast1.mesh" />
     72  </attached>
     73    <collisionShapes>
     74      <SphereCollisionShape radius=76.5 />
     75    </collisionShapes>
     76</MovableEntity>
     77
     78<MovableEntity position="0,1200,0" scale=80 collisionType=dynamic linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
     79  <attached>
     80    <Model mass=100 mesh="ast1.mesh" />
     81  </attached>
     82    <collisionShapes>
     83      <SphereCollisionShape radius=200 />
     84    </collisionShapes>
     85</MovableEntity>
     86-->
     87
     88<ForceField position="200,300,-500" direction="0,0,1" diameter=500 velocity=100>
     89  <attached>
     90    <ParticleEmitter source="Orxonox/ForceFieldPurpleSmall" startdelay=0 />
    5791  </attached>
    5892 </ForceField>
    5993
    60 
    61  <ForceField position="1000,-500,0" direction="0,1,1" diameter=500 velocity=30>
    62   <attached>
    63     <ParticleEmitter source="Orxonox/ForceFieldGreen" startdelay=0 />
     94 <ForceField position="1100,-150,600" direction="1,0.3,-0.7" diameter=800 velocity=200>
     95  <attached>
     96    <ParticleEmitter source="Orxonox/ForceFieldBlueBig" startdelay=0 />
    6497  </attached>
    6598 </ForceField>
    6699
    67  <ForceField position="1800,-300,-300" direction="0,0,1" diameter=800 velocity=100>
    68   <attached>
    69     <ParticleEmitter source="Orxonox/ForceFieldBlue" startdelay=0 />
     100 <ForceField position="4300,700,250" direction="-1,-1,-1" diameter=500 velocity=100>
     101  <attached>
     102    <ParticleEmitter source="Orxonox/ForceFieldGreenSmall" startdelay=0 />
    70103  </attached>
    71104 </ForceField>
    72105
    73 
    74 
    75 <CheckPoint name=trigger1 position="-300,300,0" scale=1 isdestination=false isfirst=true stayactive=true distance=10 addtime=20 />
     106  <ForceField position="5900,280,-1300" direction="-1,0,1" diameter=900 velocity=200>
     107  <attached>
     108    <ParticleEmitter source="Orxonox/ForceFieldBlueBig" startdelay=0 />
     109  </attached>
     110 </ForceField>
     111
     112
     113
     114<CheckPoint name=trigger1 position="-300,300,0" scale=1 isdestination=false isfirst=true stayactive=true distance=10 addtime=60 />
    76115
    77116
     
    280319
    281320
    282 <CheckPoint name=trigger6 position="4600, 800,-400" scale=3 isdestination=false stayactive=true distance=100 addtime=6>
     321<CheckPoint name=trigger6 position="4600, 400,-400" scale=3 isdestination=false stayactive=true distance=100 addtime=6>
    283322  <events>
    284323    <activity>
     
    331370
    332371
    333 <Model position="3800,1200,-900" scale=10 mesh="Carrier.mesh" pitch=180>
    334   <attached>
    335     <CheckPoint position="-10,0,0" name=trigger7 scale=0.1 isdestination=true stayactive=true distance=100>
     372<Model position="5600,200,-900" scale=10 pitch=-90  mesh="Carrier.mesh">
     373  <attached>
     374    <CheckPoint position="-10,0,0" name=trigger7 scale=0.6 isdestination=true stayactive=true distance=100>
    336375  <events>
    337376    <activity>
Note: See TracChangeset for help on using the changeset viewer.