aboutsummaryrefslogtreecommitdiff
path: root/desktop.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-03-23 19:36:46 -0700
committer1029chris <1029chris@gmail.com>2016-03-23 19:36:46 -0700
commit59915e42872e72d6460c4589adbf822420e52bde (patch)
treec1ef79d43aa45f1dc120cb9f8c5213214081dbd8 /desktop.lua
parent42706781be96741a0b5fe1408d3aeeb08948cd86 (diff)
Changed explosion to sprite map, added idle/monitor spin for virus1
Diffstat (limited to 'desktop.lua')
-rw-r--r--desktop.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/desktop.lua b/desktop.lua
index af4b3e4..35373ba 100644
--- a/desktop.lua
+++ b/desktop.lua
@@ -25,13 +25,10 @@ function drawDesktop()
expl.deb[i].r = expl.deb[i].r + expl.deb[i].rm
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)
+ if expl.frame <= 89 then
+ love.graphics.setColor(255,255,255)
+ love.graphics.draw(expl.pic, expl.frames[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