local BattleHUD = Object:extend() local gui = require "game.modules.gui" function BattleHUD:new(controller) self.controller = controller self:loadAssets() end function BattleHUD:loadAssets() self.hud1 = gui.newBorder(424, 30, 8) self.hud7 = love.graphics.newImage("assets/gui/status_bar.png") self.ring = love.graphics.newImage("assets/gui/ring.png") self.font = love.graphics.newImageFont("assets/gui/hudnumbers.png", " 0123456789:/", 1) self.font2 = love.graphics.newImageFont("assets/gui/hudsmallnumbers.png", " 0123456789", 0) self.controller.assets:addTileset("lifeicon", "assets/sprites/characters/charicons") end function BattleHUD:destroy( ) self.hud1:release( ) end function BattleHUD:update(dt) end function BattleHUD:draw() love.graphics.setFont( self.font ) self:drawFrame() --self.controller:resetFont( ) end function BattleHUD:drawFrame() love.graphics.draw(self.hud1, 424, 20, 0, -1, -1) love.graphics.draw(self.hud7, -8, 215) love.graphics.draw(self.hud7, -8 + 128 + 24, 215) love.graphics.draw(self.hud7, -8 + 256 + 48, 215) --love.graphics.draw(self.hud2, 0, 200) end return BattleHUD