Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 4, 2006, 3:14:54 PM (18 years ago)
Author:
hdavid
Message:

effects.lua

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/branches/presentation/scripts/effects.lua

    r4095 r4099  
    2121playerZ = Player:getAbsCoorZ()
    2222
     23
    2324if playerX > -1200 and not cloudActivated then
    2425  cloud:activate()
     
    2829if playerX > -1100 and cloudActivated then
    2930  cloud:cloudColor(1,0,0,5)
    30   cloud:skyColor(0.5,0.5,0.5,5)
     31  cloud:skyColor(0,0,0,5)
    3132end
    3233
    33 if playerX > -1000 and cloudActivated then
    34   cloud:cloudColor(0.8,0.8,0.8,5)
    35   cloud:skyColor(0,0,0.8,5)
     34--if playerX > -1000 and cloudActivated then
     35--  cloud:cloudColor(0.8,0.8,0.8,5)
     36--  cloud:skyColor(0,0,0.8,5)
     37--end
     38
     39--if playerX > -900 and not fogActivated then
     40--  fog:activate()
     41--  fogActivated = true
     42--end
     43
     44--if playerX > -800 and not snowActivated then
     45--  snow:activate()
     46--  snowActivated = true
     47--end
     48
     49--if playerX > -700 and snowActivated then
     50--  snow:deactivate()
     51--  fog:deactivate()
     52--end
     53
     54if playerX > -600 and not rainActivated then
     55  rain:startRaining()
     56  rainActivated = true
    3657end
    3758
    38 if playerX > -500 then
    39   io.write("script end\n")
    40   return true
     59if playerX > -500 and rainActivated and not lightningActivated then
     60  lightning:activate()
     61  lightningActivated = true
     62end
     63
     64if playerX > -300 and rainActivated and lightningActivated then
     65  rain:stopRaining()
     66  lightning:deactivate()
    4167end
    4268
Note: See TracChangeset for help on using the changeset viewer.