From df274f9dd03d3077b68d41fe27fe5370997333b0 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 24 Jul 2019 10:43:41 +0200 Subject: [PATCH] feat: add default gamesystem --- game/init.lua | 9 +++++++++ main.lua | 7 +++++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 game/init.lua diff --git a/game/init.lua b/game/init.lua new file mode 100644 index 0000000..a11400e --- /dev/null +++ b/game/init.lua @@ -0,0 +1,9 @@ +local GameSystem = require "gamecore.modules.gamesystem" +local Game = GameSystem:extend() + +function Game:new() + Game.super.new(self) + self.currentSlot = 1 +end + +return Game diff --git a/main.lua b/main.lua index 9484294..067f092 100644 --- a/main.lua +++ b/main.lua @@ -21,11 +21,14 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -Core = require "gamecore" -examples = require "examples" +Core = require "gamecore" +Game = require "game" +examples = require "examples" function love.load() core = Core() + game = Game() + game:read(1) examples.MainMenu() end