Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 6, 2017, 12:52:38 PM (7 years ago)
Author:
pascscha
Message:

Asteroid Clusters

Location:
code/branches/FlappyOrx_HS17/data/levels
Files:
2 edited

Legend:

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

    r11521 r11529  
    4848    <FlappyOrxCenterPoint name=flappyorxcenter />
    4949   
     50
     51
     52    <?lua
     53      for i = 1, 6, 1 do
     54        for j = 3, 12,3 do
     55    ?>
     56
     57    <Template name=Asteroid<?lua print(j) ?>_<?lua print(i) ?>>
     58      <MovableEntity
     59        collisionType = dynamic
     60        linearDamping = 0.8
     61        angularDamping = 0
     62        scale = "<?lua print(j) ?>"
     63        collisiondamage = 10000
     64        enablecollisiondamage = true
     65      >
     66     
     67        <attached>
     68          <Model mass="1000" mesh="ast<?lua print(i) ?>.mesh" />
     69        </attached>
     70        <collisionShapes>
     71          <SphereCollisionShape radius="<?lua print(j) ?>" />
     72        </collisionShapes>
     73      </MovableEntity>
     74    </Template>
     75
     76    <?lua
     77        end
     78      end
     79    ?>
     80
     81    <!--
    5082     <?lua
    5183      for i = 1, 30, 1 do
     
    92124      end
    93125    ?>
     126  -->
     127   
     128   
    94129  </Scene>
    95130</Level>
    96 
  • code/branches/FlappyOrx_HS17/data/levels/templates/spaceshipFlappyOrx.oxt

    r11514 r11529  
    4343    speed = 100
    4444    UpwardThrust = 200
    45     gravity = 18
     45    gravity = 500
    4646  >
    4747    <engines>
Note: See TracChangeset for help on using the changeset viewer.