リファレンス
8つのパズルの規則
import { … } from "@johnmorrisdotca/karakuri";
最小化と gzip 圧縮をしたサイズは 19.0 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
choiceStory | 名前空間 | |
Controller | 型 | One level of one game, played. |
GameInfo | 型 | What a game of the package is, for a chooser. |
gridEscape | 名前空間 | |
Info | 型 | What the player reads in the bar above the board. |
KARAKURI_STRINGS | 定数 | Native player, keyboard, game and story words in English and Japanese. |
KarakuriLanguage | 型 | The native English or Japanese puzzle-player language. |
nutsAndBolts | 名前空間 | |
pinRescue | 名前空間 | |
Point | 型 | A place in a game's own world, in its own units (not pixels). |
ropeCut | 名前空間 | |
saveTheCharacter | 名前空間 | |
say | 関数 | The words for key in lang, with each {name} filled from values; English when the language has none; the key itself when nobody has. |
Say | 型 | A line of words to be said in the player's language: a key of KARAKURI_STRINGS and the values for its {name}s. |
Status | 型 | How a level stands: still being played, won, or lost. |
stretchGrabber | 名前空間 | |
Theme | 型 | The colours and sizes a game draws with, read from the page's custom properties (--kk-*) so that it follows light, dark and the family's cloths. |
tubeSort | 名前空間 | |
VERSION | 定数 | The package's version, kept equal to package.json's by a test. |
wordKey | 関数 | The key a game's words are kept under: its id with underscores for hyphens (game_tube_sort, rules_tube_sort). |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。