← Back to game

Maze Escape

Navigate your character through 10 increasingly complex mazes to reach the exit. Each maze has a unique theme — find the fastest path and escape before the clock climbs too high.

The mazes grow wider and more intricate with each level. Fewer steps and a lower time gives you a better rating per level.


How to Play


About This Game

Maze Escape generates a new maze every time you play and challenges you to find the exit as quickly and efficiently as possible. Ten levels, growing in size and complexity. There's no timer pressure early on — the game tracks your time and step count as a personal efficiency score, rewarding players who think before they move.


Why We Built It

Procedural maze generation solves the replay problem: you never solve the same puzzle twice. We used a recursive backtracking algorithm because it produces mazes with a single solution path, which means there's always exactly one correct route and every dead end is a genuine dead end. The step counter was added as a secondary challenge for players who want to optimize their path rather than just escape.


How It Works

Each maze is generated using recursive backtracking — the algorithm carves passages from a starting cell by randomly visiting unvisited neighbors, backtracking when no neighbors are available. This guarantees a connected maze with exactly one solution path between any two cells. The grid size increases with each level. The player is drawn as a dot that moves one cell at a time. The exit tile triggers the level-complete state when the player occupies it.


Tips & Strategy


Ideas for Improvement

Play Game