From 55024f44c3713049c68e4f3f23ecdc3633cd4a24 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Fri, 1 Mar 2024 22:04:57 -0700 Subject: add function box entity --- src/engine/TheAbstractionEngine.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/engine/TheAbstractionEngine.ts') diff --git a/src/engine/TheAbstractionEngine.ts b/src/engine/TheAbstractionEngine.ts index 094555b..3859447 100644 --- a/src/engine/TheAbstractionEngine.ts +++ b/src/engine/TheAbstractionEngine.ts @@ -1,6 +1,6 @@ import { Game } from "."; import { Miscellaneous, loadAssets } from "./config"; -import { Player } from "./entities"; +import { Player, FunctionBox } from "./entities"; import { FacingDirection, Input, Render } from "./systems"; import { Grid } from "./systems/Grid"; @@ -38,6 +38,9 @@ export class TheAbstractionEngine { const player = new Player(); this.game.addEntity(player); + + const box = new FunctionBox({ x: 5, y: 5 }); + this.game.addEntity(box); } public play() { -- cgit v1.2.3-70-g09d2