RPC image updates depending on ingame background now!
After Width: | Height: | Size: 816 KiB |
After Width: | Height: | Size: 1.1 MiB |
After Width: | Height: | Size: 1.7 MiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 827 KiB |
After Width: | Height: | Size: 1.5 MiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 1.3 MiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 1.4 MiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 943 KiB |
After Width: | Height: | Size: 1.0 MiB |
After Width: | Height: | Size: 1.2 MiB |
After Width: | Height: | Size: 1.3 MiB |
After Width: | Height: | Size: 1.7 MiB |
After Width: | Height: | Size: 676 KiB |
After Width: | Height: | Size: 1.6 MiB |
After Width: | Height: | Size: 2.0 MiB |
After Width: | Height: | Size: 1.1 MiB |
After Width: | Height: | Size: 1.1 MiB |
|
@ -10,7 +10,8 @@ function CreditsScene:new()
|
|||
|
||||
DiscordRPC:update({
|
||||
details = "Watching the credits",
|
||||
state = "Thanks for playing the game!"
|
||||
state = "Thanks for playing the game!",
|
||||
largeImageKey = "ingame-1900",
|
||||
})
|
||||
end
|
||||
|
||||
|
@ -29,7 +30,7 @@ end
|
|||
|
||||
function CreditsScene:render()
|
||||
local offset = self.frames / self.scroll_speed
|
||||
|
||||
|
||||
love.graphics.setColor(1, 1, 1, 1)
|
||||
love.graphics.draw(
|
||||
backgrounds[19],
|
||||
|
@ -50,9 +51,9 @@ function CreditsScene:render()
|
|||
|
||||
love.graphics.setFont(font_3x5_2)
|
||||
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(
|
||||
"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" ..
|
||||
"Mine - Tetra Online\nMrZ - Techmino\nosk - TETR.IO\n" ..
|
||||
"Phoenix Flare - Master of Blocks\nRayRay26 - Spirit Drop\n" ..
|
||||
|
@ -86,4 +87,4 @@ function CreditsScene:onInputPress(e)
|
|||
end
|
||||
end
|
||||
|
||||
return CreditsScene
|
||||
return CreditsScene
|
||||
|
|
|
@ -27,9 +27,7 @@ function GameScene:new(game_mode, ruleset, inputs)
|
|||
DiscordRPC:update({
|
||||
details = self.game.rpc_details,
|
||||
state = self.game.name,
|
||||
--largeImageText = "Level "..self.game.level????
|
||||
largeImageKey = "ingame-0"
|
||||
--largeImageKey = ingame-<section>
|
||||
largeImageKey = "ingame-"..self.game:getBackground().."00"
|
||||
})
|
||||
end
|
||||
|
||||
|
@ -41,6 +39,11 @@ function GameScene:update()
|
|||
end
|
||||
self.game:update(inputs, self.ruleset)
|
||||
self.game.grid:update()
|
||||
|
||||
print("ingame-"..self.game:getBackground().."00")
|
||||
DiscordRPC:update({
|
||||
largeImageKey = "ingame-"..self.game:getBackground().."00"
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ function ConfigScene:new()
|
|||
DiscordRPC:update({
|
||||
details = "In settings",
|
||||
state = "Changing input config",
|
||||
largeImageKey = "settings-input"
|
||||
})
|
||||
end
|
||||
|
||||
|
|