From c6e9baa0009f7cce0f6ff156a3957ef04a8cb684 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sat, 12 Aug 2023 13:49:16 -0600 Subject: the great engine refactor --- client/src/JumpStorm.ts | 7 +------ client/src/components/GameCanvas.svelte | 2 +- client/src/components/LeaderBoard.svelte | 3 +-- client/src/components/LeaderBoardCard.svelte | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) (limited to 'client/src') diff --git a/client/src/JumpStorm.ts b/client/src/JumpStorm.ts index d1d1013..bd48483 100644 --- a/client/src/JumpStorm.ts +++ b/client/src/JumpStorm.ts @@ -17,11 +17,6 @@ export class JumpStorm { this.game = new Game(); this.socket = new WebSocket("ws://localhost:8080"); - this.socket.onopen = () => { - this.socket.send("gaming"); - console.log("OPENED SOCKET"); - }; - [ this.createInputSystem(), new FacingDirection(), @@ -32,7 +27,7 @@ export class JumpStorm { ].forEach((system) => this.game.addSystem(system)); [new Floor(160), new Player()].forEach((entity) => - this.game.addEntity(entity) + this.game.addEntity(entity), ); } diff --git a/client/src/components/GameCanvas.svelte b/client/src/components/GameCanvas.svelte index d7abecf..ae8c1b0 100644 --- a/client/src/components/GameCanvas.svelte +++ b/client/src/components/GameCanvas.svelte @@ -1,7 +1,7 @@
diff --git a/client/src/components/LeaderBoardCard.svelte b/client/src/components/LeaderBoardCard.svelte index f46c000..ae30e1a 100644 --- a/client/src/components/LeaderBoardCard.svelte +++ b/client/src/components/LeaderBoardCard.svelte @@ -1,7 +1,5 @@