diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-11-23 16:15:38 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-11-23 16:15:38 -0300 |
commit | ac1f5c94e31b227b36391bcffe9815e4c09e2ed8 (patch) | |
tree | 73c48123491e7f09d50e4b95650f7018707e6d12 /src/gnu_and_bola_-_the_libre_beat_em_up_game | |
parent | 46891abb64a80f2649542d6744835b83a25cde7f (diff) |
Modularize character.bola.position
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.lua | 5 | ||||
-rw-r--r-- | src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/bola/position.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 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, +} |