diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-12-04 11:43:03 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-12-04 11:43:03 -0300 |
commit | be92c47794d735812daca917fb1ff6b0d621f948 (patch) | |
tree | 53c3d1bfbc4e35341abbf19f92dbf45c763d2012 /src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/update/motion/walk_down.lua | |
parent | e474d4bf0565a46e59cad616f2cf1be8b1536ed2 (diff) |
Keep the code more KISS - part 5
Diffstat (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/update/motion/walk_down.lua')
-rw-r--r-- | src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/update/motion/walk_down.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/update/motion/walk_down.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/update/motion/walk_down.lua new file mode 100644 index 0000000..ba393c7 --- /dev/null +++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/update/motion/walk_down.lua @@ -0,0 +1,6 @@ +function walkDown(dt) + character.bola.position.y = character.bola.position.y + (character.bola.velocity * dt) + character.bola.jump.ground = character.bola.position.y + game.animation(character.bola.walk, dt) + metaSprites.bola.quad = character.bola.walk[character.bola.walk.currentFrame] +end |