Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10754


Ignore:
Timestamp:
Nov 2, 2015, 3:29:36 PM (9 years ago)
Author:
bhatiab
Message:

Changed the number of enemies per waves, need to test it, if it works properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/data/levels/Campaign1.oxw

    r10750 r10754  
    685685    ?>
    686686    <?lua
    687     for i = 1, enemies, 1
     687    for j = enemies, enemies+(3*waves), 3
    688688    do
    689     x = math.cos(math.pi/8*(i+1))*1500
    690     y = math.sin(math.pi/8*(i+1))*1500
     689    ?>
     690    <?lua
     691    for i = 1, j, 1
     692    do
     693    x = math.cos(math.pi/(8+4*(k-1))*(i+1))*1500
     694    y = math.sin(math.pi/(8+4*(k-1))*(i+1))*1500
    691695    ?>
    692696    <SpaceShip visible=false active=false name="attackers<?lua print(k)?>" radarname="Attacker" position="<?lua print(x)?>,<?lua print(y)?>,<?lua print(math.pow(-1,i)*250) ?>" lookat="0,0,0" team=1>
     
    720724    <?lua end ?>
    721725    <?lua end ?>
     726    <?lua end ?>
    722727
    723728
Note: See TracChangeset for help on using the changeset viewer.