fix(actor3D): improve sprite drawing in fake3D worlds

This commit is contained in:
Kazhnuz 2019-07-01 09:57:45 +02:00
parent 9639524abe
commit cf04a16c84

View file

@ -201,7 +201,7 @@ end
function Actor3D:draw()
self:drawStart()
local x, y = math.floor(self.x), math.floor(self.y - self.z)
local x, y = math.floor(self.x), math.floor(self.y - self.z - self.d + (self.h/2))
self:drawSprite(x, y)
self:drawEnd()
end