Browse Source

feat: add default gamesystem

master
Kazhnuz 4 months ago
parent
commit
df274f9dd0
2 changed files with 14 additions and 2 deletions
  1. 9
    0
      game/init.lua
  2. 5
    2
      main.lua

+ 9
- 0
game/init.lua View 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

+ 5
- 2
main.lua View File

@@ -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

Loading…
Cancel
Save