diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-21 14:50:09 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-21 14:50:09 -0600 |
commit | b786fe1e723b7cf905cdd7e525375dfe96241a21 (patch) | |
tree | 7f7b9da960c62b8e4667a173913f950ea0ec0758 /client/src | |
parent | 8fce5a5f2530496e1390763364c01392a1a63640 (diff) | |
download | jumpstorm-b786fe1e723b7cf905cdd7e525375dfe96241a21.tar.gz jumpstorm-b786fe1e723b7cf905cdd7e525375dfe96241a21.zip |
add default arguments to grid; add grid to server gl
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/JumpStorm.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/JumpStorm.ts b/client/src/JumpStorm.ts index 008ba13..e094a6f 100644 --- a/client/src/JumpStorm.ts +++ b/client/src/JumpStorm.ts @@ -64,12 +64,12 @@ export class JumpStorm { const clientSocketMessageQueueProvider = new ClientSocketMessageQueueProvider(socket); const clientSocketMessagePublisher = new ClientSocketMessagePublisher( - socket, + socket ); const grid = new Grid( { width: Miscellaneous.WIDTH, height: Miscellaneous.HEIGHT }, - { width: 30, height: 30 }, + { width: 30, height: 30 } ); [ @@ -80,13 +80,13 @@ export class JumpStorm { new WallBounds(ctx.canvas.width), new NetworkUpdate( clientSocketMessageQueueProvider, - clientSocketMessagePublisher, + clientSocketMessagePublisher ), new Render(ctx), ].forEach((system) => this.game.addSystem(system)); [new Floor(160), new Player()].forEach((entity) => - this.game.addEntity(entity), + this.game.addEntity(entity) ); } |