feat: add default gamesystem
This commit is contained in:
parent
e068acbc7b
commit
df274f9dd0
2 changed files with 14 additions and 2 deletions
9
game/init.lua
Normal file
9
game/init.lua
Normal file
|
@ -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
|
3
main.lua
3
main.lua
|
@ -22,10 +22,13 @@
|
|||
]]
|
||||
|
||||
Core = require "gamecore"
|
||||
Game = require "game"
|
||||
examples = require "examples"
|
||||
|
||||
function love.load()
|
||||
core = Core()
|
||||
game = Game()
|
||||
game:read(1)
|
||||
|
||||
examples.MainMenu()
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue