diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-12-15 00:54:03 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-12-15 00:54:03 -0300 |
commit | 3657811d78bd811acf25668fe3224806d9b1d6d8 (patch) | |
tree | 1be7f81255a2e0418252b77ff17bb3070f465bdc | |
parent | 2ad018f3f77e7a0ddde9dfa3aa92bc151e9ea9a5 (diff) |
Rename "meta_sprites" to "images"
-rw-r--r-- | src/gnu_and_bola_brawlers/jump.lua | 2 | ||||
-rw-r--r-- | src/gnu_and_bola_brawlers/load/character.lua | 4 | ||||
-rw-r--r-- | src/gnu_and_bola_brawlers/load/images.lua | 7 | ||||
-rw-r--r-- | src/gnu_and_bola_brawlers/load/initialize.lua | 2 | ||||
-rw-r--r-- | src/gnu_and_bola_brawlers/load/meta_sprites.lua | 7 | ||||
-rw-r--r-- | src/gnu_and_bola_brawlers/main.lua | 22 | ||||
-rw-r--r-- | src/gnu_and_bola_brawlers/stand.lua | 134 | ||||
-rw-r--r-- | src/gnu_and_bola_brawlers/walk.lua | 16 |
8 files changed, 97 insertions, 97 deletions
diff --git a/src/gnu_and_bola_brawlers/jump.lua b/src/gnu_and_bola_brawlers/jump.lua index 4035b26..ad98578 100644 --- a/src/gnu_and_bola_brawlers/jump.lua +++ b/src/gnu_and_bola_brawlers/jump.lua @@ -1,5 +1,5 @@ return { - love.graphics.newQuad(metaSprites.bola.x * 5, metaSprites.bola.y * 2, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), + love.graphics.newQuad(images.bola.x * 5, images.bola.y * 2, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), currentFrame = 1, elapsedTime = 0, fps = 9, diff --git a/src/gnu_and_bola_brawlers/load/character.lua b/src/gnu_and_bola_brawlers/load/character.lua index 6ee15c7..a582e62 100644 --- a/src/gnu_and_bola_brawlers/load/character.lua +++ b/src/gnu_and_bola_brawlers/load/character.lua @@ -13,8 +13,8 @@ return { y = 1, }, origin = { - x = metaSprites.bola.x / 2, - y = metaSprites.bola.y / 2, + x = images.bola.x / 2, + y = images.bola.y / 2, }, stand = require 'stand', walk = require 'walk', diff --git a/src/gnu_and_bola_brawlers/load/images.lua b/src/gnu_and_bola_brawlers/load/images.lua new file mode 100644 index 0000000..c7d30ff --- /dev/null +++ b/src/gnu_and_bola_brawlers/load/images.lua @@ -0,0 +1,7 @@ +return { + bola = { + love.graphics.newImage('/multimedia/ppu_rp2c0x/meta_sprites/bola/default_sheet_color0_alpha.png'), + x = 24, + y = 32, + } +} diff --git a/src/gnu_and_bola_brawlers/load/initialize.lua b/src/gnu_and_bola_brawlers/load/initialize.lua index c4e62ae..545b6cf 100644 --- a/src/gnu_and_bola_brawlers/load/initialize.lua +++ b/src/gnu_and_bola_brawlers/load/initialize.lua @@ -15,7 +15,7 @@ load.initialize = function() love.window.setTitle(windowProfile.title) playerController = require 'load/player_controller_configuration' - metaSprites = require 'load/meta_sprites' + images = require 'load/images' character = require 'load/character' sprite = { diff --git a/src/gnu_and_bola_brawlers/load/meta_sprites.lua b/src/gnu_and_bola_brawlers/load/meta_sprites.lua deleted file mode 100644 index e8cba17..0000000 --- a/src/gnu_and_bola_brawlers/load/meta_sprites.lua +++ /dev/null @@ -1,7 +0,0 @@ -return { - bola = { - image = love.graphics.newImage('/multimedia/ppu_rp2c0x/meta_sprites/bola/default_sheet_color0_alpha.png'), - x = 24, - y = 32, - } -} diff --git a/src/gnu_and_bola_brawlers/main.lua b/src/gnu_and_bola_brawlers/main.lua index 78a4e98..3677fd4 100644 --- a/src/gnu_and_bola_brawlers/main.lua +++ b/src/gnu_and_bola_brawlers/main.lua @@ -4,7 +4,7 @@ function love.load() end function love.keypressed(key, scancode) - keypressed = function(character, metaSprites, sprite, controller, key, scancode) + keypressed = function(character, images, sprite, controller, key, scancode) if scancode == playerController.quit then love.event.quit() end @@ -32,7 +32,7 @@ function love.keypressed(key, scancode) character.actionDown = true end end - keypressed(character.bola, metaSprites.bola, sprite.bola, playerController.player1, key, scancode) + keypressed(character.bola, images.bola, sprite.bola, playerController.player1, key, scancode) end function love.keyreleased(key, scancode) @@ -75,7 +75,7 @@ end function love.update(dt) nextTime = nextTime + (1 / fps) - animation = function(sprite, metaSprites, dt) + animation = function(sprite, images, dt) --Increase actual elapsed time with new dt sprite.elapsedTime = sprite.elapsedTime + dt --AnimationStart @@ -89,11 +89,11 @@ function love.update(dt) end end - metaSprites.quad = sprite[sprite.currentFrame] --Update with new fame + images.quad = sprite[sprite.currentFrame] --Update with new fame end - animation(sprite.bola, metaSprites.bola, dt) + animation(sprite.bola, images.bola, dt) - motion = function(character, metaSprites, sprite, dt) + motion = function(character, images, sprite, dt) if character.jump.higher > 0 and character.actionA == true then if character.jump.limitButtonJump == false then character.jump.higher = character.jump.higher - dt @@ -135,7 +135,7 @@ function love.update(dt) return sprite end - sprite.bola = motion(character.bola, metaSprites.bola, sprite.bola, dt) + sprite.bola = motion(character.bola, images.bola, sprite.bola, dt) gravity = function(character, dt) if character.jump.velocity ~= 0 then @@ -190,10 +190,10 @@ function love.draw() love.graphics.print('FPS: ' .. love.timer.getFPS(), 0, 0) - draw = function(metaSprites, character) + draw = function(images, character) love.graphics.draw( - metaSprites.image, - metaSprites.quad, + images[1], + images.quad, character.position.x, character.position.y, character.orientation, @@ -203,5 +203,5 @@ function love.draw() character.origin.y ) end - draw(metaSprites.bola, character.bola) + draw(images.bola, character.bola) end diff --git a/src/gnu_and_bola_brawlers/stand.lua b/src/gnu_and_bola_brawlers/stand.lua index d71d935..1c21792 100644 --- a/src/gnu_and_bola_brawlers/stand.lua +++ b/src/gnu_and_bola_brawlers/stand.lua @@ -1,71 +1,71 @@ return { - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 1, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 2, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 1, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 3, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 4, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 4, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 4, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 4, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 4, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 4, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 4, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 4, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 4, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 4, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 4, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 4, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 3, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 5, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 6, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 6, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 6, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 6, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 6, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 6, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 6, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 6, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 6, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 6, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 6, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 6, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 5, metaSprites.bola.y * 0, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 1, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 2, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 1, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 3, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 4, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 4, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 4, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 4, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 4, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 4, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 4, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 4, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 4, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 4, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 4, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 4, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 3, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 5, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 6, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 6, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 6, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 6, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 6, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 6, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 6, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 6, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 6, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 6, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 6, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 6, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 5, images.bola.y * 0, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), currentFrame = 1, elapsedTime = 0, fps = 9, diff --git a/src/gnu_and_bola_brawlers/walk.lua b/src/gnu_and_bola_brawlers/walk.lua index 0633457..36f42e3 100644 --- a/src/gnu_and_bola_brawlers/walk.lua +++ b/src/gnu_and_bola_brawlers/walk.lua @@ -1,12 +1,12 @@ return { - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 1, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 1, metaSprites.bola.y * 1, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 2, metaSprites.bola.y * 1, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 1, metaSprites.bola.y * 1, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 0, metaSprites.bola.y * 1, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 3, metaSprites.bola.y * 1, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 4, metaSprites.bola.y * 1, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), - love.graphics.newQuad(metaSprites.bola.x * 3, metaSprites.bola.y * 1, metaSprites.bola.x, metaSprites.bola.y, metaSprites.bola.image:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 1, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 1, images.bola.y * 1, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 2, images.bola.y * 1, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 1, images.bola.y * 1, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 0, images.bola.y * 1, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 3, images.bola.y * 1, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 4, images.bola.y * 1, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), + love.graphics.newQuad(images.bola.x * 3, images.bola.y * 1, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), currentFrame = 1, elapsedTime = 0, fps = 9, |