fix(gui): fix bad drawing of ennemies hp bar

This commit is contained in:
Kazhnuz 2019-08-16 22:58:12 +02:00
parent 8048210bac
commit 618c42b3b6

View file

@ -47,7 +47,7 @@ function gui.drawBar(x, y, width, height)
love.graphics.draw(barborder, x, y) love.graphics.draw(barborder, x, y)
local barwidth = math.max(width-14, 0) local barwidth = math.max(width-14, 0)
love.graphics.rectangle("fill", x+7, y, barwidth, height) love.graphics.rectangle("fill", x+7, y, barwidth, height)
love.graphics.draw(barborder, x+width-7, y, 0, -1, -1, 7, 7) love.graphics.draw(barborder, x+barwidth+7, y, 0, -1, -1, 7, 7)
core.screen:resetScissor( ) core.screen:resetScissor( )
end end
end end