summaryrefslogtreecommitdiff
path: root/client/src/app.ts
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2021-07-28 16:52:08 +0200
committerMike Vink <mike1994vink@gmail.com>2021-07-28 16:52:08 +0200
commit9e675c3652eb7a16ce5c2a865c030c76653c921e (patch)
tree6ae24d621eb38b832ba6d6595d2ad87b6f1ec5aa /client/src/app.ts
parent4d84c12df52c89abb7d3ba9f565753116b99dbf0 (diff)
feat(): refactor after playing with mixins
Diffstat (limited to 'client/src/app.ts')
-rw-r--r--client/src/app.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app.ts b/client/src/app.ts
index 05fccb5..7a80442 100644
--- a/client/src/app.ts
+++ b/client/src/app.ts
@@ -15,6 +15,8 @@ import Phaser from 'phaser';
import { gameConfig } from './akkamon/GameConfig';
import { Client } from './akkamon/client/Client';
+export var client = new Client('ws://localhost:8080');
+
function newGame () {
if (game) return;
game = new Phaser.Game(gameConfig);
@@ -26,7 +28,6 @@ function destroyGame () {
game = null;
}
-export let client = new Client('ws://localhost:8080');
let game: Phaser.Game | null | undefined;