diff --git a/res/img/rpc/ingame-100.png b/res/img/rpc/ingame-100.png new file mode 100644 index 0000000..df78b1e Binary files /dev/null and b/res/img/rpc/ingame-100.png differ diff --git a/res/img/rpc/ingame-1000.png b/res/img/rpc/ingame-1000.png new file mode 100644 index 0000000..cd71704 Binary files /dev/null and b/res/img/rpc/ingame-1000.png differ diff --git a/res/img/rpc/ingame-1100.png b/res/img/rpc/ingame-1100.png new file mode 100644 index 0000000..21a219a Binary files /dev/null and b/res/img/rpc/ingame-1100.png differ diff --git a/res/img/rpc/ingame-1200.png b/res/img/rpc/ingame-1200.png new file mode 100644 index 0000000..3bfe5d7 Binary files /dev/null and b/res/img/rpc/ingame-1200.png differ diff --git a/res/img/rpc/ingame-1300.png b/res/img/rpc/ingame-1300.png new file mode 100644 index 0000000..42a02e2 Binary files /dev/null and b/res/img/rpc/ingame-1300.png differ diff --git a/res/img/rpc/ingame-1400.png b/res/img/rpc/ingame-1400.png new file mode 100644 index 0000000..e507bb8 Binary files /dev/null and b/res/img/rpc/ingame-1400.png differ diff --git a/res/img/rpc/ingame-1500.png b/res/img/rpc/ingame-1500.png new file mode 100644 index 0000000..094a3f5 Binary files /dev/null and b/res/img/rpc/ingame-1500.png differ diff --git a/res/img/rpc/ingame-1600.png b/res/img/rpc/ingame-1600.png new file mode 100644 index 0000000..c3d9f14 Binary files /dev/null and b/res/img/rpc/ingame-1600.png differ diff --git a/res/img/rpc/ingame-1700.png b/res/img/rpc/ingame-1700.png new file mode 100644 index 0000000..8240e9c Binary files /dev/null and b/res/img/rpc/ingame-1700.png differ diff --git a/res/img/rpc/ingame-1800.png b/res/img/rpc/ingame-1800.png new file mode 100644 index 0000000..7671f97 Binary files /dev/null and b/res/img/rpc/ingame-1800.png differ diff --git a/res/img/rpc/ingame-1900.png b/res/img/rpc/ingame-1900.png new file mode 100644 index 0000000..9e4e4fd Binary files /dev/null and b/res/img/rpc/ingame-1900.png differ diff --git a/res/img/rpc/ingame-200.png b/res/img/rpc/ingame-200.png new file mode 100644 index 0000000..bc205c0 Binary files /dev/null and b/res/img/rpc/ingame-200.png differ diff --git a/res/img/rpc/ingame-300.png b/res/img/rpc/ingame-300.png new file mode 100644 index 0000000..8ed02b3 Binary files /dev/null and b/res/img/rpc/ingame-300.png differ diff --git a/res/img/rpc/ingame-400.png b/res/img/rpc/ingame-400.png new file mode 100644 index 0000000..1cb4880 Binary files /dev/null and b/res/img/rpc/ingame-400.png differ diff --git a/res/img/rpc/ingame-500.png b/res/img/rpc/ingame-500.png new file mode 100644 index 0000000..bc3c818 Binary files /dev/null and b/res/img/rpc/ingame-500.png differ diff --git a/res/img/rpc/ingame-600.png b/res/img/rpc/ingame-600.png new file mode 100644 index 0000000..8fb4081 Binary files /dev/null and b/res/img/rpc/ingame-600.png differ diff --git a/res/img/rpc/ingame-700.png b/res/img/rpc/ingame-700.png new file mode 100644 index 0000000..feb5737 Binary files /dev/null and b/res/img/rpc/ingame-700.png differ diff --git a/res/img/rpc/ingame-800.png b/res/img/rpc/ingame-800.png new file mode 100644 index 0000000..f2e4cca Binary files /dev/null and b/res/img/rpc/ingame-800.png differ diff --git a/res/img/rpc/ingame-900.png b/res/img/rpc/ingame-900.png new file mode 100644 index 0000000..eb258b7 Binary files /dev/null and b/res/img/rpc/ingame-900.png differ diff --git a/res/img/rpc/settings-input.png b/res/img/rpc/settings-input.png new file mode 100644 index 0000000..2c50289 Binary files /dev/null and b/res/img/rpc/settings-input.png differ diff --git a/res/img/rpc/snow.png b/res/img/rpc/snow.png new file mode 100644 index 0000000..49ba56f Binary files /dev/null and b/res/img/rpc/snow.png differ diff --git a/scene/credits.lua b/scene/credits.lua index 692e497..94091ed 100644 --- a/scene/credits.lua +++ b/scene/credits.lua @@ -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 \ No newline at end of file +return CreditsScene diff --git a/scene/game.lua b/scene/game.lua index 0e36d9d..da458ae 100644 --- a/scene/game.lua +++ b/scene/game.lua @@ -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-
+ 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 diff --git a/scene/input_config.lua b/scene/input_config.lua index 9004366..7b488f8 100644 --- a/scene/input_config.lua +++ b/scene/input_config.lua @@ -12,6 +12,7 @@ function ConfigScene:new() DiscordRPC:update({ details = "In settings", state = "Changing input config", + largeImageKey = "settings-input" }) end