diff options
| author | 1029chris <1029chris@gmail.com> | 2016-04-23 15:53:49 -0700 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2016-04-23 15:53:49 -0700 |
| commit | f032ba786b688a16d9eb502b9c8896655076b207 (patch) | |
| tree | 21d65aca6dcdc8ba3e1a07ddb28d0b5ddb51c9de /virus1.lua | |
| parent | 8e5d093aaa00f240bbd9bc7ed42c2910d6021070 (diff) | |
Added sound effects to antivirus transformation
Diffstat (limited to 'virus1.lua')
| -rw-r--r-- | virus1.lua | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |
