diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-24 22:03:25 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-24 22:03:25 -0600 |
commit | f6ffa422d9ebaf9cad966c260c994c731c730ff8 (patch) | |
tree | ee3adf75fb47d00b70d9686fe335a889d6ebb535 | |
parent | 3d18643be057ed1fe1a5a0e6b4d8da918488b229 (diff) | |
download | the-abstraction-engine-f6ffa422d9ebaf9cad966c260c994c731c730ff8.tar.gz the-abstraction-engine-f6ffa422d9ebaf9cad966c260c994c731c730ff8.zip |
ready for prodmoar-levels
-rw-r--r-- | src/components/GameCanvas.tsx | 2 | ||||
-rw-r--r-- | src/engine/TheAbstractionEngine.ts | 4 | ||||
-rw-r--r-- | 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<HTMLCanvasElement>(null); const [game, setGame] = useState<TheAbstractionEngine>(); - 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<br><br>modify the produced term by interacting from the top or bottom ↕️<br><br>then produce the term by pressing the button on the left or right ↔️<br><br>", + "<div>this is a Lambda Factory<br><br>modify the produced term by interacting from the top or bottom ↕️<br><br>then produce the term by pressing the button on the left or right ↔️<br><br></div>", { x: 4, y: 3 }, ), new Sign( - "this is a Term Application; interact to view its code<br><br>push the term ➡️ created by the factory any direction into the Application to produce a new one 💭<br><br>. _INPUT is the term replaced by the pushed term<br><br>. in this case _KEY is applied to the function to make a new KEY! 🔑", + "this is a Term Application; interact to view its code<br><br>push the term ➡️ created by the factory any direction into the Application to produce a new one 💭<br><br>note that:<br><br>+ _INPUT is the term replaced by the pushed term<br><br>+ in this case _KEY is applied to the function to make a new KEY! 🔑", { x: 4, y: 6 }, ), new Wall({ x: 10, y: 9 }), |