feat: add border into player's HUD

This commit is contained in:
Kazhnuz 2019-07-27 15:50:59 +02:00
parent 073ef68ef8
commit d9e257aa1b

View file

@ -8,6 +8,8 @@ function Player:new(world, x, y, z, id)
self:setSprite("sonic", 8, 12)
self:cloneSprite()
self.guiborder = game.gui.newBorder(424, 20, 6)
end
function Player:updateStart(dt)
@ -74,6 +76,7 @@ end
function Player:drawHUD(id)
love.graphics.print(id .. " test", 4, 4)
love.graphics.draw(self.guiborder, 424, 20, 0, -1, -1)
end
return Player