summaryrefslogtreecommitdiff
path: root/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/animation.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/animation.lua')
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/animation.lua38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/animation.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/animation.lua
deleted file mode 100644
index ce93300..0000000
--- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/animation.lua
+++ /dev/null
@@ -1,38 +0,0 @@
-local animationModule = {}
-
-function animationModule.animation(dt)
- frames = {
- bola = require 'scripts.bola.frames'
- }
-
- game = {
- animation = function(start, fps, frames, loop)
- start = start + (fps * dt)
- if math.floor(start) > frames then
- if loop > 0 then
- if loopCounter == nil then
- start = 1
- loopCounter = 1
- elseif loopCounter < loop then
- start = 1
- loopCounter = loopCounter + 1
- else
- start = frames
- end
- elseif loop == 0 or loop == false then
- start = frames
- elseif loop == -1 or loop == true then
- start = 1
- end
- end
- return start
- end
- }
-
- character.bola.stand.start = game.animation(character.bola.stand.start, character.bola.stand.fps, frames.bola.stand, -1)
- quad = {
- bola = character.bola.stand[math.floor(character.bola.stand.start)]
- }
-end
-
-return animationModule