diff options
-rw-r--r-- | not/Hero.lua | 13 |
1 files 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") |