summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+ }
+}