本文へ移動

Meikyuu迷宮

シード付きの迷路と矢印パズルを作り、番号付きの問題を進め、平面や立体表面で遊べます。

「迷宮」は迷路のように入り組んだ場所を表す言葉です。 名前について(英語)

目次

リファレンス

遊べる立体表面の迷路

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

最小化と gzip 圧縮をしたサイズは 30.2 kB(読み込むものをすべて含み、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.

エクスポート

名前種類概要
ensureSolidStyle関数Put the style of the solid in the page once, beside the board's.
mountSolid関数Draw a maze over a solid into host and play it.
SOLID_PLAY_STYLE定数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型Where a cell is on the picture, in pixels from the top left of the box.
SolidEventDetail型What every event tells of the board.
SolidMount型The mounted surface maze, game, rotation/zoom controls, native progress and cleanup handle.
SolidMountOptions型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.

ソースを見るGitHub で編集@johnmorrisdotca/meikyuu 3.2.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。