Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11627


Ignore:
Timestamp:
Dec 4, 2017, 3:25:56 PM (7 years ago)
Author:
pascscha
Message:

Invaders reverted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FlappyOrx_HS17/data/levels/Invaders.oxw

    r11596 r11627  
    55 screenshot = "orxonoxArcade.png"
    66/>
    7 
    87<?lua
    98  include("stats.oxo")
     
    4544    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=InvaderShip pawndesign=spaceshipinvader />
    4645
    47     <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=FlappyOrxShip pawndesign=spaceshipFlappyOrx />
     46    <DistanceTrigger name="start" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=0 />
    4847
    49    
     48
    5049    <InvaderCenterPoint name=invadercenter />
    5150   
    52      <MovableEntity
    53       position = "3000,0,0"
     51    <?lua
     52      for i = 1, 300, 1 do
     53        j = math.random()
     54    ?>
     55
     56    <MovableEntity
     57      position = "<?lua print(math.random()* 40000 + 1000) ?>,-1000,<?lua print(math.random() * 4000 - 2000) ?>"
    5458      collisionType = dynamic
    5559      linearDamping = 0.8
    5660      angularDamping = 0
    57       scale = "10"
     61      scale = "<?lua print(j * 150)?>"
    5862      collisiondamage = 0
    5963      enablecollisiondamage = true
    6064    >
    61    
    6265      <attached>
    63         <Model mass="1000" mesh="ast6.mesh" />
     66        <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
    6467      </attached>
    6568      <collisionShapes>
    66         <SphereCollisionShape radius="10" />
     69        <SphereCollisionShape radius="<?lua print(j * 350) ?>" />
    6770      </collisionShapes>
    6871    </MovableEntity>
    6972
    70    
     73    <?lua
     74      end
     75    ?>
    7176   
    7277  </Scene>
Note: See TracChangeset for help on using the changeset viewer.