blob: fef6cf211042d974e459b2d6a8f6cdf5c8f63441 (
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
33
|
game.keyreleased = function(character, key, scancode)
if scancode == button.a then
character.actionA = false
end
if scancode == button.left then
character.actionLeft = false
end
if scancode == button.right then
character.actionRight = false
end
if scancode == button.up then
character.actionUp = false
end
if scancode == button.down then
character.actionDown = false
end
if scancode == button.b then
character.actionB = false
end
if scancode == button.a then
character.actionA = false
if character.jump.velocity ~= 0 then
character.jump.limitButtonJump = true
end
end
end
|