This repository has been archived by the owner on Sep 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconf.lua
70 lines (61 loc) · 1.95 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
win = {}
-- Overrides the default LOVE configuration file. 't' contains a table
-- with the default values.
function love.conf(t)
t.console = true
t.window.title = "Game Lost Crash"
t.window.icon = nil
t.window.width = 1024
t.window.height = 768
t.window.borderless = false
t.window.fullscreen = false
t.window.fullscreentype = "normal"
t.window.fsaa = 0
t.window.vsync = true
t.window.highdpi = false
win = t.window
end
settings = {}
settings.nsq_http_api = "http://lethalcode.net:4151"
settings.nsq_host = "lethalcode.net"
settings.nsq_port = 4150
settings.nsq_gamestate_topic = "glc-gamestate"
settings.nsq_daemon_topic = "glc-daemon"
settings.tile_height = 16
settings.tile_width = 16
-- when changing the tiles_per_* variables, try to preserve the aspect
-- ratio with the window width/height
settings.tiles_per_row = 16
settings.tiles_per_column = 12
settings.zone_height = 25
settings.zone_width = 25
settings.assets_dir = "assets"
settings.show_metadata_layer = false
settings.player = {}
settings.player.default_hitpoint = 10
-- currently only works in the ohl office
settings.attempt_mount = false
settings.asset_vm_dir = "assets/vm"
settings.asset_vm_userhost = "[email protected]"
settings.asset_vm_remotedir = "."
settings.asset_vm_keypath = "assets/keys/insecure_private_key"
function mount_vm_command(keypath, userhost, remotedir, where)
os = require "os"
-- first, attempt to unmount directory
os.execute("sudo umount " .. where)
-- mount
local str = 'sshfs -o ssh_command="ssh -i ' ..
keypath .. '" ' ..
userhost .. ':' ..
remotedir .. ' ' ..
where
print('attempting to mount asset vm: "' .. str .. '"')
return os.execute(str)
end
settings.mount_asset_vm_command = mount_vm_command
-- try to import local_settings.lua
local local_settings = loadfile("local-settings.lua")
if local_settings ~= nil then
local underscore = require("library/underscore")
settings = underscore.extend(settings, local_settings())
end