new easter egg, why not
parent
bf6c61927e
commit
a7ee1d7861
|
@ -22,8 +22,9 @@ 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!
|
||||
-- secret sounds!
|
||||
welcome = love.audio.newSource("res/se/welcomeToCambridge.wav", "static"),
|
||||
mystery = love.audio.newSource("res/se/mystery.wav", "static"),
|
||||
}
|
||||
|
||||
function playSE(sound, subsound)
|
||||
|
@ -60,4 +61,4 @@ function playSEOnce(sound, subsound)
|
|||
sounds[sound]:play()
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Binary file not shown.
|
@ -103,6 +103,14 @@ function TitleScene:onInputPress(e)
|
|||
elseif e.input == "up" or e.scancode == "up" then
|
||||
self:changeOption(-1)
|
||||
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
|
||||
self:changeOption(1)
|
||||
playSE("cursor")
|
||||
|
|
Loading…
Reference in New Issue