From 4b9349b3f8bee21eb086cfd6e7668532a50e6048 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sat, 2 Mar 2024 04:02:20 -0700 Subject: add text on lambda factory --- src/engine/TheAbstractionEngine.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/engine/TheAbstractionEngine.ts') diff --git a/src/engine/TheAbstractionEngine.ts b/src/engine/TheAbstractionEngine.ts index 2db599b..7f71fd5 100644 --- a/src/engine/TheAbstractionEngine.ts +++ b/src/engine/TheAbstractionEngine.ts @@ -1,7 +1,13 @@ import { Game } from "."; import { Miscellaneous, loadAssets } from "./config"; -import { Player, FunctionBox, Wall } from "./entities"; -import { Grid, FacingDirection, Input, Render } from "./systems"; +import { Player, FunctionBox, Wall, LambdaFactory } from "./entities"; +import { + Grid, + FacingDirection, + Input, + Render, + LambdaFactory as LambdaFactorySpawnSystem, +} from "./systems"; export class TheAbstractionEngine { private game: Game; @@ -32,6 +38,7 @@ export class TheAbstractionEngine { height: Miscellaneous.GRID_CELL_HEIGHT, }, ), + new LambdaFactorySpawnSystem(), new Render(this.ctx), ].forEach((system) => this.game.addSystem(system)); @@ -45,6 +52,9 @@ export class TheAbstractionEngine { const wall = new Wall({ x: 5, y: 3 }); this.game.addEntity(wall); + + const factory = new LambdaFactory({ x: 6, y: 6 }, "λ x . (x)", 10); + this.game.addEntity(factory); } public play() { -- cgit v1.2.3-70-g09d2