summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-12-13 13:14:56 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-12-13 13:14:56 -0300
commitb740887cbed3bb9e1a8e139a3bbbb35146749d52 (patch)
tree943bb9db5831b5e80abe7e7b060be16587997fe0 /src
parenta0280d5d15e2b47f72ae628a489349466b8252c3 (diff)
Clean code
Diffstat (limited to 'src')
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua
index 4e9512b..a938243 100644
--- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua
+++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua
@@ -76,7 +76,7 @@ function love.load()
end
function love.keypressed(key, scancode)
- keypressed = function(character, metaSprites, key, scancode)
+ keypressed = function(character, metaSprites, quad, key, scancode)
if scancode == button.quit then
love.event.quit()
end
@@ -85,7 +85,7 @@ function love.keypressed(key, scancode)
character.actionA = true
character.actionDown = false
character.actionUp = false
- quad.bola = require 'jump'
+ quad = require 'jump'
end
if scancode == button.left then
@@ -104,7 +104,7 @@ function love.keypressed(key, scancode)
character.actionDown = true
end
end
- keypressed(character.bola, metaSprites.bola, key, scancode)
+ keypressed(character.bola, metaSprites.bola, quad.bola, key, scancode)
end
function love.keyreleased(key, scancode)