Skip to the content

Karakuriからくり

Play eight native puzzles, run bounded searches, step deterministic physics and mount a canvas player controlled by pointer or keyboard.

Karakuri is the Japanese word からくり for a mechanism or ingenious device. About the name

Contents

Reference

Eight puzzle-rule namespaces

import { … } from "@johnmorrisdotca/karakuri";

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

Exports

NameKindWhat it is
choiceStorynamespace
ControllertypeOne level of one game, played.
GameInfotypeWhat a game of the package is, for a chooser.
gridEscapenamespace
InfotypeWhat the player reads in the bar above the board.
KARAKURI_STRINGSconstantNative player, keyboard, game and story words in English and Japanese.
KarakuriLanguagetypeThe native English or Japanese puzzle-player language.
nutsAndBoltsnamespace
pinRescuenamespace
PointtypeA place in a game's own world, in its own units (not pixels).
ropeCutnamespace
saveTheCharacternamespace
sayfunctionThe words for key in lang, with each {name} filled from values; English when the language has none; the key itself when nobody has.
SaytypeA line of words to be said in the player's language: a key of KARAKURI_STRINGS and the values for its {name}s.
StatustypeHow a level stands: still being played, won, or lost.
stretchGrabbernamespace
ThemetypeThe 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.
tubeSortnamespace
VERSIONconstantThe package's version, kept equal to package.json's by a test.
wordKeyfunctionThe key a game's words are kept under: its id with underscores for hyphens (game_tube_sort, rules_tube_sort).

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/karakuri 0.2.1.