blob: bd1e8de240a073d0d9ceb809c803e80ae3a44f3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
local animationModule = {}
function animationModule.animation(dt)
character.bola.stand.start = character.bola.stand.start + (dt * character.bola.stand.fps)
character.bola.walk.start = character.bola.walk.start + (dt * character.bola.walk.fps)
frames = {
bola = require 'scripts.bola.frames'
}
game = {
animation = function(start, frames)
if math.floor(start) > frames then
start = 1
end
return start
end
}
character.bola.stand.start = game.animation(character.bola.stand.start, frames.bola.stand)
character.bola.walk.start = game.animation(character.bola.walk.start, frames.bola.walk)
transform = {
bola = require 'scripts.bola.transform'
}
end
return animationModule
|