diff options
author | chai <chaifix@163.com> | 2018-07-31 20:13:58 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-07-31 20:13:58 +0800 |
commit | 0efe3cf55bde25c0627899b36dbe1694dd338234 (patch) | |
tree | 0a3e755ab402337985acad191193488db9df7d1e /main.lua | |
parent | 6d8683c933c55fa117b465c4e35b08c28143ef1c (diff) |
+loghelper
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 19 |
1 files changed, 12 insertions, 7 deletions
@@ -1,24 +1,29 @@ -local debug = require("Debug") -debug.strict(debug.LEVEL.INFO) +local loghelper = require("loghelper") +loghelper.strict(loghelper.LEVEL.INFO) -jin.core.onLoad = function() +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 == "Esc" 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 + +end
\ No newline at end of file |