-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconf.lua
50 lines (45 loc) · 1.47 KB
/
conf.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
45
46
47
48
49
50
local args = require("args")
function love.conf(t)
t.version = "12.0"
if not args.headless then
t.window.title = "Open Hexagon"
t.window.icon = "assets/image/icon.png"
t.window.width = 960
t.window.height = 540
t.window.resizable = true
t.window.minwidth = 640
t.window.minheight = 360
t.window.usedpiscale = false
-- TODO: make configurable
t.window.vsync = 0
t.window.msaa = 4
t.console = true -- windows only
-- don't enable the audio module when rendering
t.modules.audio = not args.render
-- disable vulkan for now as it introduces an
-- immediately noticable amount of latency
-- TODO: make configurable
t.graphics.renderers = { "metal", "opengl" }
else
t.modules.data = true
t.modules.event = false
t.modules.audio = false
t.modules.font = false
t.modules.graphics = false
t.modules.image = false
t.modules.joystick = false
t.modules.keyboard = false
t.modules.math = true
t.modules.mouse = false
t.modules.physics = false
t.modules.sound = false
t.modules.system = true
t.modules.thread = true
t.modules.timer = true
t.modules.touch = false
t.modules.video = false
t.modules.window = false
end
-- allows people to access game directories on android
t.externalstorage = true
end