5 CRYSTALS, 50 MOVES

A little light.
A long way out.

WELCOME TO CRYSTAL CAVERN

You have 50 moves.
Collect 5 crystals, then reach the gate in the top-right corner.

01The forgotten grottoREADY

A maze of stone corridors contains five crystals, two spike traps, a healing potion, and an exit in the top right. Your explorer starts in the top left.

THE WAY IN

Follow the glow.

5 crystals are hidden in the rock.
Find them all, then take the gate in the top-right corner.

No rush. Your torch only burns when you move.

Tap once to step.
Hold to keep walking.

◇ Walking into a wall costs nothing.
IN THE CAVE

What each one
does to your run.

The crystals

5 in total. The gate opens once you have them all.

Mind your step

Spikes take 2 hearts. They stay where they are.

A second chance

1 potion that restores 3 hearts, gone once you drink it.

THE EXPLORER’S GUIDE

How to make it out.

Collect all 5 crystals, then step into the gate in the top-right corner. Your torch lasts 50 successful moves.

PAUSED

Catch your breath.

Nothing moves while this is open. The torch only burns when you step.

START OVER

Back to the entrance?

This run ends here. Your best score is saved.

UNDER THE SURFACE

One engine,
two frontends.

Every rule lives in C++17, compiled to WebAssembly: movement, collisions, damage, the torch, and your score. The same engine still runs the original terminal game.

The cave artwork is drawn in Canvas 2D. JavaScript handles animation, input, synthesized audio, and your locally saved best score. There is no game framework, no art to download, and no backend.

C++17WebAssemblyCanvas 2DWeb Audio
Read the source