summaryrefslogtreecommitdiff
path: root/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua')
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua
index ee7cfd5..89b9b2e 100644
--- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua
+++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua
@@ -1,7 +1,15 @@
local motionModule = {}
function motionModule.motion(dt)
- if love.keyboard.isDown(button.left, button.right, button.up, button.down) then
+ if love.keyboard.isDown(button.start) then
+ walkDown(dt)
+ elseif love.keyboard.isDown(button.select) then
+ walkDown(dt)
+ elseif love.keyboard.isDown(button.a) then
+ walkDown(dt)
+ elseif love.keyboard.isDown(button.b) then
+ walkDown(dt)
+ elseif love.keyboard.isDown(button.left, button.right, button.up, button.down) then
if love.keyboard.isDown(button.left) then
walkLeft(dt)
elseif love.keyboard.isScancodeDown(button.right) then