summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-07-31 14:05:14 +0800
committerchai <chaifix@163.com>2018-07-31 14:05:14 +0800
commit6d8683c933c55fa117b465c4e35b08c28143ef1c (patch)
treef660774bd225dded94d6cb8a3e9737d2d650bdac /main.lua
parent2542f56bca2556b4393d382688be74c1612b2862 (diff)
*update
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua24
1 files changed, 24 insertions, 0 deletions
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