diff options
Diffstat (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua')
-rw-r--r-- | src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua index d153207..08cc791 100644 --- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua +++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua @@ -6,7 +6,7 @@ function motionModule.motion(dt) elseif love.keyboard.isDown(button.right) then right(dt) elseif love.keyboard.isDown(button.down) then - down(dt) + crouch(dt) else stand(dt) end @@ -42,11 +42,11 @@ function right(dt) character.bola.scale.x = 1 end -function down(dt) +function crouch(dt) character.bola.acceleration = 0 - transform.bola.origin.y = character.bola.origin.y - character.bola.origin.y + transform.bola.origin.y = character.bola.origin.crouch.y[math.floor(character.bola.crouch.start)] quad = { - bola = character.bola.crouch[1] + bola = character.bola.crouch[math.floor(character.bola.crouch.start)] } end |