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

KARAKURI_STRINGSconstant

Native player, keyboard, game and story words in English and Japanese.

Import it

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

Definition

const KARAKURI_STRINGS: Record<KarakuriLanguage, Record<string, string>> = {
    en: { ...BASE_STRINGS.en, ...STORY_STRINGS.en },
    ja: { ...BASE_STRINGS.ja, ...STORY_STRINGS.ja },
}

Members

NameTypeDescription
enRecord<string, string>
jaRecord<string, string>

Examples

import { KARAKURI_STRINGS } from "@johnmorrisdotca/karakuri";
console.log(KARAKURI_STRINGS.en.keyboardPosition);
Cursor {x}, {y}.

What it prints (run when this page was built)

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