Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 23, 2017, 3:22:13 PM (7 years ago)
Author:
merholzl
Message:

asteroid spawn placement

File:
1 edited

Legend:

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

    r11503 r11504  
    4646
    4747    <DistanceTrigger name="start" position="-200,0,0" target="Pawn" distance=10 stayActive="true" delay=0 />
    48 
     48    <Model position="0,0,0" mesh="Coordinates.mesh" scale="20"/>
    4949
    5050    <InvaderCenterPoint name=invadercenter />
    5151   
    5252    <?lua
    53       for i = 1, 300, 1 do
     53      for i = 1, 30, 1 do
    5454        j = math.random()
    5555    ?>
    5656
    5757    <MovableEntity
    58       position = "<?lua print(math.random()* 40000 + 1000) ?>,-1000,<?lua print(math.random() * 4000 - 2000) ?>"
     58      position = "<?lua print(i* 3000) ?>,0, <?lua print(j* 200) ?>"
    5959      collisionType = dynamic
    6060      linearDamping = 0.8
    6161      angularDamping = 0
    62       scale = "<?lua print(j * 150)?>"
     62      scale = "<?lua print(10)?>"
    6363      collisiondamage = 0
    6464      enablecollisiondamage = true
    6565    >
     66   
    6667      <attached>
    67         <Model mass="<?lua print(j * 1000) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
     68        <Model mass="1000" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
    6869      </attached>
    6970      <collisionShapes>
    70         <SphereCollisionShape radius="<?lua print(j * 350) ?>" />
     71        <SphereCollisionShape radius="<?lua print(10) ?>" />
     72      </collisionShapes>
     73    </MovableEntity>
     74
     75     <MovableEntity
     76      position = "<?lua print(i* 3000) ?>,0,<?lua print(-150 + j* 200) ?>"
     77      collisionType = dynamic
     78      linearDamping = 0.8
     79      angularDamping = 0
     80      scale = "<?lua print(10)?>"
     81      collisiondamage = 0
     82      enablecollisiondamage = true
     83    >
     84   
     85      <attached>
     86        <Model mass="1000" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" />
     87      </attached>
     88      <collisionShapes>
     89        <SphereCollisionShape radius="<?lua print(10) ?>" />
    7190      </collisionShapes>
    7291    </MovableEntity>
Note: See TracChangeset for help on using the changeset viewer.