feat: add border into player's HUD
This commit is contained in:
parent
073ef68ef8
commit
d9e257aa1b
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue