summaryrefslogtreecommitdiff
path: root/client/src/JumpStorm.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/JumpStorm.ts')
-rw-r--r--client/src/JumpStorm.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/client/src/JumpStorm.ts b/client/src/JumpStorm.ts
index 8075cc8..008ba13 100644
--- a/client/src/JumpStorm.ts
+++ b/client/src/JumpStorm.ts
@@ -1,5 +1,7 @@
import { Floor, Player } from "@engine/entities";
import { Game } from "@engine/Game";
+import { Grid } from "@engine/structures";
+import { Miscellaneous } from "@engine/config";
import {
WallBounds,
FacingDirection,
@@ -65,11 +67,16 @@ export class JumpStorm {
socket,
);
+ const grid = new Grid(
+ { width: Miscellaneous.WIDTH, height: Miscellaneous.HEIGHT },
+ { width: 30, height: 30 },
+ );
+
[
this.createInputSystem(),
new FacingDirection(),
new Physics(),
- new Collision(),
+ new Collision(grid),
new WallBounds(ctx.canvas.width),
new NetworkUpdate(
clientSocketMessageQueueProvider,