local loghelper = require("loghelper") loghelper.strict(loghelper.LEVEL.INFO) local timer = require("timer.timer") jin.core.load = function() timer.every(1.0, function() loghelper.log(loghelper.LEVEL.INFO, "test") end) end jin.core.onEvent = function(e) if e.type == "quit" then jin.core.stop() elseif e.type == "keydown" then if e.key == "Escape" then jin.core.stop() end end end jin.core.onUpdate = function(dt) timer.update(dt) -- loghelper.log(loghelper.LEVEL.WARN, "版本" .. jin.revision()) end jin.core.onDraw = function() end