battlesystem: initial draft of a statusbar system
This commit is contained in:
parent
d7136cdb6a
commit
641e344663
1 changed files with 12 additions and 0 deletions
|
@ -138,4 +138,16 @@ function Character:getBackSignal()
|
||||||
self:setAnimation("walk")
|
self:setAnimation("walk")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Character:drawStatus(frame, x, y)
|
||||||
|
love.graphics.draw(frame, x, y)
|
||||||
|
local y1 = y + 8
|
||||||
|
local x1 = x + 16
|
||||||
|
local x2 = x1 + 120
|
||||||
|
love.graphics.setColor(.05, .8, .05, 1)
|
||||||
|
for i=0, 3 do
|
||||||
|
love.graphics.line(x1-i, y1+i, x2-i, y1+i)
|
||||||
|
end
|
||||||
|
utils.graphics.resetColor()
|
||||||
|
end
|
||||||
|
|
||||||
return Character
|
return Character
|
||||||
|
|
Loading…
Reference in a new issue