Skip to content

Commit

Permalink
Removed useless logs in front game
Browse files Browse the repository at this point in the history
  • Loading branch information
V-Fries committed Mar 10, 2024
1 parent fc9839e commit 9728a2f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions front/app/src/js/components/game/Engine/_GameSocketIO.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ export class _GameSocketIO {
await this.#connectErrorHandler(jsonString, URI);
});

this.#socketIO.on('disconnect', () => {
console.log('disconnected from game server');
});
this.#socketIO.on('disconnect', () => {});

this.#socketIO.on('fatal_error', async (data) => {
console.error('Server fatal error: ', data['error_message']);
Expand Down Expand Up @@ -169,7 +167,6 @@ export class _GameSocketIO {
while (!(this.#engine.scene instanceof Scene)) {
await sleep(50);
}
console.log('update_paddle received');

const paddle = new PlayerLocation(data['player_location'])
.getPlayerFromScene(this.#engine.scene).paddle;
Expand All @@ -181,7 +178,6 @@ export class _GameSocketIO {
while (!(this.#engine.scene instanceof Scene)) {
await sleep(50);
}
console.log('prepare_ball_for_match received');

const match = this.#engine.scene
.getMatchFromLocation(data['match_location']);
Expand All @@ -202,7 +198,6 @@ export class _GameSocketIO {
while (!(this.#engine.scene instanceof Scene)) {
await sleep(50);
}
console.log('update_ball received');

const match = this.#engine.scene
.getMatchFromLocation(data['match_location']);
Expand All @@ -226,7 +221,6 @@ export class _GameSocketIO {
while (!(this.#engine.scene instanceof Scene)) {
await sleep(50);
}
console.log('player_won_match received');

const newMatchJson = data['new_match_json'];
await this.#engine.scene.createMatchIfDoesntExist(newMatchJson);
Expand Down Expand Up @@ -284,7 +278,6 @@ export class _GameSocketIO {
while (!(this.#engine.scene instanceof Scene)) {
await sleep(50);
}
console.log('game_over received');

const winnerIndex = data;
const finalMatch = this.#engine.scene.matches[0];
Expand Down

0 comments on commit 9728a2f

Please sign in to comment.