diff --git a/load/sounds.lua b/load/sounds.lua index bae8b0c..cd47e8b 100644 --- a/load/sounds.lua +++ b/load/sounds.lua @@ -22,6 +22,8 @@ sounds = { go = love.audio.newSource("res/se/go.wav", "static"), irs = love.audio.newSource("res/se/irs.wav", "static"), ihs = love.audio.newSource("res/se/ihs.wav", "static"), + -- a secret sound! + welcome = love.audio.newSource("res/se/welcomeToCambridge.wav", "static"), } function playSE(sound, subsound) diff --git a/main.lua b/main.lua index 48772f9..ca10209 100644 --- a/main.lua +++ b/main.lua @@ -15,6 +15,9 @@ function love.load() love.window.setMode(love.graphics.getWidth(), love.graphics.getHeight(), {resizable = true}); + if config.secret == nil then config.secret = false + elseif config.secret == true then playSE("welcome") end + if not config.das then config.das = 10 end if not config.arr then config.arr = 2 end @@ -124,6 +127,14 @@ function love.keypressed(key, scancode) love.window.setFullscreen(config["fullscreen"]) elseif scancode == "f2" and scene.title ~= "Input Config" and scene.title ~= "Game" then scene = InputConfigScene() + -- secret sound playing :eyes: + elseif scancode == "f8" and scene.title == "Title" then + config.secret = not config.secret + saveConfig() + love.graphics.setFont(font_3x5_2) + love.graphics.print("Restart Cambridge...", 0, 450) + if config.secret then playSE("mode_decide") + else playSE("erase") end -- function keys are reserved elseif string.match(scancode, "^f[1-9]$") or string.match(scancode, "^f[1-9][0-9]+$") then return diff --git a/res/se/welcomeToCambridge.wav b/res/se/welcomeToCambridge.wav new file mode 100644 index 0000000..f06eea9 Binary files /dev/null and b/res/se/welcomeToCambridge.wav differ diff --git a/scene/title.lua b/scene/title.lua index 72cf40e..c63112f 100644 --- a/scene/title.lua +++ b/scene/title.lua @@ -1,5 +1,7 @@ local TitleScene = Scene:extend() +TitleScene.title = "Title" + local main_menu_screens = { ModeSelectScene, InputConfigScene,