/usr/share/games/caveexpress/config.lua is in caveexpress-data 2.4+git20160609-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | function isMobile()
return (isAndroid() or isIOS()) and not isOUYA();
end
defaultwidth = -1
defaultheight = -1
defaultfullscreen = true
defaultpersister = "sqlite"
defaultfrontend = "sdl"
defaultsoundengine = "sdl"
defaultnetwork = true
defaultshowcursor = true
defaultgamecontroller = true
defaulttexturesize = "auto"
defaultreferencetimefactor = 1.0
defaultdamagethreshold = 3.0
defaultnpcflyingspeed = 2.0
defaultparticles = 100
defaultred = 8
defaultgreen = 8
defaultblue = 8
if isOUYA() then
defaultgamecontroller = true
defaultreferencetimefactor = 1.3
defaultdamagethreshold = 5.0
defaultparticles = 0
defaultred = 6
defaultgreen = 5
defaultblue = 6
elseif isSteamLink() then
defaultwidth = 1280
defaultheight = 720
defaultgamecontroller = true
defaultparticles = 0
defaultnetwork = true
defaultshowcursor = false
elseif isAndroid() then
defaultpersister = "googleplay"
defaultreferencetimefactor = 1.5
defaultshowcursor = false
defaultnetwork = true
defaultdamagethreshold = 5.0
defaultparticles = 50
defaultred = 6
defaultgreen = 5
defaultblue = 6
elseif isMobile() then
defaultreferencetimefactor = 1.5
defaultshowcursor = false
defaultnetwork = true
defaultdamagethreshold = 5.0
defaultparticles = 0
elseif isHTML5() then
defaultfrontend = "opengl"
defaultsoundengine = "dummy"
defaultnetwork = false
elseif isNaCl() then
defaultpersister = "nop"
defaultnetwork = false
else
defaultgamecontroller = true
defaultfrontend = "opengl3"
end
settings = {
width = defaultwidth,
height = defaultheight,
fullscreen = defaultfullscreen,
frontend = defaultfrontend,
port = 45678,
grabmouse = true,
showcursor = defaultshowcursor,
debug = false,
showfps = false,
gamecontroller = defaultgamecontroller,
gamecontrollertriggeraxis = false,
sound = true,
soundengine = defaultsoundengine,
persister = defaultpersister,
network = defaultnetwork,
texturesize = defaulttexturesize,
referencetimefactor = defaultreferencetimefactor,
damagethreshold = defaultdamagethreshold,
fruitcollectdelayforanewlife = 15000,
amountoffruitsforanewlife = 4,
fruithitpoints = 10,
waterparticle = false,
npcflyingspeed = defaultnpcflyingspeed,
particles = defaultparticles,
red = defaultred,
green = defaultgreen,
blue = defaultblue,
}
controllerbindings = {
["ui"] = {
A = "ui_execute",
B = "ui_pop",
--X = "ui_pop",
--Y = "ui_pop",
BACK = "ui_pop",
--GUIDE = "",
--START = "",
--LEFTSTICK = "",
--RIGHTSTICK = "",
--LEFTSHOULDER = "",
--RIGHTSHOULDER = "",
DPUP = "ui_focus_prev",
DPDOWN = "ui_focus_next",
DPLEFT = "ui_focus_prev",
DPRIGHT = "ui_focus_next",
},
["map"] = {
A = "drop",
B = "drop",
--X = "ui_pop",
--Y = "ui_pop",
BACK = "ui_pop",
--GUIDE = "",
START = "ui_pop",
LEFTSTICK = "+move_left",
RIGHTSTICK = "+move_right",
LEFTSHOULDER = "+zoom 0.1",
RIGHTSHOULDER = "+zoom -0.1",
DPUP = "+move_up",
DPDOWN = "+move_down",
DPLEFT = "+move_left",
DPRIGHT = "+move_right",
},
}
if isMobile() or isOUYA() then
keybindings = {
["ui"] = {
AC_BACK = "ui_pop",
},
["map"] = {
--MENU = "ui_push settings",
AC_BACK = "ui_pop",
},
}
if isOUYA() then
keybindings["ui"]["PAUSE"] = "ui_pop"
keybindings["map"]["PAUSE"] = "ui_pop"
end
else
keybindings = {
["ui"] = {
LEFT = "ui_focus_prev",
RIGHT = "ui_focus_next",
UP = "ui_focus_prev +",
DOWN = "ui_focus_next -",
A = "ui_focus_prev",
D = "ui_focus_next",
W = "ui_focus_prev +",
S = "ui_focus_next -",
SPACE = "ui_execute",
RETURN = "ui_execute",
ESCAPE = "ui_pop",
TAB = "ui_focus_next",
},
["map"] = {
LEFT = "+move_left",
RIGHT = "+move_right",
UP = "+move_up",
DOWN = "+move_down",
A = "+move_left",
D = "+move_right",
W = "+move_up",
S = "+move_down",
SPACE = "drop",
RETURN = "drop",
ESCAPE = "ui_pop",
TAB = "ui_focus_next",
PAGEDOWN = "zoom -0.1",
PAGEUP = "zoom 0.1",
},
}
end
if isDebug() then
keybindings["ui"]["."] = "screenshot"
keybindings["map"]["."] = "screenshot"
keybindings["map"]["BACKSPACE"] = "map_debug"
keybindings["map"]["E"] = "map_open_in_editor"
keybindings["map"]["X"] = "kill"
keybindings["map"]["F"] = "finish"
end
if isMobile() and isDebug() then
keybindings["map"]["VOLUMEUP"] = "map_debug"
end
|