summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-11-24 00:51:37 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-11-24 00:51:37 -0300
commitf782a1019c2882101fd560890ede70816e2852b5 (patch)
tree27570dd716ffa067cc06135809ad1139fbb9b29e
parentf26f91ba08bcc13fbb0c4c92a882f7bd95fee84d (diff)
Modularize windowProfile.{mode,scale,title}
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua12
-rw-r--r--src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/window/profile.lua11
2 files changed, 12 insertions, 11 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 9a2435c..dd15cad 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
@@ -2,17 +2,7 @@ function love.load()
fps = 30
upTime = love.timer.getTime()
nextTime = upTime
- windowProfile = {
- mode = {
- width = 256,
- height = 240,
- },
- scale = {
- x = 2,
- y = 2,
- },
- title = "GNU & Bola - The libre beat'em up game",
- }
+ windowProfile = require 'scripts.window.profile'
love.graphics.setBackgroundColor(0, 232, 216)
love.graphics.setDefaultFilter('nearest', 'nearest')
diff --git a/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/window/profile.lua b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/window/profile.lua
new file mode 100644
index 0000000..652921e
--- /dev/null
+++ b/src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/window/profile.lua
@@ -0,0 +1,11 @@
+return {
+ mode = {
+ width = 256,
+ height = 240,
+ },
+ scale = {
+ x = 2,
+ y = 2,
+ },
+ title = "GNU & Bola - The libre beat'em up game",
+}