-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.lua
More file actions
46 lines (39 loc) · 987 Bytes
/
conf.lua
File metadata and controls
46 lines (39 loc) · 987 Bytes
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
45
46
io.stdout:setvbuf("no")
GAME_SIZE = { w = 800, h = 600, }
local function compare_versions( versiona, versionb )
local am = versiona:gmatch( "%d+" )
local bm = versionb:gmatch( "%d+" )
local a,b = am(),bm()
while a or b do
a,b = tonumber(a) or 0, tonumber(b) or 0
local d = a - b
if d ~= 0 then
return d
end
a,b = am(),bm()
end
return 0
end
function version_check( )
if not love.getVersion then
return "0.9.1"
end
local major,minor,revision,codename = love.getVersion()
local versionstr = string.format("%d.%d.%d", major, minor, revision)
return versionstr
end
function love.conf(t)
t.identity = "Reverie"
t.version = version_check()
t.console = false
t.window.title = "Reverie"
t.window.icon = "assets/icon32.png"
t.window.fullscreen = false
-- t.window.fullscreentype = "normal"
t.window.width = GAME_SIZE.w
t.window.height = GAME_SIZE.h
t.window.resizable = false
t.window.vsync = true
t.window.fsaa = 0
t.modules.joystick = false
end