diff options
Diffstat (limited to 'server/src/server.ts')
-rw-r--r-- | server/src/server.ts | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/server/src/server.ts b/server/src/server.ts index f699ea9..74d901b 100644 --- a/server/src/server.ts +++ b/server/src/server.ts @@ -1,21 +1,17 @@ import { Game } from "../../engine/Game"; import { Floor, Player } from "../../engine/entities"; -import { - WallBounds, - FacingDirection, - Physics, - Input, - Collision, -} from "../../engine/systems"; +import { WallBounds, Physics, Collision } from "../../engine/systems"; import { Miscellaneous } from "../../engine/config"; const TICK_RATE = 60 / 1000; const game = new Game(); -[new Physics(), new Collision(), new WallBounds(Miscellaneous.WIDTH)].forEach( - (system) => game.addSystem(system) -); +[ + new Physics(), + new Collision({ width: Miscellaneous.WIDTH, height: Miscellaneous.HEIGHT }), + new WallBounds(Miscellaneous.WIDTH), +].forEach((system) => game.addSystem(system)); [new Floor(160), new Player()].forEach((entity) => game.addEntity(entity)); |