From d9e257aa1b83f7a9b835cacaa5661464c9b9dad4 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 27 Jul 2019 15:50:59 +0200 Subject: [PATCH] feat: add border into player's HUD --- sonic-radiance.love/game/modules/world/actors/player.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sonic-radiance.love/game/modules/world/actors/player.lua b/sonic-radiance.love/game/modules/world/actors/player.lua index 3371728..8db95ee 100644 --- a/sonic-radiance.love/game/modules/world/actors/player.lua +++ b/sonic-radiance.love/game/modules/world/actors/player.lua @@ -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