diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-12-21 09:43:51 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-12-21 15:24:18 -0300 |
commit | 50a0d4e2d625c346c4437fa88eb42316f7b2c8b9 (patch) | |
tree | be175155add73abd0f206f94cb69b05673a95d58 | |
parent | 1b078dd024e556c74eba61aee51b1c4940ca3d43 (diff) |
Fix jumping/falling animation
-rw-r--r-- | src/gnu_and_bola_brawlers/meta_sprites/bola/fall.lua | 4 | ||||
-rw-r--r-- | src/gnu_and_bola_brawlers/meta_sprites/bola/jump.lua | 10 |
2 files changed, 6 insertions, 8 deletions
diff --git a/src/gnu_and_bola_brawlers/meta_sprites/bola/fall.lua b/src/gnu_and_bola_brawlers/meta_sprites/bola/fall.lua index da1e404..8ac185d 100644 --- a/src/gnu_and_bola_brawlers/meta_sprites/bola/fall.lua +++ b/src/gnu_and_bola_brawlers/meta_sprites/bola/fall.lua @@ -1,7 +1,7 @@ --[[ Collection of sprites and parameters to perform the fall movement ]]-- return { - love.graphics.newQuad(images.bola.x * 6, images.bola.y * 2, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 7, images.bola.y * 2, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), love.graphics.newQuad(images.bola.x * 7, images.bola.y * 2, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), love.graphics.newQuad(images.bola.x * 8, images.bola.y * 2, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), love.graphics.newQuad(images.bola.x * 9, images.bola.y * 2, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), @@ -9,7 +9,7 @@ return { love.graphics.newQuad(images.bola.x * 6, images.bola.y * 3, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), currentFrame = 1, elapsedTime = 0, - fps = 9, + fps = 6, height = -250, velocity = 0, ground = windowProfile.mode.height / 2, diff --git a/src/gnu_and_bola_brawlers/meta_sprites/bola/jump.lua b/src/gnu_and_bola_brawlers/meta_sprites/bola/jump.lua index efa1962..e2a031e 100644 --- a/src/gnu_and_bola_brawlers/meta_sprites/bola/jump.lua +++ b/src/gnu_and_bola_brawlers/meta_sprites/bola/jump.lua @@ -1,15 +1,13 @@ --[[ Collection of sprites and parameters to perform the jump movement ]]-- return { - love.graphics.newQuad(images.bola.x * 5, images.bola.y * 1, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), - love.graphics.newQuad(images.bola.x * 6, images.bola.y * 1, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), - love.graphics.newQuad(images.bola.x * 7, images.bola.y * 1, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), - love.graphics.newQuad(images.bola.x * 8, images.bola.y * 1, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), - love.graphics.newQuad(images.bola.x * 9, images.bola.y * 1, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), love.graphics.newQuad(images.bola.x * 5, images.bola.y * 2, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 6, images.bola.y * 2, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 7, images.bola.y * 2, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 7, images.bola.y * 2, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), currentFrame = 1, elapsedTime = 0, - fps = 9, + fps = 6, height = -250, velocity = 0, ground = windowProfile.mode.height / 2, |