diff options
author | Lizzy Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-11 16:22:06 -0600 |
---|---|---|
committer | Lizzy Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-11 16:22:06 -0600 |
commit | 32879581e53fae5e684c24b44433172d8375d69e (patch) | |
tree | 307551e59409c2f01168e5fabeff200319c18aa7 /src/engine/levels | |
parent | 4da17f6dedb4475c7730bdeab9ad3e339f0bfdee (diff) | |
download | the-abstraction-engine-32879581e53fae5e684c24b44433172d8375d69e.tar.gz the-abstraction-engine-32879581e53fae5e684c24b44433172d8375d69e.zip |
support underscores in function application, add sign entity
Diffstat (limited to 'src/engine/levels')
-rw-r--r-- | src/engine/levels/Tutorial.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/engine/levels/Tutorial.ts b/src/engine/levels/Tutorial.ts index 694c8ff..b720346 100644 --- a/src/engine/levels/Tutorial.ts +++ b/src/engine/levels/Tutorial.ts @@ -6,6 +6,7 @@ import { LambdaFactory, LockedDoor, Player, + Sign, Wall, } from "../entities"; @@ -16,14 +17,15 @@ export class Tutorial extends Level { public init(game: Game): void { const entities = [ - new Player({ x: 2, y: 2 }), + new Sign("TODO: Explain entities", { x: 4, y: 3 }), new Wall({ x: 10, y: 9 }), new Wall({ x: 10, y: 11 }), new Wall({ x: 11, y: 10 }), new Curry({ x: 10, y: 10 }), new LockedDoor({ x: 9, y: 10 }), new LambdaFactory({ x: 6, y: 3 }, "// TODO: Remove line\n(λ (x) . x)", 3), - new FunctionApplication({ x: 6, y: 6 }, "(_INPUT key)"), + new FunctionApplication({ x: 6, y: 6 }, "(_INPUT _KEY)"), + new Player({ x: 2, y: 2 }), ]; entities.forEach((entity) => game.addEntity(entity)); |