fix: add large anim support to actors
This commit is contained in:
parent
cb50b7f256
commit
09e14eae86
1 changed files with 12 additions and 8 deletions
|
@ -29,6 +29,7 @@ function Parent:initCharset()
|
|||
self.cantTurn = false
|
||||
self.isTurning = false
|
||||
self.isFast = false
|
||||
self.largeAnim = false
|
||||
end
|
||||
|
||||
function Parent:setCharset(charset, charId, cantWalk)
|
||||
|
@ -45,7 +46,9 @@ function Parent:drawCharset(charset, charId)
|
|||
love.graphics.setColor(1,1,1,0.5)
|
||||
self.assets.images["shadow"]:draw(x + 1, y + 11)
|
||||
utils.graphics.resetColor()
|
||||
|
||||
if (self.largeAnim) then
|
||||
self.charsetManager:drawLargeAnim(self.charset, self.charId, self.charDir, x, y - z, self.isFast)
|
||||
else
|
||||
if (not self.isTurning) then
|
||||
if (self:isMoving() and (not self.cantWalk)) then
|
||||
self.charsetManager:drawMoving(self.charset, self.charId, self.charDir, x, y - z, self.isFast)
|
||||
|
@ -55,6 +58,7 @@ function Parent:drawCharset(charset, charId)
|
|||
else
|
||||
self.charsetManager:drawTurning(self.charset, self.charId, x, y - z, self.isFast)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function Parent:draw()
|
||||
|
|
Loading…
Reference in a new issue