new easter egg, why not

This commit is contained in:
hailey 2021-09-26 14:30:12 +10:00
parent bf6c61927e
commit a7ee1d7861
3 changed files with 11 additions and 2 deletions

View File

@ -22,8 +22,9 @@ sounds = {
go = love.audio.newSource("res/se/go.wav", "static"), go = love.audio.newSource("res/se/go.wav", "static"),
irs = love.audio.newSource("res/se/irs.wav", "static"), irs = love.audio.newSource("res/se/irs.wav", "static"),
ihs = love.audio.newSource("res/se/ihs.wav", "static"), ihs = love.audio.newSource("res/se/ihs.wav", "static"),
-- a secret sound! -- secret sounds!
welcome = love.audio.newSource("res/se/welcomeToCambridge.wav", "static"), welcome = love.audio.newSource("res/se/welcomeToCambridge.wav", "static"),
mystery = love.audio.newSource("res/se/mystery.wav", "static"),
} }
function playSE(sound, subsound) function playSE(sound, subsound)

BIN
res/se/mystery.wav Normal file

Binary file not shown.

View File

@ -103,6 +103,14 @@ function TitleScene:onInputPress(e)
elseif e.input == "up" or e.scancode == "up" then elseif e.input == "up" or e.scancode == "up" then
self:changeOption(-1) self:changeOption(-1)
playSE("cursor") playSE("cursor")
elseif e.scancode == "kp5" then
DiscordRPC:update({
details = "Pressed the cool button",
state = "You found the cool easter egg!",
largeImageKey = "transbridge",
})
playSE("mystery")
--now you've just spoiled the fun for yourself.
elseif e.input == "down" or e.scancode == "down" then elseif e.input == "down" or e.scancode == "down" then
self:changeOption(1) self:changeOption(1)
playSE("cursor") playSE("cursor")