From c40d8c52960539cd14ba33e68810fbc6a16e7fd4 Mon Sep 17 00:00:00 2001 From: Jorge Lopez Seijas Date: Thu, 15 Dec 2016 20:37:56 +0100 Subject: Keep the code KISS 2 --- src/gnu_and_bola_brawlers/load/default.lua | 25 +++++++++++++++++++++++++ src/gnu_and_bola_brawlers/load/initialize.lua | 25 ------------------------- 2 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 src/gnu_and_bola_brawlers/load/default.lua delete mode 100644 src/gnu_and_bola_brawlers/load/initialize.lua (limited to 'src/gnu_and_bola_brawlers/load') diff --git a/src/gnu_and_bola_brawlers/load/default.lua b/src/gnu_and_bola_brawlers/load/default.lua new file mode 100644 index 0000000..bbf5c02 --- /dev/null +++ b/src/gnu_and_bola_brawlers/load/default.lua @@ -0,0 +1,25 @@ +local load = {} + +load.initialize = function() + fps = 30 + upTime = love.timer.getTime() + nextTime = upTime + + windowProfile = require 'load/window_profile' + + love.graphics.setBackgroundColor(0, 232, 216) + love.graphics.setDefaultFilter('nearest', 'nearest') + + love.window.setMode(windowProfile.mode.width * windowProfile.scale.x, windowProfile.mode.height * windowProfile.scale.y) + love.window.setTitle(windowProfile.title) + + controller = require 'load/player_controller_configuration' + images = require 'load/images' + character = require 'load/character' + + metaSprite = { + bola = require 'stand', + } +end + +return load diff --git a/src/gnu_and_bola_brawlers/load/initialize.lua b/src/gnu_and_bola_brawlers/load/initialize.lua deleted file mode 100644 index bbf5c02..0000000 --- a/src/gnu_and_bola_brawlers/load/initialize.lua +++ /dev/null @@ -1,25 +0,0 @@ -local load = {} - -load.initialize = function() - fps = 30 - upTime = love.timer.getTime() - nextTime = upTime - - windowProfile = require 'load/window_profile' - - love.graphics.setBackgroundColor(0, 232, 216) - love.graphics.setDefaultFilter('nearest', 'nearest') - - love.window.setMode(windowProfile.mode.width * windowProfile.scale.x, windowProfile.mode.height * windowProfile.scale.y) - love.window.setTitle(windowProfile.title) - - controller = require 'load/player_controller_configuration' - images = require 'load/images' - character = require 'load/character' - - metaSprite = { - bola = require 'stand', - } -end - -return load -- cgit v1.2.3-54-g00ecf