diff options
Diffstat (limited to 'not')
-rw-r--r-- | not/Hero.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/not/Hero.lua b/not/Hero.lua index a735107..2549b18 100644 --- a/not/Hero.lua +++ b/not/Hero.lua @@ -46,7 +46,7 @@ function Hero:new (config, x, y, world) self.isJumping = false self.spawntimer = 2 self.punchCooldown = 0 - self.portrait = love.graphics.newQuad((config.portrait-1)*28, 0, 28, 27, 1176, 27) + self.portraitQuad = love.graphics.newQuad((config.portrait-1)*28, 0, 28, 27, 1176, 27) self:setAnimationsList(require("config.animations.hero")) -- Post-creation self:createEffect("respawn") @@ -185,7 +185,7 @@ function Hero:drawHUD (x,y,scale,elevation) if self.isAlive then love.graphics.setColor(255,255,255,255) love.graphics.draw(self.IMAGE_FRAME, self.QUAD_FRAME, (x)*scale, (y)*scale, 0, scale, scale) - love.graphics.draw(self.IMAGE_PORTRAITS, self.portrait, (x+2)*scale, (y+3)*scale, 0, scale, scale) + love.graphics.draw(self.IMAGE_PORTRAITS, self.portraitQuad, (x+2)*scale, (y+3)*scale, 0, scale, scale) local dy = 30 * elevation love.graphics.setFont(Font) love.graphics.print((self.combo).."%",(x+2)*scale,(y-3+dy)*scale,0,scale,scale) |