diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-12-21 10:21:13 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-12-21 15:24:18 -0300 |
commit | c8d83a62aadb46044c3ab058cc738a8473833e39 (patch) | |
tree | 94ab7a764096e88fb00bc18f9a3386b2534beaf2 | |
parent | 50a0d4e2d625c346c4437fa88eb42316f7b2c8b9 (diff) |
Remove redundant comments and parameters
5 files changed, 3 insertions, 9 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 8ac185d..92eb21f 100644 --- a/src/gnu_and_bola_brawlers/meta_sprites/bola/fall.lua +++ b/src/gnu_and_bola_brawlers/meta_sprites/bola/fall.lua @@ -7,9 +7,7 @@ return { love.graphics.newQuad(images.bola.x * 9, images.bola.y * 2, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), love.graphics.newQuad(images.bola.x * 5, images.bola.y * 3, images.bola.x, images.bola.y, images.bola[1]:getDimensions()), 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 = 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 e2a031e..28b23f1 100644 --- a/src/gnu_and_bola_brawlers/meta_sprites/bola/jump.lua +++ b/src/gnu_and_bola_brawlers/meta_sprites/bola/jump.lua @@ -5,9 +5,7 @@ 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()), - currentFrame = 1, elapsedTime = 0, - fps = 6, height = -250, velocity = 0, ground = windowProfile.mode.height / 2, diff --git a/src/gnu_and_bola_brawlers/meta_sprites/bola/stand.lua b/src/gnu_and_bola_brawlers/meta_sprites/bola/stand.lua index c280706..1312754 100644 --- a/src/gnu_and_bola_brawlers/meta_sprites/bola/stand.lua +++ b/src/gnu_and_bola_brawlers/meta_sprites/bola/stand.lua @@ -68,7 +68,7 @@ return { 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, + currentFrame = 1, fps = 9, } diff --git a/src/gnu_and_bola_brawlers/meta_sprites/bola/walk.lua b/src/gnu_and_bola_brawlers/meta_sprites/bola/walk.lua index f444488..8a6d01e 100644 --- a/src/gnu_and_bola_brawlers/meta_sprites/bola/walk.lua +++ b/src/gnu_and_bola_brawlers/meta_sprites/bola/walk.lua @@ -9,7 +9,5 @@ return { 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, } diff --git a/src/gnu_and_bola_brawlers/update/default.lua b/src/gnu_and_bola_brawlers/update/default.lua index 1ea8b10..493bd1a 100644 --- a/src/gnu_and_bola_brawlers/update/default.lua +++ b/src/gnu_and_bola_brawlers/update/default.lua @@ -23,7 +23,7 @@ update.animation = function(metaSprite, images, dt) end update.motion = function(character, images, metaSprite, dt) - -- Character will be stand if player press up/down, left/right buttons at the same time or when don't press any button + --Character will be stand if player press up/down, left/right buttons at the same time or when don't press anything if ((character.actionUp == true and character.actionDown == true) or (character.actionLeft == true and character.actionRight == true) or (character.actionLeft == false and character.actionRight == false and character.actionUp == false and character.actionDown == false)) and character.actionA == false and character.jump.isJumping == false then if metaSprite ~= character.stand then print("(update.motion) -> load stand meta sprite") @@ -33,7 +33,7 @@ update.motion = function(character, images, metaSprite, dt) end end - -- Check if it is jumping or falling + --Check if it is jumping or falling if character.jump.higher > 0 and character.actionUp == false and character.actionDown == false and character.actionA == true then if metaSprite ~= character.jump then print("(update.motion) -> load jump meta sprite") |