diff options
-rw-r--r-- | src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/animation.lua | 9 |
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 |