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
| Name | Type | Description |
|---|---|---|
x | number | |
y | number |
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)