diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-12-03 18:39:56 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-12-03 18:39:56 -0300 |
commit | ef5bce4721d1307200b1335565303a7832f77535 (patch) | |
tree | f1840a3e31dcf4cda066d5f377edb4ff2af31622 /src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game | |
parent | 1a9e17acb3a65a98305d19363f6b4e7185356c74 (diff) |
Keep the code more KISS - part 2
Diffstat (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game')
-rw-r--r-- | src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/animation.lua | 34 |
1 files changed, 0 insertions, 34 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 deleted file mode 100644 index 4f6688f..0000000 --- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/animation.lua +++ /dev/null @@ -1,34 +0,0 @@ -local animationModule = {} - -function animationModule.animation(dt) - game = {} - game.animation = function(metaSprites) - metaSprites.elapsedTime = metaSprites.elapsedTime + dt - if metaSprites.elapsedTime > (1 / metaSprites.fps) then ---[[ if metaSprites.loop > 0 then - if loopCounter == nil then - metaSprites.currentFrame = 1 - loopCounter = 1 - elseif loopCounter < loop then - metaSprites.currentFrame = 1 - loopCounter = loopCounter + 1 - else - metaSprites.currentFrame = # metaSprites - end - elseif metaSprites.loop == 0 or metaSprites.loop == false then - metaSprites.currentFrame = # metaSprites - elseif metaSprites.loop == -1 or metaSprites.loop == true then - metaSprites.currentFrame = 1 - end -]] - if metaSprites.currentFrame < # metaSprites then - metaSprites.currentFrame = metaSprites.currentFrame + 1 - else - metaSprites.currentFrame = 1 - end - metaSprites.elapsedTime = 0 - end - end -end - -return animationModule |