summaryrefslogtreecommitdiff
path: root/src/engine/TheAbstractionEngine.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/TheAbstractionEngine.ts')
-rw-r--r--src/engine/TheAbstractionEngine.ts14
1 files changed, 12 insertions, 2 deletions
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() {