Full playable demo

Play the full demo

Play the completed game first. Reopen it whenever you need to check the target behaviour, but the demo never reveals the source code.

Playable result only — the source code stays hidden.

Mission 00 5 min

Mission 0: See What You’re Building

Play Maze Escape first and notice the rule: touching a wall sends you back, and the exit does not work until you collect the key. The route has several turns, but the corridors are deliberately wide enough to stay beginner-friendly.

This quest is more reasoning-heavy than the earlier games. It reuses arrays, objects, loops, functions and collision checks together, with fewer code-shaped requirements.

Build roadmap

What you’ll build, mission by mission

  1. 1
    Start and exit

    Make the goal visible.

  2. 2
    Move the player

    Recall four-direction controls.

  3. 3
    Draw one wall

    Represent rectangle geometry as an object.

  4. 4
    Debug collision

    Reason about left and right edges.

  5. 5
    Build the maze

    Store several walls in an array.

  6. 6
    Check every wall

    Generalise collision with a function parameter.

  7. 7
    Reach the exit

    Create a win condition.

  8. 8
    Find the key

    Add a prerequisite using Boolean state.

  9. 9
    Restart

    Reset the progress state independently.

Mission demoStart Here, Escape There

Finished result only — the answer code stays hidden.