Mazethingie

Saved games stay in this browser only.

About the game

Mazethingie does one thing, and does it with no fuss. You choose how wide and how tall the maze will be, press a button, and the game draws a new random maze on the whole screen. You are a little red square in the bottom-right corner, and the exit is in the top-left. Walk there.

The mazes are "perfect": every cell can be reached from every other, and there is exactly one route between any two, so there are no loops to go around in circles and no cheating by wall-hugging shortcuts. The largest size is 51 by 51 cells, which fills the whole 160 by 160 pixel screen with corridors a single pixel wide. The smallest are quick to solve and good for a warm-up. When you reach the exit a message tells you so, and one press starts another maze. If a maze looks too hard, one press of X while playing throws it away and draws a new one.

The author wrote it, in his own words, as a way to learn how to generate mazes for the levels of another of his games.

Playing it here

Mazethingie was made for WASM-4, a fantasy console: an imaginary handheld with a 160 by 160 screen, four colours, a D-pad and two buttons, for which independent developers write new games. It came out in 2024 and runs here in the official WASM-4 runtime. Click Play and then press X on the title screen.

The width and height you chose are saved on the game's WASM-4 disk, which stays in this browser. Enter opens the WASM-4 menu, where you can also save and load the state while the page is open (2 and 4 do the same directly). A gamepad works too, and on touch screens you can use the on-screen D-pad and buttons. The game has no sound, and its text is in English.

Controls

Key WASM-4 button Action
Up / Down D-pad choose a line in the menu; move the square
Left / Right D-pad change the maze width or height; move the square
X button 1 confirm in the menu; generate a new maze while playing
Z button 2 back to the title screen
Enter — WASM-4 menu

Space or V also works as X, and C as Z.

A few things worth knowing

Start from the exit. In a perfect maze there is only one route, so tracing it back from the top-left corner with your eye saves a lot of wrong turns.

Small mazes first. Try the small sizes until the shape of a dead end becomes easy to spot.

A new maze is one press away. If you are stuck, X draws a different one.

Credits and licence

Mazethingie was created by Willems Davy (joyrider3774), who wrote the code; it uses no image, sound or font files. It is free software under the MIT licence, which allows redistribution, and runs here in the official WASM-4 runtime (ISC licence). The licence text is linked from this page.