summaryrefslogtreecommitdiff
path: root/src/gnu_and_bola_-_the_libre_beat_em_up_game
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-11-23 18:05:28 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-11-23 18:05:28 -0300
commit5a76611deb0b74cba12a108d1786d0e49b36733b (patch)
treed128ab58b7e3119bb3d73fb4f35f837ae5068764 /src/gnu_and_bola_-_the_libre_beat_em_up_game
parent3ce9dd3e47f3de3a628699570bdcbbdb93714737 (diff)
Modularize transform.bola.origin
Diffstat (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game')
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua6
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/transform.lua5
2 files changed, 6 insertions, 5 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 74b873f..e47c5dd 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
@@ -58,11 +58,7 @@ function love.update(dt)
character.bola.walk.start = game.animation(character.bola.walk.start, frames.bola.walk)
transform = {
- bola = {
- origin = {
- y = character.bola.origin.y
- }
- }
+ bola = require 'scripts.bola.transform'
}
bolaMotion.motion(dt)
diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/transform.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/transform.lua
new file mode 100644
index 0000000..995fe65
--- /dev/null
+++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/transform.lua
@@ -0,0 +1,5 @@
+return {
+ origin = {
+ y = character.bola.origin.y
+ }
+}