diff options
author | Jorge Lopez Seijas <jorginho@riseup.net> | 2016-12-17 21:57:32 +0100 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-12-18 20:53:59 -0300 |
commit | 34204bfa1fa66f99b7d3008edf48f77d00c902b9 (patch) | |
tree | edf683b9c79fba0702c353fdebacaaa4f9d9930c /src/gnu_and_bola_brawlers/keypressed/default.lua | |
parent | 665279e7da942568fb7883a6d72cff219c6607f9 (diff) |
Comment some files and fix minor bug in load/default.lua
Diffstat (limited to 'src/gnu_and_bola_brawlers/keypressed/default.lua')
-rw-r--r-- | src/gnu_and_bola_brawlers/keypressed/default.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gnu_and_bola_brawlers/keypressed/default.lua b/src/gnu_and_bola_brawlers/keypressed/default.lua index 26dea2f..07bb9bf 100644 --- a/src/gnu_and_bola_brawlers/keypressed/default.lua +++ b/src/gnu_and_bola_brawlers/keypressed/default.lua @@ -9,7 +9,7 @@ keypressed.trigger = function(character, images, metaSprite, controller, key, sc character.actionA = true character.actionDown = false character.actionUp = false - metaSprite = require 'meta_sprites/bola/jump' + metaSprite = character.jump end if scancode == controller.left then @@ -27,6 +27,8 @@ keypressed.trigger = function(character, images, metaSprite, controller, key, sc if scancode == controller.down and character.jump.isJumping == false then character.actionDown = true end + + return metaSprite end return keypressed |