Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 4, 2006, 12:55:44 AM (18 years ago)
Author:
bensch
Message:

orxonox/data/trunk: merged the single_player_map back.
merged with command:
svn merge https://svn.orxonox.net/data/branches/single_player_map . -r624:HEAD
no conflicts, that mattered (all merged to the favour of the branche)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/trunk/scripts/falldown.lua

    r3991 r4080  
     1-- Get objects from orxonox
     2thisscript:addObject("TestEntity", "fallingguy")
     3thisscript:addObject("FPSPlayer", "Player")
     4
    15dy = 0
    26randTime = 0
     
    913math.randomseed(os.clock())
    1014randinit = true
    11 randTime = 10 * math.random()
     15randTime = 8 * math.random()
    1216end
    1317end
     
    1519
    1620function fallDown(timestep)
    17 dy = dy + timestep*0.01
     21dy = dy + timestep
    1822thisX = fallingguy:getAbsCoorX()
    1923thisY = fallingguy:getAbsCoorY()
     
    2226fallingguy:setAbsCoor(thisX, thisY - dy, thisZ)
    2327
    24 if thisY < 0 then
     28if thisY < -100 then
    2529eventFinished = true
    2630end
Note: See TracChangeset for help on using the changeset viewer.