From e6e29440563e33bb67e0ad51f9fb6c5c2c3fe809 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Thu, 7 Mar 2024 20:45:47 -0700 Subject: level one (applications prototype finished!) --- src/engine/TheAbstractionEngine.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/engine/TheAbstractionEngine.ts') 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() { -- cgit v1.2.3-70-g09d2