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

Register puzzle boards

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

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

Exports

NameKindWhat it is
defineBoardfunctionDefines the board or a subclass under a custom tag.
KARAKURI_EMBED_OPTION_KEYSconstantNative mounted options, checked against the embed builder.
KarakuriBoardclassA reflected puzzle-game element with a preserved native controller.
KarakuriElementOptionstypeFull native host options; attributes take priority over starting choices.

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