feat: add badnics icon

This commit is contained in:
Kazhnuz 2020-08-05 11:54:39 +02:00
parent a2d0975cde
commit b530a09119
4 changed files with 6 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 749 B

View file

@ -17,6 +17,9 @@ return {
{"actorsShadow", "assets/sprites/shadow.png"}, {"actorsShadow", "assets/sprites/shadow.png"},
{"emptytile", "assets/backgrounds/tilemask.png"}, {"emptytile", "assets/backgrounds/tilemask.png"},
{"badnicsIcon", "assets/sprites/characters/badnics.png"},
{"e_speedster", "assets/gui/emblem_speedster.png"}, {"e_speedster", "assets/gui/emblem_speedster.png"},
{"e_technic", "assets/gui/emblem_technic.png"}, {"e_technic", "assets/gui/emblem_technic.png"},
{"e_power", "assets/gui/emblem_power.png"}, {"e_power", "assets/gui/emblem_power.png"},

View file

@ -84,9 +84,8 @@ end
-- DRAW FUNCTIONS -- DRAW FUNCTIONS
function VillainFighter:drawIcon(x, y) function VillainFighter:drawIcon(x, y)
love.graphics.setColor(1, 0, 0, 1) self.assets.images["badnicsIcon"]:draw(x-1, y-2)
love.graphics.rectangle("fill", x, y, 16, 16) self.assets.fonts["hudnbrs_small"]:print(self.id, x+10, y+8)
love.graphics.setColor(1, 1, 1, 1)
end end
function VillainFighter:drawHUD(x, y) function VillainFighter:drawHUD(x, y)

View file

@ -14,7 +14,7 @@ function maputils.sortBattlers(a, b)
if (aspeed == bspeed) then if (aspeed == bspeed) then
if (a.fighter.isHero == b.fighter.isHero) then if (a.fighter.isHero == b.fighter.isHero) then
return (a.fighter.id > b.fighter.id) return (a.fighter.id < b.fighter.id)
else else
return a.fighter.isHero return a.fighter.isHero
end end