diff options
| author | 1029chris <1029chris@gmail.com> | 2016-08-04 17:31:55 -0700 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2016-08-04 17:31:55 -0700 |
| commit | 33cce45e067eb3d716ad33b5752a838319125855 (patch) | |
| tree | 59d9fc8561c8ead0b9b8b3d5c1e6a81625ad0fed /assets.lua | |
| parent | cb5ee7e47850599e51da852c14698fb6135ba4d7 (diff) | |
Added drawVirus2 function
changed playAnimation to follow frames for mask
Added virus2 x,y,r,s
Diffstat (limited to 'assets.lua')
| -rw-r--r-- | assets.lua | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -296,6 +296,9 @@ 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 + 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) end |
