diff options
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); |