Commit 21b08734a81ee5d4f84e8c89d23013f0faf44c21

Authored by dg
1 parent fbb7bb1f

scintillate!


git-svn-id: http://svn.net-core.org/repos/t-engine4@2654 51575b47-30f0-44d4-a5cc-537603b46e54
... ... @@ -65,16 +65,16 @@ return {
65 65 },
66 66
67 67 foreground = function(level, dx, dx, nb_keyframes)
68   -do return end
69 68 local tick = core.game.getTime()
70 69 local sr, sg, sb
71   - sr = 2 + math.sin(tick / 2000)
72   - sg = 2 + math.sin(tick / 2700)
73   - sb = 2 + math.sin(tick / 3200)
  70 + sr = 4 + math.sin(tick / 2000) / 2
  71 + sg = 3 + math.sin(tick / 2700)
  72 + sb = 3 + math.sin(tick / 3200)
74 73 local max = math.max(sr, sg, sb)
75 74 sr = sr / max
76 75 sg = sg / max
77 76 sb = sb / max
  77 +
78 78 level.map:setShown(sr, sg, sb, 1)
79 79 level.map:setObscure(sr * 0.6, sg * 0.6, sb * 0.6, 1)
80 80 end,
... ...