diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-29 12:05:02 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-29 12:05:02 -0600 |
commit | fd1bb1cca9521348ae2849ef30be09264503681e (patch) | |
tree | 6859c24c53fdd2a83ed0a92ee10272aa70b6c55d /server/src/main.ts | |
parent | 8a4ab8d79b5ce1dabb431168398b5d5111fe326c (diff) | |
download | jumpstorm-fd1bb1cca9521348ae2849ef30be09264503681e.tar.gz jumpstorm-fd1bb1cca9521348ae2849ef30be09264503681e.zip |
don't update controllable entities on the client
Diffstat (limited to 'server/src/main.ts')
-rw-r--r-- | server/src/main.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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); |