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 · Controllers and canvas player

KARAKURI_GAME_IDSconstant

The ids of the games, in the order the package lists them (kebab case, the same in every address and attribute).

Import it

import { KARAKURI_GAME_IDS } from "@johnmorrisdotca/karakuri/play";

Definition

const KARAKURI_GAME_IDS: readonly ["save-the-character", "pin-rescue", "nuts-and-bolts", "stretch-grabber", "grid-escape", "rope-cut", "tube-sort", "choice-story"] = [
    "save-the-character",
    "pin-rescue",
    "nuts-and-bolts",
    "stretch-grabber",
    "grid-escape",
    "rope-cut",
    "tube-sort",
    "choice-story",
] as const

Examples

import { KARAKURI_GAME_IDS } from "@johnmorrisdotca/karakuri/play";

console.log(KARAKURI_GAME_IDS);
[
  'save-the-character',
  'pin-rescue',
  'nuts-and-bolts',
  'stretch-grabber',
  'grid-escape',
  'rope-cut',
  'tube-sort',
  'choice-story'
]

What it prints (run when this page was built)

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