From 196773c3637f7dcf2a53a6cb9b3a8e8f790cce71 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 2 Mar 2025 18:49:51 -0700 Subject: add a piston --- src/engine/levels/CarCadr.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/engine/levels') 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 }), -- cgit v1.2.3-70-g09d2