feat: add badnics icon
This commit is contained in:
parent
a2d0975cde
commit
b530a09119
4 changed files with 6 additions and 4 deletions
BIN
sonic-radiance.love/assets/sprites/characters/badnics.png
Normal file
BIN
sonic-radiance.love/assets/sprites/characters/badnics.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 749 B |
|
@ -17,6 +17,9 @@ return {
|
|||
{"actorsShadow", "assets/sprites/shadow.png"},
|
||||
{"emptytile", "assets/backgrounds/tilemask.png"},
|
||||
|
||||
{"badnicsIcon", "assets/sprites/characters/badnics.png"},
|
||||
|
||||
|
||||
{"e_speedster", "assets/gui/emblem_speedster.png"},
|
||||
{"e_technic", "assets/gui/emblem_technic.png"},
|
||||
{"e_power", "assets/gui/emblem_power.png"},
|
||||
|
|
|
@ -84,9 +84,8 @@ end
|
|||
|
||||
-- DRAW FUNCTIONS
|
||||
function VillainFighter:drawIcon(x, y)
|
||||
love.graphics.setColor(1, 0, 0, 1)
|
||||
love.graphics.rectangle("fill", x, y, 16, 16)
|
||||
love.graphics.setColor(1, 1, 1, 1)
|
||||
self.assets.images["badnicsIcon"]:draw(x-1, y-2)
|
||||
self.assets.fonts["hudnbrs_small"]:print(self.id, x+10, y+8)
|
||||
end
|
||||
|
||||
function VillainFighter:drawHUD(x, y)
|
||||
|
|
|
@ -14,7 +14,7 @@ function maputils.sortBattlers(a, b)
|
|||
|
||||
if (aspeed == bspeed) then
|
||||
if (a.fighter.isHero == b.fighter.isHero) then
|
||||
return (a.fighter.id > b.fighter.id)
|
||||
return (a.fighter.id < b.fighter.id)
|
||||
else
|
||||
return a.fighter.isHero
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue