assets: add hud elements

This commit is contained in:
Kazhnuz 2019-02-04 08:01:23 +01:00
parent d308e42560
commit 8078aba520
8 changed files with 6 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 468 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 649 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 790 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 521 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 B

View file

@ -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