summaryrefslogtreecommitdiffhomepage
path: root/not/Hero.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-07-17 10:39:09 +0200
committerAki <nthirtyone@gmail.com>2017-07-17 10:39:09 +0200
commit57d6d2def0674c135a659740265ec75cdebae6fa (patch)
tree43ee97710e886344c67701bc0d798ee95cbad026 /not/Hero.lua
parentc668460a615bc5f6a3e3f921f570269b1598bfc9 (diff)
downloadroflnauts-57d6d2def0674c135a659740265ec75cdebae6fa.zip
roflnauts-57d6d2def0674c135a659740265ec75cdebae6fa.tar.gz
roflnauts-57d6d2def0674c135a659740265ec75cdebae6fa.tar.bz2
Changed order of properties in Hero's constructor
Diffstat (limited to 'not/Hero.lua')
-rw-r--r--not/Hero.lua13
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")