summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-12-10 00:11:49 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-12-10 00:11:49 -0300
commit1835b872037f3966dfd03320082240412effb42b (patch)
tree786ee862b1692a5a39751696ce0d1b567609bb29
parent03d9f891ccb2564d1c7bcfd4d2b8125ae9eb2671 (diff)
Remove deprecated variables in animation.lua
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/animation.lua9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/animation.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/animation.lua
index e0e98a0..655d1a4 100644
--- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/animation.lua
+++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/animation.lua
@@ -1,17 +1,12 @@
game.animation = function(character, dt)
--- frameRestart = 0
local frameStart = function()
character.currentFrame = 1
end
local frameCounter = function()
---[[ if character.restart == true then
- character.currentFrame = character.currentFrame + 1 - frameRestart
- else]]
- character.currentFrame = character.currentFrame + 1
--- end
+ character.currentFrame = character.currentFrame + 1
end
local animationStart = function()
- character.elapsedTime = character.elapsedTime + dt
+ character.elapsedTime = character.elapsedTime + dt
end
local animationCounter = function(value)
if character.elapsedTime >= (1 / character.fps) then