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

Pointtype

A place in a game's own world, in its own units (not pixels).

Import it

import type { Point } from "@johnmorrisdotca/karakuri/play";

Also exported from: @johnmorrisdotca/karakuri

Definition

interface Point {
    x: number;
    y: number;
}

Members

NameTypeDescription
xnumber
ynumber

Examples

import type { Point } from "@johnmorrisdotca/karakuri/play";

const value: Point = {x:10,y:10};
console.log(value);
{ x: 10, y: 10 }

What it prints (run when this page was built)

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