summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
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