new easter egg, why not
parent
bf6c61927e
commit
a7ee1d7861
|
@ -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)
|
||||||
|
@ -60,4 +61,4 @@ function playSEOnce(sound, subsound)
|
||||||
sounds[sound]:play()
|
sounds[sound]:play()
|
||||||
end
|
end
|
||||||
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
|
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")
|
||||||
|
|
Loading…
Reference in New Issue