Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Timmlion committed Jan 28, 2024
2 parents 484b27c + 2df2b2a commit 008c311
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 4 deletions.
12 changes: 11 additions & 1 deletion backend/MemeBE/cards.csv
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,14 @@
27;SurprisedPikachu;/static/jpg/SurprisedPikachu.png;MakeLaugh,1;1
28;SurprisedKirk;/static/jpg/SurprisedKirk.png;MakeLaugh,2;0
29;Takemymoney;/static/jpg/Takemymoney.png;MakeLaugh,2;1
30;RollSafeThink;/static/jpg/OhGodNo.png;Shield,1;2
30;RollSafeThink;/static/jpg/OhGodNo.png;Shield,1;2
31;Thatsnoneofmybuisness;/static/jpg/Thatsnoneofmybuisness.png;MakeLaugh,1;1
32;TheWhat;/static/jpg/TheWhat.png;MakeLaugh,2;1
33;Thisisfine;/static/jpg/Thisisfine.png;MakeLaugh,1;1
34;TrollFace;/static/jpg/TrollFace.png;MakeGrumpy,1;0
35;TrueStory;/static/jpg/TrueStory.png;MakeGrumpy,1;0
36;WakingUp;/static/jpg/WakingUp.png;MakeLaugh,3;0
37;Watlady;/static/jpg/Watlady.png;MakeGrumpy,1;1
38;WeedGuy;/static/jpg/WeedGuy.png;MakeLaugh,1;1
39;WillyWonka;/static/jpg/WillyWonka.png;MakeLaugh,1;1
40;Duckface;/static/jpg/Duckface.png;MakeGrumpy,1;1
4 changes: 2 additions & 2 deletions backend/MemeBE/hubs/GameHub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ public async Task EndTurn(Room room)
{
Console.WriteLine("End turn - start");
await Clients.Client(room.ActivePlayer.ConnectionID).SendAsync("TurnEnd");
await Clients.Group(room.RoomId)
.SendAsync("ReceiveServerRoomMessage", room.ActivePlayer.Nick + " - turn Ended");
// await Clients.Group(room.RoomId)
// .SendAsync("ReceiveServerRoomMessage", room.ActivePlayer.Nick + " - turn Ended");

if (room.GameStarted)
{
Expand Down
1 change: 1 addition & 0 deletions client/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ body {
border-radius: 6px;
display: inline-block;
flex: 0 0 auto;
cursor: pointer;

}

Expand Down
Binary file added client/static/jpg/Duckface.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/static/jpg/Thatsnoneofmybuisness.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/static/jpg/TheWhat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/static/jpg/Thisisfine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/static/jpg/TrollFace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/static/jpg/TrueStory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/static/jpg/WakingUp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/static/jpg/Watlady.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/static/jpg/WeedGuy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/static/jpg/WillyWonka.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion client/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function initReceiveMethods() {
$("#startGameButton").show();
}
$("#playerName").text(playerName);
$("#playerPersistentCards").data('player-name', playerName);
document.querySelector("#playerPersistentCards").setAttribute('data-player-name', playerName);
otherPlayers.forEach((playerName) => addPlayerZone(playerName));
});

Expand Down Expand Up @@ -113,6 +113,14 @@ function initReceiveMethods() {
document.querySelector('#playersZones .other.player[data-player-name="' + target + '"] .points').innerHTML = points;
});

connection.on("TakeGrumpy", function (points) {
$("#playerHP").text(points);
});

connection.on("OtherTookGrumpy", function (target, points) {
document.querySelector('#playersZones .other.player[data-player-name="' + target + '"] .points').innerHTML = points;
});

connection.on("TurnStarted", function () {
yourTurn = true;
});
Expand Down

0 comments on commit 008c311

Please sign in to comment.