From df2716b3df7a6d45ae8a241aa57f457f15b120bf Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 1 Aug 2020 20:49:06 +0200 Subject: [PATCH] fix: some various fixes --- sonic-radiance.love/scenes/overworld/charsetmanager.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sonic-radiance.love/scenes/overworld/charsetmanager.lua b/sonic-radiance.love/scenes/overworld/charsetmanager.lua index 194cb62..ffc1b3b 100644 --- a/sonic-radiance.love/scenes/overworld/charsetmanager.lua +++ b/sonic-radiance.love/scenes/overworld/charsetmanager.lua @@ -23,7 +23,6 @@ end function Charset:addChar(ii, jj) local charx, chary = (jj-1)*(24*3), (ii-1)*(32*4) - print(charx, chary) local char = {} for i=1, 4 do animatedDirection = {} @@ -47,9 +46,7 @@ function Charset:getRunningFrame(charID, direction) local char = self.char[charID] local animatedDirection = char[direction] local fakeFrame = math.min(math.floor(self.currentFrame) + 1, 4) - print(fakeFrame) local trueFrame = animation[fakeFrame] - print(trueFrame) return animatedDirection[trueFrame] end @@ -68,7 +65,7 @@ end function Charset:drawStanding(charsetName, charID, direction, x, y) local drawable = self.list[charsetName] local quad = self:getStandingFrame(charID, direction) - love.graphics.draw(drawable, quad, x, y, 0, 1, 1, 4, 16) + love.graphics.draw(drawable, quad, math.floor(x), math.floor(y), 0, 1, 1, 4, 16) end return Charset