From f6ffa422d9ebaf9cad966c260c994c731c730ff8 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sun, 24 Mar 2024 22:03:25 -0600 Subject: [PATCH] ready for prod --- src/components/GameCanvas.tsx | 2 +- src/engine/TheAbstractionEngine.ts | 4 ++-- src/engine/levels/Tutorial.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/GameCanvas.tsx b/src/components/GameCanvas.tsx index 18dd52e..b6c585d 100644 --- a/src/components/GameCanvas.tsx +++ b/src/components/GameCanvas.tsx @@ -11,7 +11,7 @@ export interface GameCanvasProps { export const GameCanvas = ({ width, height }: GameCanvasProps) => { const canvasRef = useRef(null); const [game, setGame] = useState(); - const [ready, setReady] = useState(true); // false); + const [ready, setReady] = useState(false); const [loading, setLoading] = useState(true); useEffect(() => { diff --git a/src/engine/TheAbstractionEngine.ts b/src/engine/TheAbstractionEngine.ts index d130a6f..29bc553 100644 --- a/src/engine/TheAbstractionEngine.ts +++ b/src/engine/TheAbstractionEngine.ts @@ -33,7 +33,7 @@ export class TheAbstractionEngine { const facingDirectionSystem = new FacingDirection(inputSystem); [ - new Level(LevelNames.Tutorial), + new Level(LevelNames.LevelSelection), inputSystem, facingDirectionSystem, new Grid( @@ -46,7 +46,7 @@ export class TheAbstractionEngine { new GridSpawner(), new Collision(), new Life(), - // new Music(), + new Music(), new Render(this.ctx), ].forEach((system) => this.game.addSystem(system)); } diff --git a/src/engine/levels/Tutorial.ts b/src/engine/levels/Tutorial.ts index a8ba8d0..895b569 100644 --- a/src/engine/levels/Tutorial.ts +++ b/src/engine/levels/Tutorial.ts @@ -39,11 +39,11 @@ export class Tutorial extends Level { const entities = [ ...grasses, new Sign( - "this is a Lambda Factory

modify the produced term by interacting from the top or bottom ↕️

then produce the term by pressing the button on the left or right ↔️

", + "
this is a Lambda Factory

modify the produced term by interacting from the top or bottom ↕️

then produce the term by pressing the button on the left or right ↔️

", { x: 4, y: 3 }, ), new Sign( - "this is a Term Application; interact to view its code

push the term ➡️ created by the factory any direction into the Application to produce a new one 💭

. _INPUT is the term replaced by the pushed term

. in this case _KEY is applied to the function to make a new KEY! 🔑", + "this is a Term Application; interact to view its code

push the term ➡️ created by the factory any direction into the Application to produce a new one 💭

note that:

+ _INPUT is the term replaced by the pushed term

+ in this case _KEY is applied to the function to make a new KEY! 🔑", { x: 4, y: 6 }, ), new Wall({ x: 10, y: 9 }),