diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-11-23 16:55:27 -0300 |
---|---|---|
committer | Jorge Lopez Seijas <jorginho@riseup.net> | 2016-11-23 21:44:39 +0100 |
commit | 5d0bd6f795f87641696bf84c7183404958cf45b4 (patch) | |
tree | 7461cdaca4c8fdc65f1c313879d1e8048c494f31 | |
parent | 99a72d4fce24dcce02a5bbb3b1280067bda9289f (diff) |
Modularize frames.bola.{stand,walk}
-rw-r--r-- | src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua | 5 | ||||
-rw-r--r-- | src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/frames.lua | 4 |
2 files changed, 5 insertions, 4 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 c9e513b..cab3b73 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 @@ -40,10 +40,7 @@ function love.update(dt) character.bola.walk.start = character.bola.walk.start + (dt * character.bola.walk.fps) frames = { - bola = { - stand = # character.bola.stand, - walk = # character.bola.walk, - } + bola = require 'scripts.bola.frames' } game = { diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/frames.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/frames.lua new file mode 100644 index 0000000..dc499dd --- /dev/null +++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/frames.lua @@ -0,0 +1,4 @@ +return { + stand = # character.bola.stand, + walk = # character.bola.walk, +} |