From 4c0a1a574e4afe9754bbe7a39669db680af8ffab Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Thu, 24 Nov 2016 15:40:50 -0300 Subject: Add more extra functions --- .../scripts/bola/motion.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game') 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 1aafddd..fcb617c 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 @@ -10,7 +10,13 @@ function motionModule.motion(dt) pause(dt) end elseif love.keyboard.isDown(button.select) then - select(dt) + if arcade == true then + coin(dt) + elseif arcade == false then + if menu == true then + select(dt) + end + end elseif love.keyboard.isDown(button.a) then if menu == true then accept(dt) -- cgit v1.2.3-54-g00ecf