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
mister-wise committed Jan 28, 2024
2 parents 22fe4dc + 81c7943 commit 4dea0ee
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 15 deletions.
Binary file added client/static/jpg/SaladCat.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/Satisfaction.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/ScumbagSteve.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/SpanishLaughingGuy.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/SpiderMan.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/StareDad.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/SuccessBaby.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/SurprisedPikachu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 3 additions & 15 deletions client/static/js/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
let connection;
let playerName = localStorage.getItem('playerName');
let yourTurn = false;
let cmdInProgress = false;
let selectedCard = null;
let currentRoomID = null;

Expand All @@ -11,8 +12,8 @@ $(document).ready(function () {

function initServer() {
connection = new signalR.HubConnectionBuilder()
// .withUrl("https://memethegatheringapi.azurewebsites.net/GameHub")
.withUrl("https://578d-87-206-130-93.ngrok-free.app/GameHub")
.withUrl("https://memethegatheringapi.azurewebsites.net/GameHub")
// .withUrl("https://578d-87-206-130-93.ngrok-free.app/GameHub")
.withAutomaticReconnect()
.configureLogging(signalR.LogLevel.Information)
.build();
Expand Down Expand Up @@ -112,19 +113,6 @@ 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("GameEnded", function (message) {
yourTurn = false;
ShowEndGameScreen(message);
});

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

0 comments on commit 4dea0ee

Please sign in to comment.