From ce06fa7c29ba4e3d6137f7aa74fbfe45af0e8b73 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Tue, 5 Mar 2024 22:00:04 -0700 Subject: refactor spawners --- src/engine/TheAbstractionEngine.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/engine/TheAbstractionEngine.ts') diff --git a/src/engine/TheAbstractionEngine.ts b/src/engine/TheAbstractionEngine.ts index 09419ff..d7dd28b 100644 --- a/src/engine/TheAbstractionEngine.ts +++ b/src/engine/TheAbstractionEngine.ts @@ -2,7 +2,6 @@ import { Game } from "."; import { Miscellaneous, loadAssets } from "./config"; import { Player, - FunctionBox, Wall, LambdaFactory, Key, @@ -14,8 +13,8 @@ import { FacingDirection, Input, Render, - LambdaFactory as LambdaFactorySpawnSystem, Collision, + GridSpawner, } from "./systems"; export class TheAbstractionEngine { @@ -47,7 +46,7 @@ export class TheAbstractionEngine { height: Miscellaneous.GRID_CELL_HEIGHT, }, ), - new LambdaFactorySpawnSystem(), + new GridSpawner(), new Collision(), new Render(this.ctx), ].forEach((system) => this.game.addSystem(system)); -- cgit v1.2.3-70-g09d2