blob: d260891c0bfda32a9e88731de1497546c9d6e1da (
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
30
31
32
|
update.motion = function(dt)
game.animation(character.bola.stand, dt)
metaSprites.bola.quad = character.bola.stand[character.bola.stand.currentFrame]
if character.bola.jump.higher > 0 and character.bola.actionA == true then
jump(dt)
end
if character.bola.actionLeft == true and character.bola.actionRight == false then
walkLeft(dt)
end
if character.bola.actionRight == true and character.bola.actionLeft == false then
walkRight(dt)
end
if character.bola.actionLeft == true and character.bola.actionRight == true then
stand(dt)
end
if character.bola.actionUp == true and character.bola.actionDown == false then
walkUp(dt)
end
if character.bola.actionDown == true and character.bola.actionUp == false then
walkDown(dt)
end
if character.bola.actionUp == true and character.bola.actionDown == true then
stand(dt)
end
end
|