From dcb669490cd3bf797b6a902896808fa419644b1a Mon Sep 17 00:00:00 2001 From: Andrio Celos Date: Sun, 13 Aug 2023 22:20:23 +1000 Subject: [PATCH] Multiple-game sets This allows any number of games to be played in a room. Each player bar will show the number of games that player has won. If a goal win count is selected in More Options, the set will end when someone reaches that many wins. Otherwise, players can start a new game after the game ends. --- TableturfBattleClient/index.html | 78 ++++++-- TableturfBattleClient/src/GameState.ts | 6 +- TableturfBattleClient/src/GameVariables.ts | 13 +- TableturfBattleClient/src/Pages/GamePage.ts | 171 ++++++++++++++--- .../src/Pages/PreGamePage.ts | 3 + TableturfBattleClient/src/Player.ts | 1 + TableturfBattleClient/src/PlayerBar.ts | 21 ++ TableturfBattleClient/src/PlayerData.ts | 6 - TableturfBattleClient/src/ReplayLoader.ts | 180 ++++++++++++++++++ TableturfBattleClient/src/app.ts | 123 ++---------- TableturfBattleClient/tableturf.css | 111 +++++++---- TableturfBattleServer/DataStructures.cs | 2 +- TableturfBattleServer/Game.cs | 120 ++++++++---- TableturfBattleServer/GameState.cs | 8 +- TableturfBattleServer/Player.cs | 61 +++--- TableturfBattleServer/Program.cs | 65 ++++++- TableturfBattleServer/SingleGameData.cs | 25 +++ 17 files changed, 724 insertions(+), 270 deletions(-) create mode 100644 TableturfBattleClient/src/ReplayLoader.ts create mode 100644 TableturfBattleServer/SingleGameData.cs diff --git a/TableturfBattleClient/index.html b/TableturfBattleClient/index.html index 9ccd2cb..0a078b9 100644 --- a/TableturfBattleClient/index.html +++ b/TableturfBattleClient/index.html @@ -55,7 +55,7 @@ Help