A browser maze where the walls slide shut while you're inside it, in the pitch dark, with red balls hunting you. Here's how it was built — and why the first version got thrown out.
Most mazes have one problem: once you've seen the layout, it's solved. I wanted a maze that never lets you feel safe. So I made the walls move.
3D Dynamic Maze is a ball-rolling maze you play in your browser. Whole sections of wall slide slowly along their own line into the doorway beside them, shutting it, then slide back. A corridor that's open right now can be sealed a few seconds later. You're always reading the maze, timing your run, and deciding: dash through before it closes, or wait for the wall to slide back.
Then I turned the lights off
On the easiest tier you can see the whole board. On every tier above it, the maze is pitch black. The only light is your glowing ball — a small pool of brightness that moves with you, so you see the walls right around you and nothing beyond. Coins glow in the dark and light up the walls near them. A floating lamp hovers just above the ball so you can read the walls it's about to meet.
Darkness turned a puzzle into a nerve game. You can hear a wall grinding before you can see it move. You edge around a corner not knowing what's there. It's the same maze, but it feels completely different.
Something is hunting you
Then I added red balls. One on the second tier, two on the third, three on the hardest. Each one hunts you through the dark when you're close, and gives up and wanders off when you're not — they're always a little slower than you, so there's always a way out if you keep your head. Two red balls that bump into each other knock apart and head off in new directions.
Get caught, and your ball bursts into glowing dust and re-forms at your last checkpoint. I wanted losing to feel like something, not just a reset.
Fighting back with lightning
A chase game where you can only run gets old. So coins aren't just score — they're ammunition. Spend a few and you fire a lightning strike at the nearest red ball: a forked bolt arcs over the walls, the screen flashes, thunder rolls, and the red ball explodes into dust. It comes back a while later, somewhere far away. Suddenly the dark has a weapon in it.
I made the coins work against you, too. They used to sit along the route to the exit — basically a trail of breadcrumbs. Now most of them hide in dead ends and side passages. Chasing coins in the dark is exactly how you get lost and cornered.
The number that made me rebuild the whole thing
Here's the part I didn't expect. I put the game out, drove some traffic to it, and looked at the data. Players were staying for minutes — great. But only three percent of them ever finished a single level.
Every level, including level one, was a full-size maze: over a thousand steps from start to exit. A new player's very first maze was a five-minute marathon in the dark. Almost nobody saw the exit.
The mechanics weren't the problem. The on-ramp was. So I rebuilt the opening.
The fix: start small, start playing
Now the first levels are tiny — a 17×17 maze you finish in under a minute — and they grow with every level until the full-size mazes arrive once you actually know how to play. New players don't get a menu at all: you're rolling the moment the game loads, and the difficulty choice appears after your first win, when it means something. Short tips pop up right when each new thing shows up — the first sliding wall, the first coin, the first red ball, the first catch.
- Small mazes first, growing level by level
- No menu for a new player — straight into level one
- Tips that appear at the exact moment you need them
- Graphics that quietly step down on slower phones so the frame rate holds
None of it changed what the game is. It just let people get far enough in to find out.
Built to open in one click
The whole game is a single HTML file, built with Three.js. It runs in the browser on desktop and mobile with nothing to download and nothing to install. There's a daily challenge too — the same maze for every player each day, played in the dark, scored out of 1000, so you can race the same board as everyone else.
It's a solo project, and it's still growing. If you play it, I'd genuinely love to know where you got stuck.
▶ Play 3D Dynamic Maze free in your browser — no download. Made by Hilmybox.