From 5d0bd6f795f87641696bf84c7183404958cf45b4 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Wed, 23 Nov 2016 16:55:27 -0300 Subject: Modularize frames.bola.{stand,walk} --- src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua | 5 +---- src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/frames.lua | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/frames.lua (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game') 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, +} -- cgit v1.2.3-54-g00ecf