From cb50b7f256e2e1516e07120174c0e23360ac73c2 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 10 Apr 2021 14:26:10 +0200 Subject: [PATCH] fix: fix mirroring --- sonic-radiance.love/scenes/overworld/charsetmanager.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonic-radiance.love/scenes/overworld/charsetmanager.lua b/sonic-radiance.love/scenes/overworld/charsetmanager.lua index 53a843d..1fdc205 100644 --- a/sonic-radiance.love/scenes/overworld/charsetmanager.lua +++ b/sonic-radiance.love/scenes/overworld/charsetmanager.lua @@ -83,7 +83,7 @@ function Charset:draw(charsetName, charID, direction, frame, x, y, isMirrored) local drawable = self:getTexture(charsetName) local quad = self:getQuad(frame, charID, direction) local sx = 1 - if (isMirrored == false) then + if (isMirrored == true) then sx = -1 end love.graphics.draw(drawable, quad, math.floor(x) + 8, math.floor(y), 0, sx, 1, 19, 32) @@ -106,7 +106,7 @@ function Charset:drawLargeAnim(charsetName, charID, direction, x, y, isFast) frame = animation[i] end end - if (direction == "right") then + if (direction == "left") then isMirrored = true end self:drawTurning(charsetName, charID, x, y, isFast, frame, isMirrored)