-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.lua
85 lines (73 loc) · 2.45 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
-- Dependencies
local Config = require("engine.Config")
local Log = require("engine.Log")
-- Make default configuration
Config.init {
loveVersion = "0.10.2",
gameName = "Tower Quest",
gameCode = "tower-quest",
gameVersion = "0.11.1",
gameWidth = 320,
gameHeight = 240,
debugMode = false,
globalDeclarationsWarning = true,
errorReportURL = "https://github.com/jpikl/tower-quest/issues",
fullscreenMode = false,
fullscreenMouseVisible = false,
fullscreenType = "desktop",
windowScale = 2,
windowIcon = "graphics/icon.png",
verticalSynch = true,
frameRate = 60,
audioVolume = 1.0,
soundsVolume = 1.0,
musicVolume = 0.5,
imagesDirectory = "graphics",
fontsDirectory = "graphics",
soundsDirectory = "sounds",
musicDirectory = "music",
statesDirectory = "game.states",
initialState = "Intro",
transitionDuration = 1,
audioFadeDuration = 0.3,
notifyDuration = 1 / 2,
notifyFadeDuration = 1 / 3,
baseSpeed = 1.25,
pushDelay = false,
turboMode = false,
controls = {
-- Game inputs
["left"] = { "k:left", "g:dpleft" },
["right"] = { "k:right", "g:dpright" },
["up"] = { "k:up", "g:dpup" },
["down"] = { "k:down", "g:dpdown" },
["confirm"] = { "k:return", "k:space", "g:a" },
["cancel"] = { "k:escape", "g:b", "g:back" },
["menu"] = { "k:escape", "g:b", "g:start" },
["shot"] = { "k:space", "g:a" },
["skip"] = { "k:return", "k:space", "k:escape", "g:a", "g:b" },
["restart"] = { "k:r" },
["save"] = { "k:s", "g:x" },
["load"] = { "k:l", "g:y" },
-- Editor inputs
["click"] = { "k:space", "g:a", "m:left" },
["lock"] = { "k:lctrl", "g:x", "m:right" },
["next"] = { "k:down", "k:right", "k:tab", "g:dpdown", "g:dpright" },
["previous"] = { "k:up", "k:left", "g:dpup", "g:dpleft" },
["scroll-up"] = { "k:pageup", "g:leftshoulder", "m:wheelup" },
["scroll-down"] = { "k:pagedown", "g:rightshoulder", "m:wheeldown" },
["play"] = { "k:f5", "g:y" },
}
}
-- Configures LOVE
function love.conf(t)
Log.info("Configuring...")
-- Basic configuration
Config.apply(t)
-- Additional configuration
t.window.width = 192
t.window.height = 96
t.modules.physics = false
t.modules.touch = false
t.modules.thread = false
end