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
| Name | Kind | What it is |
|---|---|---|
ensureSolidStyle | function | Put the style of the solid in the page once, beside the board's. |
mountSolid | function | Draw a maze over a solid into host and play it. |
SOLID_PLAY_STYLE | constant | THE 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. |
SolidCellPlace | type | Where a cell is on the picture, in pixels from the top left of the box. |
SolidEventDetail | type | What every event tells of the board. |
SolidMount | type | The mounted surface maze, game, rotation/zoom controls, native progress and cleanup handle. |
SolidMountOptions | type | A 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. |