diff options
Diffstat (limited to 'src/lua/embed/boot.lua.h')
-rw-r--r-- | src/lua/embed/boot.lua.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lua/embed/boot.lua.h b/src/lua/embed/boot.lua.h index c73e9f9..2067953 100644 --- a/src/lua/embed/boot.lua.h +++ b/src/lua/embed/boot.lua.h @@ -14,10 +14,12 @@ conf.height = conf.height or 500 conf.fps = conf.fps or 60 conf.vsync = conf.vsync or false conf.title = conf.title or ("jin v" .. jin.version()) +conf.resizable = conf.resizable or false +conf.fullscreen = conf.fullscreen or false -- initialize subsystems jin.graphics.init(conf) -jin.audio.init(conf) +jin.audio.init() -- open debug mode, must after jin.graphics.init if jin._argv[3] == '-d' then @@ -65,8 +67,8 @@ function jin.core.run() local wait = SEC_PER_UPDATE - dt previous = previous + SEC_PER_UPDATE if wait > 0 then - jin.time.sleep(wait) dt = SEC_PER_UPDATE + jin.time.sleep(wait) else previous = current end @@ -88,7 +90,7 @@ local function onError(msg) end end -local function main() +local function boot() if jin.filesystem.exist("main.lua") then -- require main game script xpcall(function() require"main" end, onError) @@ -115,6 +117,6 @@ local function main() jin.core.quit() end -main() +boot() )"; |