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 · Puzzle board element

KARAKURI_EMBED_OPTION_KEYSconstant

Native mounted options, checked against the embed builder.

Import it

import { KARAKURI_EMBED_OPTION_KEYS } from "@johnmorrisdotca/karakuri/element";

Also exported from: @johnmorrisdotca/karakuri/element/define

Definition

const KARAKURI_EMBED_OPTION_KEYS: string[] = Object.keys({
    game: true,
    controller: true,
    keyboard: true,
    keyboardStep: true,
    level: true,
    lang: true,
    ui: true,
    room: true,
    clock: true,
    onStatus: true,
    onChange: true,
} satisfies Record<keyof MountOptions, boolean>)

Examples

import { KARAKURI_EMBED_OPTION_KEYS } from "@johnmorrisdotca/karakuri/element";
console.log(KARAKURI_EMBED_OPTION_KEYS.includes("keyboard"));
true

What it prints (run when this page was built)

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