scenes/boost: use the border generator

This commit is contained in:
Kazhnuz 2019-02-04 08:04:40 +01:00
parent 8078aba520
commit 4498c6991c

View file

@ -1,5 +1,7 @@
local BattleHUD = Object:extend()
local gui = require "game.modules.gui"
function BattleHUD:new(controller)
self.controller = controller
self.target = nil
@ -15,8 +17,8 @@ function BattleHUD:loadAssets()
self.progressbarImage = love.graphics.newImage("assets/gui/hud/progressbar.png")
self.barBack = love.graphics.newQuad(0, 0, 211, 12, 211, 24)
self.barFore = love.graphics.newQuad(0, 12, 211, 12, 211, 24)
self.hud1 = love.graphics.newImage("assets/gui/boosthud1.png")
self.hud2 = love.graphics.newImage("assets/gui/boosthud2.png")
self.hud1 = gui.newBorder(424, 20, 8)
self.hud2 = gui.newBorder(424, 40, 8)
self.ring = love.graphics.newImage("assets/gui/ring.png")