diff options
Diffstat (limited to 'src/engine/TheAbstractionEngine.ts')
-rw-r--r-- | src/engine/TheAbstractionEngine.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/engine/TheAbstractionEngine.ts b/src/engine/TheAbstractionEngine.ts index 20ff6cc..93684ef 100644 --- a/src/engine/TheAbstractionEngine.ts +++ b/src/engine/TheAbstractionEngine.ts @@ -7,6 +7,7 @@ import { Key, LockedDoor, Curry, + FunctionApplication, } from "./entities"; import { Grid, @@ -16,6 +17,7 @@ import { Collision, GridSpawner, Life, + Music, } from "./systems"; export class TheAbstractionEngine { @@ -49,8 +51,9 @@ export class TheAbstractionEngine { ), new GridSpawner(), new Collision(), - new Render(this.ctx), new Life(), + new Music(), + new Render(this.ctx), ].forEach((system) => this.game.addSystem(system)); const player = new Player(); @@ -70,6 +73,9 @@ export class TheAbstractionEngine { const curry = new Curry({ x: 9, y: 8 }); this.game.addEntity(curry); + + const application = new FunctionApplication({ x: 5, y: 5 }, "(_INPUT key)"); + this.game.addEntity(application); } public play() { |