scenes/boost: use the border generator
This commit is contained in:
parent
8078aba520
commit
4498c6991c
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
local BattleHUD = Object:extend()
|
local BattleHUD = Object:extend()
|
||||||
|
|
||||||
|
local gui = require "game.modules.gui"
|
||||||
|
|
||||||
function BattleHUD:new(controller)
|
function BattleHUD:new(controller)
|
||||||
self.controller = controller
|
self.controller = controller
|
||||||
self.target = nil
|
self.target = nil
|
||||||
|
@ -15,8 +17,8 @@ function BattleHUD:loadAssets()
|
||||||
self.progressbarImage = love.graphics.newImage("assets/gui/hud/progressbar.png")
|
self.progressbarImage = love.graphics.newImage("assets/gui/hud/progressbar.png")
|
||||||
self.barBack = love.graphics.newQuad(0, 0, 211, 12, 211, 24)
|
self.barBack = love.graphics.newQuad(0, 0, 211, 12, 211, 24)
|
||||||
self.barFore = love.graphics.newQuad(0, 12, 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.hud1 = gui.newBorder(424, 20, 8)
|
||||||
self.hud2 = love.graphics.newImage("assets/gui/boosthud2.png")
|
self.hud2 = gui.newBorder(424, 40, 8)
|
||||||
|
|
||||||
self.ring = love.graphics.newImage("assets/gui/ring.png")
|
self.ring = love.graphics.newImage("assets/gui/ring.png")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue