diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-11-24 02:17:18 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-11-24 02:42:09 -0300 |
commit | ec2c885fe7eae2408c63169b97894927a67014c4 (patch) | |
tree | 5214246bc0fa809747f42a57cc5a559d7b3f54d4 /src | |
parent | 99810cd6ceb597d6fc9e9ebfc031013fac1b6ac7 (diff) |
Rename quad to quad.bola
Diffstat (limited to 'src')
-rw-r--r-- | src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua | 2 | ||||
-rw-r--r-- | src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/motion.lua | 16 |
2 files changed, 13 insertions, 5 deletions
diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua index f58c4d3..393e447 100644 --- a/src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua +++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua @@ -56,7 +56,7 @@ function love.draw() love.graphics.print('FPS: ' .. love.timer.getFPS(), 0, 0) love.graphics.draw( metaSprites.bola.image, - quad, + quad.bola, character.bola.position.x, character.bola.position.y, character.bola.orientation, 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 |