From fd1bb1cca9521348ae2849ef30be09264503681e Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Tue, 29 Aug 2023 12:05:02 -0600 Subject: don't update controllable entities on the client --- server/src/main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/src/main.ts') diff --git a/server/src/main.ts b/server/src/main.ts index 0e47491..ece6823 100644 --- a/server/src/main.ts +++ b/server/src/main.ts @@ -30,9 +30,9 @@ const server = new GameServer( ); [ + new Physics(), new SessionInputSystem(sessionManager), new NetworkUpdate(messageReceiver, messagePublisher, messageProcessor), - new Physics(), new Collision(new Grid()), new WallBounds() ].forEach((system) => game.addSystem(system)); @@ -44,9 +44,9 @@ floor.addComponent( new BoundingBox( { x: Miscellaneous.WIDTH / 2, - y: Miscellaneous.HEIGHT + floorHeight / 2 + y: Miscellaneous.HEIGHT - floorHeight / 2 }, - { width: Miscellaneous.WIDTH, height: floorHeight } + { width: Miscellaneous.WIDTH / 2, height: floorHeight } ) ); game.addEntity(floor); -- cgit v1.2.3-70-g09d2