mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 02:29:03 -06:00
Compare commits
2 Commits
8bd8c0eede
...
42f872a557
Author | SHA1 | Date | |
---|---|---|---|
|
42f872a557 | ||
|
a30791afc3 |
5
main.lua
5
main.lua
@ -97,6 +97,7 @@ function love.keypressed(key, scancode)
|
||||
elseif scancode == "f2" and scene.title ~= "Input Config" and scene.title ~= "Game" then
|
||||
scene = InputConfigScene()
|
||||
switchBGM(nil)
|
||||
loadSave()
|
||||
-- secret sound playing :eyes:
|
||||
elseif scancode == "f8" and scene.title == "Title" then
|
||||
config.secret = not config.secret
|
||||
@ -105,8 +106,8 @@ function love.keypressed(key, scancode)
|
||||
if config.secret then playSE("mode_decide")
|
||||
else playSE("erase") end
|
||||
-- f12 is reserved for saving screenshots
|
||||
elseif scancode == "f12" then
|
||||
local ss_name = os.date("ss/%Y-%m-%d_%H-%M-%S.png")
|
||||
elseif scancode == "f12" then
|
||||
local ss_name = os.date("ss/%Y-%m-%d_%H-%M-%S.png")
|
||||
local info = love.filesystem.getInfo("ss", "directory")
|
||||
if not info then
|
||||
love.filesystem.remove("ss")
|
||||
|
Loading…
Reference in New Issue
Block a user