diff options
| author | 1029chris <1029chris@gmail.com> | 2016-11-12 04:54:01 -0800 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2016-11-12 04:54:01 -0800 |
| commit | e7a66c699ad6d140f04f29a835f936d7b64c01d4 (patch) | |
| tree | 1fedf70f26b0d4ed0aad965d634a33e00b9a3a9d /assets.lua | |
| parent | 06153021393c736a3e1a15f388d5d8dca6844748 (diff) | |
Virus 2 now blinks and looks around
lowered volume on gun sounds for second virus fight
fixed some bugs
Diffstat (limited to 'assets.lua')
| -rw-r--r-- | assets.lua | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -256,6 +256,8 @@ function loadAssets(id) v2.c.gunleft = love.graphics.newImage("assets/virus2_hands_left.png") v2.c.cockgun = love.audio.newSource("assets/virus2_shotgun_cock.ogg") v2.c.fire = love.audio.newSource("assets/virus2_shotgun_fire.ogg") + v2.c.fire:setVolume(0.6) + v2.c.cockgun:setVolume(0.7) v2.c.handsOp = 0 v2.c.spreadOp = 0 v2.c.gunidleOp = 0 @@ -324,8 +326,8 @@ function loadAnimation(pic, quad, frames, limit, w, h) end end function playAnimation(ani, loop, x, y, r, s, xo, yo, sp) - if ani == v2.c.idle.mask then - ani.f = v2.c.idle.f + if ani == v2.c.idle then + v2.maskFrame = ani.f end if ani.fs[math.floor(ani.f)] ~= nil then love.graphics.draw(ani.pic, ani.fs[math.floor(ani.f)], x, y, r, s, s, xo, yo) |
