summaryrefslogtreecommitdiff
path: root/src/engine/TheAbstractionEngine.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-05 22:00:04 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2024-03-05 22:00:04 -0700
commitce06fa7c29ba4e3d6137f7aa74fbfe45af0e8b73 (patch)
treeef17306b0fe5f2f957d9c37638a6af76236c7881 /src/engine/TheAbstractionEngine.ts
parent110fe21a2340365b7b7cb72f6f44ad13ed39f4ea (diff)
downloadthe-abstraction-engine-ce06fa7c29ba4e3d6137f7aa74fbfe45af0e8b73.tar.gz
the-abstraction-engine-ce06fa7c29ba4e3d6137f7aa74fbfe45af0e8b73.zip
refactor spawners
Diffstat (limited to 'src/engine/TheAbstractionEngine.ts')
-rw-r--r--src/engine/TheAbstractionEngine.ts5
1 files changed, 2 insertions, 3 deletions
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));