Reference · Playable surface mazes
SolidCellPlacetype
Where a cell is on the picture, in pixels from the top left of the box.
Import it
import type { SolidCellPlace } from "@johnmorrisdotca/meikyuu/3d/play";
Definition
type SolidCellPlace = {
x: number;
y: number;
visible: boolean;
facing: number;
room: number;
};
Members
| Name | Type | Description |
|---|---|---|
x | number | |
y | number | |
visible | boolean | |
facing | number | |
room | number |
Examples
import type { SolidCellPlace } from "@johnmorrisdotca/meikyuu/3d/play";
const value: SolidCellPlace = {x:320,y:240,visible:true,facing:1,room:100};
console.log(value);{ x: 320, y: 240, visible: true, facing: 1, room: 100 }What it prints (run when this page was built)