diff options
author | Jorge Lopez Seijas <jorginho@riseup.net> | 2016-12-18 23:55:14 +0100 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-12-18 20:53:59 -0300 |
commit | 29e052df9144fc9ad53587fda2ee1ca647959c40 (patch) | |
tree | 5bec217381070230f6f75609502918803df5f76e /src/gnu_and_bola_brawlers/keypressed/default.lua | |
parent | 1fec91efeda5f1d3729444be08db31a275e6bc2e (diff) |
Add jump and fall meta sprites, fix some issues, comment update.motion code and add prints for debugging
Diffstat (limited to 'src/gnu_and_bola_brawlers/keypressed/default.lua')
-rw-r--r-- | src/gnu_and_bola_brawlers/keypressed/default.lua | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/gnu_and_bola_brawlers/keypressed/default.lua b/src/gnu_and_bola_brawlers/keypressed/default.lua index b650a5c..c2a779c 100644 --- a/src/gnu_and_bola_brawlers/keypressed/default.lua +++ b/src/gnu_and_bola_brawlers/keypressed/default.lua @@ -9,32 +9,22 @@ keypressed.trigger = function(character, images, metaSprite, controller, key, sc character.actionA = true character.actionDown = false character.actionUp = false - character.jump.currentFrame = 1 - character.jump.fps = 1 end if scancode == controller.left then character.actionLeft = true - character.walk.currentFrame = 1 - character.walk.fps = 9 end if scancode == controller.right then character.actionRight = true - character.walk.currentFrame = 1 - character.walk.fps = 9 end if scancode == controller.up and character.jump.isJumping == false then character.actionUp = true - character.walk.currentFrame = 1 - character.walk.fps = 9 end if scancode == controller.down and character.jump.isJumping == false then character.actionDown = true - character.walk.currentFrame = 1 - character.walk.fps = 9 end return metaSprite |