-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.lua
43 lines (40 loc) · 1.27 KB
/
main.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
-- # _______ ______ _____ #
-- # |__ __| ____| __ \ #
-- # | | | |__ | | | | #
-- # | | | __| | | | | #
-- # | | | |____| |__| | #
-- # |_| |______|_____/ #
-------------------------------------------------------------
-- Load Zenitha
require("Zenitha")
--------------------------------------------------------------
-- Global Vars Declaration
VERSION=require"version"
--------------------------------------------------------------
-- System setting
math.randomseed(os.time()*626)
love.setDeprecationOutput(false)
love.keyboard.setTextInput(false)
if MOBILE then
local w,h,f=love.window.getMode()
f.resizable=false
love.window.setMode(w,h,f)
love.window.setFullscreen(true)
end
--------------------------------------------------------------
-- Config Zenitha
STRING.install()
Zenitha.setAppName('ZED')
Zenitha.setVersionText(VERSION.appVer)
Zenitha.setFirstScene('editor')
Zenitha.setMaxFPS(60)
Zenitha.setUpdateFreq(100)
Zenitha.setDrawFreq(100)
Zenitha.setDrawCursor(NULL)
Zenitha.setClickFX(false)
SCR.setSize(1400,900)
DEBUG.checkLoadTime("Configuring Zenitha")
--------------------------------------------------------------
SCN.add('editor',require'scene/editor')
--------------------------------------------------------------
DEBUG.logLoadTime()