Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1557


Ignore:
Timestamp:
Jun 6, 2008, 9:34:27 PM (17 years ago)
Author:
landauf
Message:

some changes in Lua-code to generate asteroids to make it work with older versions of Lua (however this shouldn't be necessary, but I wasn't able to fix the error yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/bin/levels/sample.oxw

    r1505 r1557  
    4444for i = 1, 226, 1
    4545do ?>
    46   <Model position="<?lua print(math.random(-19597, 18732))?>, <?lua print(math.random(-19597, 18732)) ?>, <?lua print(math.random(-19597, 18732)) ?>" scale="<?lua print(math.random( 20, 119)) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" rotationAxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationRate="<?lua print(math.random(16, 44)) ?>" />
     46  <Model position="<?lua print(math.random() * 40000 - 20000)?>, <?lua print(math.random() * 40000 - 20000) ?>, <?lua print(math.random() * 40000 - 20000) ?>" scale="<?lua print(math.random() * 100 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" rotationAxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationRate="<?lua print(math.random() * 30 + 15) ?>" />
    4747<?lua
    4848end
Note: See TracChangeset for help on using the changeset viewer.