summaryrefslogtreecommitdiff
path: root/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/walk_up.lua
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-12-04 13:37:45 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-12-04 15:35:51 -0300
commit1e0b3afcb1074f7ca6a52ec1c3aefb76b8d2c08d (patch)
tree7968f4d186273fc31a302ecbb26a114de61fd29e /src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/walk_up.lua
parentbe92c47794d735812daca917fb1ff6b0d621f948 (diff)
Keep the code more KISS - part 6
Diffstat (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/walk_up.lua')
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/game/walk_up.lua6
1 files changed, 6 insertions, 0 deletions
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