assets: add hud elements
BIN
sonic-boost.love/assets/gui/hud/bonus.png
Normal file
After Width: | Height: | Size: 468 B |
BIN
sonic-boost.love/assets/gui/hud/numbers.png
Normal file
After Width: | Height: | Size: 649 B |
BIN
sonic-boost.love/assets/gui/hud/progressbar.png
Normal file
After Width: | Height: | Size: 790 B |
BIN
sonic-boost.love/assets/gui/hud/ring.png
Normal file
After Width: | Height: | Size: 348 B |
BIN
sonic-boost.love/assets/gui/hud/score.png
Normal file
After Width: | Height: | Size: 347 B |
BIN
sonic-boost.love/assets/gui/hud/smallnumbers.png
Normal file
After Width: | Height: | Size: 521 B |
BIN
sonic-boost.love/assets/gui/hud/time.png
Normal file
After Width: | Height: | Size: 301 B |
|
@ -12,7 +12,7 @@ function BattleHUD:setTarget(target)
|
|||
end
|
||||
|
||||
function BattleHUD:loadAssets()
|
||||
self.progressbarImage = love.graphics.newImage("assets/gui/progressbar.png")
|
||||
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")
|
||||
|
@ -22,12 +22,12 @@ function BattleHUD:loadAssets()
|
|||
|
||||
|
||||
|
||||
self.font = love.graphics.newImageFont("assets/gui/hudnumbers.png", " 0123456789:/", 1)
|
||||
self.font2 = love.graphics.newImageFont("assets/gui/hudsmallnumbers.png", " 0123456789", 0)
|
||||
self.font = love.graphics.newImageFont("assets/gui/hud/numbers.png", " 0123456789:/", 1)
|
||||
self.font2 = love.graphics.newImageFont("assets/gui/hud/smallnumbers.png", " 0123456789", 0)
|
||||
|
||||
self.time = love.graphics.newImage("assets/gui/hudtime.png")
|
||||
self.score = love.graphics.newImage("assets/gui/hudscore.png")
|
||||
self.bonus = love.graphics.newImage("assets/gui/hudbonus.png")
|
||||
self.time = love.graphics.newImage("assets/gui/hud/time.png")
|
||||
self.score = love.graphics.newImage("assets/gui/hud/score.png")
|
||||
self.bonus = love.graphics.newImage("assets/gui/hud/bonus.png")
|
||||
|
||||
self.controller.assets:addTileset("lifeicon", "assets/sprites/characters/charicons")
|
||||
end
|
||||
|
|