summaryrefslogtreecommitdiff
path: root/src/gnu_and_bola_brawlers/main.lua
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-12-15 18:21:11 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-12-15 18:21:11 -0300
commit42049918c9dacfa7f75273aad9b822a8a1a077d1 (patch)
tree47c8ec1ede5f0e81603f3f81e1a0a0b3425a5c52 /src/gnu_and_bola_brawlers/main.lua
parentbdf02f96883d4e4802ef387bcb54364c7e7dc03b (diff)
Keep the code KISS 3
Diffstat (limited to 'src/gnu_and_bola_brawlers/main.lua')
-rw-r--r--src/gnu_and_bola_brawlers/main.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gnu_and_bola_brawlers/main.lua b/src/gnu_and_bola_brawlers/main.lua
index af3952c..ee23e64 100644
--- a/src/gnu_and_bola_brawlers/main.lua
+++ b/src/gnu_and_bola_brawlers/main.lua
@@ -43,35 +43,35 @@ function love.update(dt)
end
if character.actionLeft == true and character.actionRight == false then
- metaSprite = require 'walk'
+ metaSprite = require 'meta_sprites/bola/walk'
character.position.x = character.position.x - (character.velocity * dt)
character.scale.x = -1
end
if character.actionRight == true and character.actionLeft == false then
- metaSprite = require 'walk'
+ metaSprite = require 'meta_sprites/bola/walk'
character.position.x = character.position.x + (character.velocity * dt)
character.scale.x = 1
end
if character.actionUp == true and character.actionDown == false then
- metaSprite = require 'walk'
+ metaSprite = require 'meta_sprites/bola/walk'
character.position.y = character.position.y - (character.velocity * dt)
character.jump.ground = character.position.y
end
if character.actionDown == true and character.actionUp == false then
- metaSprite = require 'walk'
+ metaSprite = require 'meta_sprites/bola/walk'
character.position.y = character.position.y + (character.velocity * dt)
character.jump.ground = character.position.y
end
if character.actionUp == true and character.actionDown == true then
- metaSprite = require 'stand'
+ metaSprite = require 'meta_sprites/bola/stand'
elseif character.actionLeft == true and character.actionRight == true then
- metaSprite = require 'stand'
+ metaSprite = require 'meta_sprites/bola/stand'
elseif character.actionLeft == false and character.actionRight == false and character.actionUp == false and character.actionDown == false then
- metaSprite = require 'stand'
+ metaSprite = require 'meta_sprites/bola/stand'
end
return metaSprite