feat: pass command line args to birb

This commit is contained in:
Kazhnuz 2021-06-06 13:41:34 +02:00
parent 388c6f1ef9
commit d82621bf58
2 changed files with 7 additions and 6 deletions

View file

@ -33,15 +33,15 @@ enum = require("birb.utils.enum")
birb.Core = require("birb.core") birb.Core = require("birb.core")
function birb.start(gamemodule) function birb.start(gamemodule, args)
birb.startCore() birb.startCore(args)
if (gamemodule ~= nil) then if (gamemodule ~= nil) then
birb.startGame(gamemodule) birb.startGame(gamemodule)
end end
end end
function birb.startCore() function birb.startCore(args)
core = birb.Core() core = birb.Core(args)
end end
function birb.startGame(gamemodule) function birb.startGame(gamemodule)

View file

@ -25,7 +25,8 @@ require "birb"
scenes = require "scenes" scenes = require "scenes"
function love.load() function love.load(args)
birb.start("game") print(utils.table.toString(args))
birb.start("game", args)
scenes.title() scenes.title()
end end