diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-02 04:02:20 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-02 04:02:20 -0700 |
commit | 4b9349b3f8bee21eb086cfd6e7668532a50e6048 (patch) | |
tree | fa3ae95f516d8ec10fb0de57886ff88410b6d11d /src/engine/TheAbstractionEngine.ts | |
parent | 06bb4177202b432d5f42141975ec82b5a8837f0e (diff) | |
download | the-abstraction-engine-4b9349b3f8bee21eb086cfd6e7668532a50e6048.tar.gz the-abstraction-engine-4b9349b3f8bee21eb086cfd6e7668532a50e6048.zip |
add text on lambda factory
Diffstat (limited to 'src/engine/TheAbstractionEngine.ts')
-rw-r--r-- | src/engine/TheAbstractionEngine.ts | 14 |
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() { |