Skip to the content

Meikyuu迷宮

Generate seeded mazes and arrow puzzles, follow numbered levels, and play on flat grids or three-dimensional surfaces.

Meikyuu is the Japanese word 迷宮 for labyrinth. About the name

Contents

Reference

Playable surface mazes

import { … } from "@johnmorrisdotca/meikyuu/3d/play";

30.2 kB minified and gzipped, with everything it imports (measured with esbuild)

A maze over a solid, played in a page: mountSolid draws a cube, a globe or a solid of triangles with a maze over its surface into any element and plays it by touch and mouse. A separate entry (@johnmorrisdotca/meikyuu/3d/play), so a server never loads any of it.

Exports

NameKindWhat it is
ensureSolidStylefunctionPut the style of the solid in the page once, beside the board's.
mountSolidfunctionDraw a maze over a solid into host and play it.
SOLID_PLAY_STYLEconstantTHE STYLE a playable solid wears beside the board's own (MEIKYUU_PLAY_STYLE): the canvas fills the box, the box is grabbed rather than drawn on, and the turn pad sits in a row.
SolidCellPlacetypeWhere a cell is on the picture, in pixels from the top left of the box.
SolidEventDetailtypeWhat every event tells of the board.
SolidMounttypeThe mounted surface maze, game, rotation/zoom controls, native progress and cleanup handle.
SolidMountOptionstypeA PLAYABLE MAZE OVER A SOLID IN ANY PAGE: mountSolid(host, { recipe }) draws a cube, a globe or a solid of triangles with a maze over the whole of its surface, and plays it by touch and mouse.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/meikyuu 3.2.0.