diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-11-23 16:55:27 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-11-23 16:59:15 -0300 |
commit | 2ab103e7fa52468daac6cf419d7dca2fc7b68a0c (patch) | |
tree | 2ac1ea7429cf8d706715ec76e14b8db8139975c8 | |
parent | f549bdf5d2596339fc203421cb49166c3dec90f2 (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 4c7b648..ef47ce8 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 @@ -79,10 +79,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, +} |