summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-09-22 15:00:31 +0200
committerAki <nthirtyone@gmail.com>2017-09-22 15:00:31 +0200
commit1a4db161e7be614e002c4f8edccbf3acf1edc6aa (patch)
treee377888dfd5b98808b8c76eaefd0c85677f26222
parentdd9245c6b22f756bc439960afabf5793634c45f5 (diff)
downloadroflnauts-1a4db161e7be614e002c4f8edccbf3acf1edc6aa.zip
roflnauts-1a4db161e7be614e002c4f8edccbf3acf1edc6aa.tar.gz
roflnauts-1a4db161e7be614e002c4f8edccbf3acf1edc6aa.tar.bz2
Changed portrait quad property name in Hero
-rw-r--r--not/Hero.lua4
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)