-
Notifications
You must be signed in to change notification settings - Fork 26
/
main.lua
45 lines (34 loc) · 878 Bytes
/
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
44
-- game infos
game_id = "BTEditor"
game_title = "BTEditor"
game_version = "01.04"
-- libraries
Gamestate = require "lib/gamestate"
Camera = require "lib/camera"
Inspector = require "lib/inspect"
require("lib/SECS")
require("lib/utils")
require("lib/dumper")
require("lib/xml_collect")
require("lib/json")
require("lib/loveframes/init")
require("lib/BTLua")
require("lib/assetloader")
if images.icon then
love.graphics.setIcon( images.icon )
end
--profiler = require "profiler"
function love.load()
-- Set filesystem identity
love.filesystem.setIdentity(game_id)
love.graphics.setCaption(game_title.." v."..game_version)
readScreenMode("configs.txt",images.icon)
-- Set Random Seed
math.randomseed(os.time());
math.random()
math.random()
math.random()
Gamestate.registerEvents()
require ("states/intro")
Gamestate.switch(Gamestate.intro)
end