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 | 16 |
1 files changed, 12 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 caf602b..d153207 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 @@ -21,7 +21,9 @@ function left(dt) character.bola.position.x = character.bola.position.x - (character.bola.speed * dt) - 3 end end - quad = character.bola.walk[math.floor(character.bola.walk.start)] + quad = { + bola = character.bola.walk[math.floor(character.bola.walk.start)] + } character.bola.scale.x = -1 end @@ -34,19 +36,25 @@ function right(dt) character.bola.position.x = character.bola.position.x + (character.bola.speed * dt) + 3 end end - quad = character.bola.walk[math.floor(character.bola.walk.start)] + quad = { + bola = character.bola.walk[math.floor(character.bola.walk.start)] + } character.bola.scale.x = 1 end function down(dt) character.bola.acceleration = 0 transform.bola.origin.y = character.bola.origin.y - character.bola.origin.y - quad = character.bola.crouch[1] + quad = { + bola = character.bola.crouch[1] + } end function stand(dt) character.bola.acceleration = 0 - quad = character.bola.stand[math.floor(character.bola.stand.start)] + quad = { + bola = character.bola.stand[math.floor(character.bola.stand.start)] + } end return motionModule |