aboutsummaryrefslogtreecommitdiff
path: root/desktop.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-03-20 17:40:45 -0700
committer1029chris <1029chris@gmail.com>2016-03-20 17:40:45 -0700
commit42706781be96741a0b5fe1408d3aeeb08948cd86 (patch)
tree824a03eb990279fee204cacdfb82ff6bd0ca95b1 /desktop.lua
parent1ee2dc33e6c18e3e88f5c6d4e09ff1ac9ef0940e (diff)
Made explosion better
Diffstat (limited to 'desktop.lua')
-rw-r--r--desktop.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop.lua b/desktop.lua
index fadd9f6..af4b3e4 100644
--- a/desktop.lua
+++ b/desktop.lua
@@ -26,8 +26,12 @@ function drawDesktop()
end
end
if expl.frame <= 90 then
+ love.graphics.setColor(255,255,255, expl.opa)
love.graphics.draw(expl[expl.frame], win[2].x-750, win[2].y-500, 0, 7, 7)
expl.frame = expl.frame + 1
+ if expl.frame >= 80 then
+ expl.opa = expl.opa - 25.5
+ end
end
end
for i=1,6 do