Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9007


Ignore:
Timestamp:
Dec 20, 2011, 9:29:09 PM (12 years ago)
Author:
smerkli
Message:

Added a planet with orbitting space trash to level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2011/data/levels/asteroidField.oxw

    r9006 r9007  
    3535    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff2 />
    3636
     37
     38
     39
     40    <!-- Belt that's far away -->
    3741    <!-- Generate asteroid field and asteroid belt -->   
    3842    <?lua
     
    4044        asteroidBelt(0, 0, 0, -48, -34, 70, 100, 200, 219900, 210000, 900, 1)
    4145    ?>
     46
     47
     48
     49
     50    <!-- Belts around the planet -->
     51    <?lua
     52        dofile("includes/asteroidField.lua")
     53        asteroidBelt(3000, 0, 0, -100, -134, 80, 10, 20, 2190, 1800, 100, 1)
     54    ?>
     55    <?lua
     56        dofile("includes/asteroidField.lua")
     57        asteroidBelt(3000, 0, 0, -190, -134, 80, 10, 20, 2190, 1800, 100, 1)
     58    ?>
     59    <?lua
     60        dofile("includes/asteroidField.lua")
     61        asteroidBelt(3000, 0, 0, -270, -134, 80, 10, 20, 2190, 1800, 100, 1)
     62    ?>
     63
     64
     65
     66    <!-- Planet close to spawn point -->
     67    <Planet
     68      position="3000,0,0"
     69      scale="1000"
     70      collisionType="dynamic"
     71      linearDamping="0.8"
     72      angularDamping="0"
     73      mass="10000000"
     74      pitch="0"
     75      mesh="planets/muunilinst.mesh"
     76      atmosphere="atmosphere1"
     77      rotationaxis="1,0,0"
     78      rotationrate="1.0"
     79      atmospheresize="80.0f"
     80      imagesize="1024.0f"
     81      collisiondamage = 2
     82      enablecollisiondamage = true
     83    >
     84      <attached>
     85        <ForceField position="5000,0,0" mode="sphere" diameter="10000" velocity="-50" />
     86      </attached>
     87      <collisionShapes>
     88        <SphereCollisionShape radius="1000" position="0,0,0" />
     89      </collisionShapes>
     90    </Planet>
     91
     92
     93
     94
     95
     96
    4297   
    4398  </Scene>
Note: See TracChangeset for help on using the changeset viewer.