summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-11-26 13:42:53 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-11-26 13:42:53 -0300
commit2ff89a28521ae979c4d87a6dbc399d8f784b0f95 (patch)
treeb1971423eca626322eb761824807736a280b177f
parent1a7190dcc11c5f48403bf2a9154e6242a482f59c (diff)
Remove stand()
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion/motion.lua22
1 files changed, 7 insertions, 15 deletions
diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion/motion.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion/motion.lua
index c4b9b4c..2da8f69 100644
--- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion/motion.lua
+++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion/motion.lua
@@ -1,17 +1,13 @@
local motionModule = {}
function motionModule.motion(dt)
- if love.keyboard.isScancodeDown(button.a, button.left, button.right) then
- if love.keyboard.isScancodeDown(button.a) then
- jump(dt)
- end
- if love.keyboard.isScancodeDown(button.left) then
- walkLeft(dt)
- elseif love.keyboard.isScancodeDown(button.right) then
- walkRight(dt)
- end
- else
- stand(dt)
+ if love.keyboard.isScancodeDown(button.a) then
+ jump(dt)
+ end
+ if love.keyboard.isScancodeDown(button.left) then
+ walkLeft(dt)
+ elseif love.keyboard.isScancodeDown(button.right) then
+ walkRight(dt)
end
end
@@ -39,8 +35,4 @@ function walkRight(dt)
character.bola.scale.x = 1
end
-function stand(dt)
- quad.bola = character.bola.stand[math.floor(character.bola.stand.start)]
-end
-
return motionModule