diff options
author | Elizabeth Hunt <elizabeth@simponic.xyz> | 2025-03-02 18:49:51 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth@simponic.xyz> | 2025-03-02 18:49:51 -0700 |
commit | 196773c3637f7dcf2a53a6cb9b3a8e8f790cce71 (patch) | |
tree | 49cb79e5728adac877ce321de7ea052e7f8b7e7e /src/engine/levels | |
parent | 491a1d05a5f001d8f5155b9169547d461ac7e8b2 (diff) | |
download | the-abstraction-engine-196773c3637f7dcf2a53a6cb9b3a8e8f790cce71.tar.gz the-abstraction-engine-196773c3637f7dcf2a53a6cb9b3a8e8f790cce71.zip |
add a piston
Diffstat (limited to 'src/engine/levels')
-rw-r--r-- | src/engine/levels/CarCadr.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/levels/CarCadr.ts b/src/engine/levels/CarCadr.ts index 8875623..ee50ee9 100644 --- a/src/engine/levels/CarCadr.ts +++ b/src/engine/levels/CarCadr.ts @@ -9,6 +9,8 @@ import { Player, Wall, } from "../entities"; +import { Piston } from "../entities/Piston"; +import { Direction } from "../interfaces"; import { Grid, SystemNames } from "../systems"; import { normalRandom } from "../utils"; @@ -58,6 +60,7 @@ export class CarCadr extends Level { new Wall({ x: 10, y: 5 }), new Wall({ x: 12, y: 5 }), new Wall({ x: 12, y: 3 }), + new Piston({ x: 10, y: 6 }, Direction.RIGHT), new FunctionApplication({ x: 12, y: 6 }, "(_INPUT _KEY)"), new Wall({ x: 10, y: 7 }), new Wall({ x: 11, y: 7 }), |