Changeset 4095 for data/branches/presentation/scripts
- Timestamp:
- Jul 4, 2006, 2:24:48 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/presentation/scripts/effects.lua
r4091 r4095 10 10 -- Global Variables 11 11 fogActivated = false 12 RainActivated = false13 SnowActivated = false14 LightningActivated = false15 CloudActivated = false12 rainActivated = false 13 snowActivated = false 14 lightningActivated = false 15 cloudActivated = false 16 16 17 17 function tick(timestep) 18 18 19 io.write("script begin\n") 19 playerX = Player:getAbsCoorX() 20 playerY = Player:getAbsCoorY() 21 playerZ = Player:getAbsCoorZ() 20 22 21 cloud:skyColor(1, 0, 0, 15) 23 if playerX > -1200 and not cloudActivated then 24 cloud:activate() 25 cloudActivated = true; 26 end 22 27 28 if playerX > -1100 and cloudActivated then 29 cloud:cloudColor(1,0,0,5) 30 cloud:skyColor(0.5,0.5,0.5,5) 31 end 23 32 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) 36 end 24 37 25 io.write("scipt end\n") 38 if playerX > -500 then 39 io.write("script end\n") 40 return true 41 end 26 42 27 return true43 return false 28 44 29 45 end
Note: See TracChangeset
for help on using the changeset viewer.