diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-11-24 00:51:37 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2016-11-24 15:36:42 -0300 |
commit | 29ad7ee347a7fc9dc5ac50e825170143c360f53c (patch) | |
tree | b26a9ed91496936bf92d5ac2fb5ea8f35959b0c4 /src | |
parent | 003bb2b3f5a6ba2fb8b0b09c3e9f1f1c3cd4c452 (diff) |
Modularize windowProfile.{mode,scale,title}
Diffstat (limited to 'src')
-rw-r--r-- | src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua | 12 | ||||
-rw-r--r-- | src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/window/profile.lua | 11 |
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 00c492a..ff20873 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", +} |