Compare commits

..

2 Commits

Author SHA1 Message Date
Ishaan Bhardwaj
42f872a557 Oops, indenting fix in main.lua 2021-10-16 19:10:33 -04:00
Ishaan Bhardwaj
a30791afc3 Fixed F2 shortcut not resetting changed settings 2021-10-16 19:08:01 -04:00

View File

@ -97,6 +97,7 @@ function love.keypressed(key, scancode)
elseif scancode == "f2" and scene.title ~= "Input Config" and scene.title ~= "Game" then elseif scancode == "f2" and scene.title ~= "Input Config" and scene.title ~= "Game" then
scene = InputConfigScene() scene = InputConfigScene()
switchBGM(nil) switchBGM(nil)
loadSave()
-- secret sound playing :eyes: -- secret sound playing :eyes:
elseif scancode == "f8" and scene.title == "Title" then elseif scancode == "f8" and scene.title == "Title" then
config.secret = not config.secret config.secret = not config.secret
@ -105,8 +106,8 @@ function love.keypressed(key, scancode)
if config.secret then playSE("mode_decide") if config.secret then playSE("mode_decide")
else playSE("erase") end else playSE("erase") end
-- f12 is reserved for saving screenshots -- f12 is reserved for saving screenshots
elseif scancode == "f12" then elseif scancode == "f12" then
local ss_name = os.date("ss/%Y-%m-%d_%H-%M-%S.png") local ss_name = os.date("ss/%Y-%m-%d_%H-%M-%S.png")
local info = love.filesystem.getInfo("ss", "directory") local info = love.filesystem.getInfo("ss", "directory")
if not info then if not info then
love.filesystem.remove("ss") love.filesystem.remove("ss")