From 1a4db161e7be614e002c4f8edccbf3acf1edc6aa Mon Sep 17 00:00:00 2001 From: Aki Date: Fri, 22 Sep 2017 15:00:31 +0200 Subject: Changed portrait quad property name in Hero --- not/Hero.lua | 4 ++-- 1 file 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) -- cgit v1.1