From 57d6d2def0674c135a659740265ec75cdebae6fa Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 17 Jul 2017 10:39:09 +0200 Subject: Changed order of properties in Hero's constructor --- not/Hero.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/not/Hero.lua b/not/Hero.lua index 6eb3978..d92d003 100644 --- a/not/Hero.lua +++ b/not/Hero.lua @@ -37,17 +37,18 @@ function Hero:new (name, x, y, world) -- General self.world = world self.name = name - self.lives = 3 self.angle = 0 self.facing = 1 + -- Status self.combo = 0 - self.punchCooldown = 0 - self.spawntimer = 2 - self.isAlive = true + self.lives = 3 self.inAir = true - self.isJumping = false - self.isWalking = false self.salto = false + self.isAlive = true + self.isWalking = false + self.isJumping = false + self.spawntimer = 2 + self.punchCooldown = 0 self:setAnimationsList(require("config.animations.hero")) -- Post-creation self:createEffect("respawn") -- cgit v1.1