-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.lua
29 lines (27 loc) · 1.08 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
local k = function(x) return function() return x end end
local headless = function(t)
package.loaded["lib.anim8"] = {newGrid = k(k()),
newAnimation = k({pauseAtEnd=k(),
update=k()})}
love.graphics = {newImage = k({getHeight=k(), getWidth=k(),
setFilter = k()}),
newQuad = k(), getWidth = k(), getHeight = k(),
newSpriteBatch = k({add=k()}),
newCanvas = k({setFilter = k()}),
isActive = k(false),}
t.window, t.modules.window, t.modules.graphics = false, false, false
end
function love.conf(t)
t.title = "Kore - The Rise of Persephone"
t.window.width = 1400
t.window.height = 800
t.console = true
local client = true
local server = false
for _, a in ipairs(arg) do
if(a == "--headless") then headless(t) end
if(a == "--no_client") then client = false end
if(a == "--server") then server = true end
end
if(server and not client) then headless(t) end
end