Compare commits

..

3 Commits

Author SHA1 Message Date
hailey
a7ee1d7861 new easter egg, why not 2021-09-26 14:30:12 +10:00
hailey
bf6c61927e Removed print() that occured every game scene update 2021-09-26 14:09:43 +10:00
hailey
817ffd5c13 RPC image updates depending on ingame background now! 2021-09-26 14:02:35 +10:00
27 changed files with 22 additions and 10 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)
@ -60,4 +61,4 @@ function playSEOnce(sound, subsound)
sounds[sound]:play() sounds[sound]:play()
end end
end end
end end

BIN
res/img/rpc/ingame-100.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 816 KiB

BIN
res/img/rpc/ingame-1000.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
res/img/rpc/ingame-1100.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

BIN
res/img/rpc/ingame-1200.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
res/img/rpc/ingame-1300.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 827 KiB

BIN
res/img/rpc/ingame-1400.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

BIN
res/img/rpc/ingame-1500.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
res/img/rpc/ingame-1600.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

BIN
res/img/rpc/ingame-1700.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
res/img/rpc/ingame-1800.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

BIN
res/img/rpc/ingame-1900.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
res/img/rpc/ingame-200.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 943 KiB

BIN
res/img/rpc/ingame-300.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

BIN
res/img/rpc/ingame-400.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

BIN
res/img/rpc/ingame-500.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

BIN
res/img/rpc/ingame-600.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

BIN
res/img/rpc/ingame-700.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 KiB

BIN
res/img/rpc/ingame-800.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

BIN
res/img/rpc/ingame-900.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
res/img/rpc/snow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
res/se/mystery.wav Normal file

Binary file not shown.

View File

@ -10,7 +10,8 @@ function CreditsScene:new()
DiscordRPC:update({ DiscordRPC:update({
details = "Watching the credits", details = "Watching the credits",
state = "Thanks for playing the game!" state = "Thanks for playing the game!",
largeImageKey = "ingame-1900",
}) })
end end
@ -29,7 +30,7 @@ end
function CreditsScene:render() function CreditsScene:render()
local offset = self.frames / self.scroll_speed local offset = self.frames / self.scroll_speed
love.graphics.setColor(1, 1, 1, 1) love.graphics.setColor(1, 1, 1, 1)
love.graphics.draw( love.graphics.draw(
backgrounds[19], backgrounds[19],
@ -50,9 +51,9 @@ function CreditsScene:render()
love.graphics.setFont(font_3x5_2) love.graphics.setFont(font_3x5_2)
love.graphics.print("Oshisaure\nJoe Zeng", 320, 590 - offset) love.graphics.print("Oshisaure\nJoe Zeng", 320, 590 - offset)
love.graphics.print("Mizu\nMarkGamed\nhaileylgbt", 320, 680 - offset) love.graphics.print("Mizu\nMarkGamed\nHailey", 320, 680 - offset)
love.graphics.print( love.graphics.print(
"2Tie - TGMsim\nAxel Fox - Multimino\nDr Ocelot - Tetra Legends\n" .. "Alexey Pajitnov - Tetris\n2Tie - TGMsim\nAxel Fox - Multimino\nDr Ocelot - Tetra Legends\n" ..
"Electra - ZTrix\nFelicity/nightmareci/kdex - Shiromino\n" .. "Electra - ZTrix\nFelicity/nightmareci/kdex - Shiromino\n" ..
"Mine - Tetra Online\nMrZ - Techmino\nosk - TETR.IO\n" .. "Mine - Tetra Online\nMrZ - Techmino\nosk - TETR.IO\n" ..
"Phoenix Flare - Master of Blocks\nRayRay26 - Spirit Drop\n" .. "Phoenix Flare - Master of Blocks\nRayRay26 - Spirit Drop\n" ..
@ -86,4 +87,4 @@ function CreditsScene:onInputPress(e)
end end
end end
return CreditsScene return CreditsScene

View File

@ -27,9 +27,7 @@ function GameScene:new(game_mode, ruleset, inputs)
DiscordRPC:update({ DiscordRPC:update({
details = self.game.rpc_details, details = self.game.rpc_details,
state = self.game.name, state = self.game.name,
--largeImageText = "Level "..self.game.level???? largeImageKey = "ingame-"..self.game:getBackground().."00"
largeImageKey = "ingame-0"
--largeImageKey = ingame-<section>
}) })
end end
@ -41,6 +39,9 @@ function GameScene:update()
end end
self.game:update(inputs, self.ruleset) self.game:update(inputs, self.ruleset)
self.game.grid:update() self.game.grid:update()
DiscordRPC:update({
largeImageKey = "ingame-"..self.game:getBackground().."00"
})
end end
end end

View File

@ -12,6 +12,7 @@ function ConfigScene:new()
DiscordRPC:update({ DiscordRPC:update({
details = "In settings", details = "In settings",
state = "Changing input config", state = "Changing input config",
largeImageKey = "settings-input"
}) })
end end

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")