From 1e0b3afcb1074f7ca6a52ec1c3aefb76b8d2c08d Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sun, 4 Dec 2016 13:37:45 -0300 Subject: Keep the code more KISS - part 6 --- .../scripts/game/walk_up.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/walk_up.lua (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/walk_up.lua') diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/walk_up.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/walk_up.lua new file mode 100644 index 0000000..f85913c --- /dev/null +++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/walk_up.lua @@ -0,0 +1,6 @@ +game.walkUp = function(metaSprites, character, dt) + character.position.y = character.position.y - (character.velocity * dt) + character.jump.ground = character.position.y + game.animation(character.walk, dt) + metaSprites.quad = character.walk[character.walk.currentFrame] +end -- cgit v1.2.3-54-g00ecf