diff options
| author | 1029chris <1029chris@gmail.com> | 2016-06-10 13:10:41 -0700 |
|---|---|---|
| committer | 1029chris <1029chris@gmail.com> | 2016-06-10 13:10:41 -0700 |
| commit | c805934fb03808baeb688d3f629701b171b38873 (patch) | |
| tree | 969f81ed85a1e1c21a2686ab5a488918b9dee420 /assets.lua | |
| parent | 25774367a92a93bb7d4e810b3ce4e54f93a155f9 (diff) | |
Made window open animation more smooth
Adjusted animation speed setting
Diffstat (limited to 'assets.lua')
| -rw-r--r-- | assets.lua | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -261,11 +261,10 @@ function loadAnimation(pic, quad, frames, limit, w, h) end function playAnimation(ani, loop, x, y, r, s, xo, yo, sp) love.graphics.draw(ani.pic, ani.fs[math.floor(ani.f)], x, y, r, s, s, xo, yo) - speed = (60/love.timer.getFPS())*sp if loop == true and #ani.fs <= ani.f then ani.f = 1 elseif loop == false and ani.f >= #ani.fs then else - ani.f = ani.f + speed + ani.f = ani.f + sys.s*sp end end |
