RPC image updates depending on ingame background now!
BIN
res/img/rpc/ingame-100.png
Normal file
After Width: | Height: | Size: 816 KiB |
BIN
res/img/rpc/ingame-1000.png
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
res/img/rpc/ingame-1100.png
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
res/img/rpc/ingame-1200.png
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
res/img/rpc/ingame-1300.png
Normal file
After Width: | Height: | Size: 827 KiB |
BIN
res/img/rpc/ingame-1400.png
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
res/img/rpc/ingame-1500.png
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
res/img/rpc/ingame-1600.png
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
res/img/rpc/ingame-1700.png
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
res/img/rpc/ingame-1800.png
Normal file
After Width: | Height: | Size: 1.4 MiB |
BIN
res/img/rpc/ingame-1900.png
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
res/img/rpc/ingame-200.png
Normal file
After Width: | Height: | Size: 943 KiB |
BIN
res/img/rpc/ingame-300.png
Normal file
After Width: | Height: | Size: 1.0 MiB |
BIN
res/img/rpc/ingame-400.png
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
res/img/rpc/ingame-500.png
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
res/img/rpc/ingame-600.png
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
res/img/rpc/ingame-700.png
Normal file
After Width: | Height: | Size: 676 KiB |
BIN
res/img/rpc/ingame-800.png
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
res/img/rpc/ingame-900.png
Normal file
After Width: | Height: | Size: 2.0 MiB |
BIN
res/img/rpc/settings-input.png
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
res/img/rpc/snow.png
Normal file
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
|
||||
|
||||
|