-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.lua
93 lines (83 loc) · 2.73 KB
/
config.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
86
87
88
89
90
91
92
93
settings = {
--[[
setting this to true speeds up the scrollSpeed without needing to hold down "lshift"
this can also be set by running the startup command of `love . debug`
]]
debug = false;
music_volume = 20;
sfx_volume = 25;
speech_volume = 5;
text_scroll_speed = 30;
displayModesIndex = 1;
fullscreen_scale = 2;
displayModes = {"Fullscreen", "Windowed-Fullscreen"};
background_directory = "backgrounds/";
character_directory = "characters/";
music_directory = "music/";
sprite_directory = "sprites/";
shouts_directory = "sprites/shouts/";
sfx_directory = "sounds/";
main_logo_path = "main_logo_1024_flipped.png";
power_hour_set_path = "backgrounds/POWER_HOUR_SET_HQ.png";
black_screen_path = "backgrounds/BLACK_SCREEN.png";
lobby_path = "backgrounds/LOBBY.png";
court_path = "sprites/WideShot.png";
saves_path = "saves/";
game_over_path = "scripts/gameover.meta";
jory_trial_1_path = "scripts/jory_trial_1.meta";
jory_trial_2_path = "scripts/jory_trial_2.meta";
jory_trial_3_path = "scripts/jory_trial_3.meta";
jory_trial_4_path = "scripts/jory_trial_4.meta";
jory_trial_5_path = "scripts/jory_trial_5.meta";
jory_trial_6_path = "scripts/jory_trial_6.meta";
posttrial_path = "scripts/posttrial.meta";
credits_path = "scripts/credits.script";
episode_path = "scripts/episode1.meta";
}
-- Keybindings used by the onKeyPresseds in screens/index
controls = {
start_button = "return";
pause = "escape";
advance_text = "x";
pause_nav_up = "up";
pause_nav_down = "down";
press_confirm = "return";
press_court_record = "z";
press_right = "right";
press_left = "left";
press_toggle_profiles = "down";
}
dimensions = {
graphics_scale = 4;
window_width = 1280;
window_height = 720;
background_scale = settings.fullscreen_scale;
}
colors = {
white = {1, 1, 1};
black = {0, 0, 0};
red = {1, 0, 0};
ltblue = {0, 0.75, 1};
green = {0, 1, 0.25};
}
-- Override default display names for keyboard keys
key_display_names = {
['escape'] = 'Esc';
['backspace'] = 'Back';
['return'] = 'Enter';
['delete'] = 'Del';
['rctrl'] = 'Ctrl (R)';
['lctrl'] = 'Ctrl (L)';
['rshift'] = 'Shift (R)';
['lshift'] = 'Shift (L)';
}
function InitGlobalConfigVariables()
GraphicsWidth = dimensions.window_width / dimensions.graphics_scale
GraphicsHeight = dimensions.window_height / dimensions.graphics_scale
WindowWidth = dimensions.window_width
WindowHeight = dimensions.window_height
MusicVolume = settings.music_volume
SFXVolume = settings.sfx_volume
SpeechVolume = settings.speech_volume
TextScrollSpeed = settings.text_scroll_speed
end