labyrinth.
THE MARBLE COLLECTION / 01
BOARD 01 / 08
YOUR FIRST LITTLE ESCAPE
    One marble. Endless possibilities.L / 01

    Your next five minutes, a little quieter.

    MAKE YOURSELF COMFORTABLE

    Find your feel.

    Applied when you begin a new journey.

    Keyboard and touch controls are always available.

    Install Labyrinth

    Keep a little escape on your home screen. Play offline after your first successful visit.

    Use your browser’s menu to install Labyrinth.

    Chrome on Android

    Three-dot menu → Install and create shortcut → Install.

    Some versions use Add to Home screen → Install app.

    Safari on iPhone/iPad

    Share → scroll down → Add to Home Screen → Add.

    BEHIND THE BOARD

    Labyrinth PWA

    A classic marble maze, reimagined for a little moment of play.

    A fresh path, every journey

    Eight boards are made with seeded maze generation and a route to the finish. Retries keep the same layout, so you can learn each turn. Route hazards are checked against the marble’s full width, leaving a gap to steer past. The path hint follows those gaps.

    Procedural generationSeeded mazesRoute finding

    A marble with momentum

    A custom physics loop handles acceleration, drag, speed limits, and collisions with the rails. The board is drawn with Canvas 2D, using light, shadows, and mineral veins to give it a tactile feel.

    Canvas 2DFixed timestepCollision detection

    Find your own balance

    Tilt controls use your device’s orientation, with calibration, input smoothing, and screen-rotation handling. A touch direction pad and keyboard controls make the same journey playable on phones, tablets, and desktops. Marble speed and tilt sensitivity can be adjusted separately.

    DeviceOrientationCalibrationTouch & keyboard

    A small app that travels with you

    Built with native JavaScript and ES modules. A service worker caches the game for offline play after its first successful load. Your preferences and personal bests are saved on this device, while a screen wake lock helps keep the board awake during play where supported.

    ES modulesProgressive Web AppOffline cachingLocal storage

    Created by Brent Abernethy.