From 1835b872037f3966dfd03320082240412effb42b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?coadde=20=5BM=C3=A1rcio=20Alexandre=20Silva=20Delgado=5D?= Date: Sat, 10 Dec 2016 00:11:49 -0300 Subject: Remove deprecated variables in animation.lua --- .../scripts/game/animation.lua | 9 ++------- 1 file 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 -- cgit v1.2.3