summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua5
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/position.lua4
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 aa2cc2e..3a7e5d0 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
@@ -26,10 +26,7 @@ function love.load()
character = {
bola = {
- position = {
- x = windowProfile.mode.width / 2,
- y = windowProfile.mode.height / 2,
- },
+ position = require 'scripts.bola.position',
orientation = 0,
scale = {
x = 1,
diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/position.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/position.lua
new file mode 100644
index 0000000..fc4a1a9
--- /dev/null
+++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/position.lua
@@ -0,0 +1,4 @@
+return {
+ x = windowProfile.mode.width / 2,
+ y = windowProfile.mode.height / 2,
+}