From 29ad7ee347a7fc9dc5ac50e825170143c360f53c Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Thu, 24 Nov 2016 00:51:37 -0300 Subject: Modularize windowProfile.{mode,scale,title} --- src/gnu_and_bola_-_the_libre_beat_em_up_game/main.lua | 12 +----------- .../scripts/window/profile.lua | 11 +++++++++++ 2 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 src/gnu_and_bola_-_the_libre_beat_em_up_game/scripts/window/profile.lua (limited to 'src/gnu_and_bola_-_the_libre_beat_em_up_game') 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", +} -- cgit v1.2.3-54-g00ecf