From 6d8683c933c55fa117b465c4e35b08c28143ef1c Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 31 Jul 2018 14:05:14 +0800 Subject: *update --- main.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 main.lua (limited to 'main.lua') diff --git a/main.lua b/main.lua new file mode 100644 index 0000000..3dc2932 --- /dev/null +++ b/main.lua @@ -0,0 +1,24 @@ +local debug = require("Debug") +debug.strict(debug.LEVEL.INFO) + +jin.core.onLoad = function() + +end + +jin.core.onEvent = function(e) + if e.type == "quit" then + jin.core.stop() + elseif e.type == "keydown" then + if e.key == "Esc" then + jin.core.stop() + end + end +end + +jin.core.onUpdate = function(dt) + +end + +jin.core.onDraw = function() + +end -- cgit v1.1-26-g67d0