aboutsummaryrefslogtreecommitdiff
path: root/virus1.lua
diff options
context:
space:
mode:
author1029chris <1029chris@gmail.com>2016-04-23 15:53:49 -0700
committer1029chris <1029chris@gmail.com>2016-04-23 15:53:49 -0700
commitf032ba786b688a16d9eb502b9c8896655076b207 (patch)
tree21d65aca6dcdc8ba3e1a07ddb28d0b5ddb51c9de /virus1.lua
parent8e5d093aaa00f240bbd9bc7ed42c2910d6021070 (diff)
Added sound effects to antivirus transformation
Diffstat (limited to 'virus1.lua')
-rw-r--r--virus1.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/virus1.lua b/virus1.lua
index 05c58a8..83bf1ce 100644
--- a/virus1.lua
+++ b/virus1.lua
@@ -53,10 +53,14 @@ function drawVirusFight1()
love.graphics.draw(antivirus.left, win[4].x+138/2-av.wings, win[4].y, 0, win[4].s)
love.graphics.draw(antivirus.right, win[4].x+138/2+97+av.wings, win[4].y, 0, win[4].s)
elseif av.wings ~= 138/2 then
+ antivirus.open:play()
av.wings = av.wings + 0.5
love.graphics.draw(antivirus.left, win[4].x+138/2-av.wings+math.random(-1,1), win[4].y+math.random(-1,1), 0, win[4].s)
love.graphics.draw(antivirus.right, win[4].x+138/2+97+av.wings+math.random(-1,1), win[4].y+math.random(-1,1), 0, win[4].s)
end
+ if av.gun == 10 then
+ antivirus.opengun:play()
+ end
if av.wings == 138/2 and av.gun ~= 98 then
av.gun = av.gun + 1
end