fix(actor3D): improve sprite drawing in fake3D worlds
This commit is contained in:
parent
9639524abe
commit
cf04a16c84
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ end
|
||||||
|
|
||||||
function Actor3D:draw()
|
function Actor3D:draw()
|
||||||
self:drawStart()
|
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:drawSprite(x, y)
|
||||||
self:drawEnd()
|
self:drawEnd()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue