TILE_BOX定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The box a solid tile is drawn in, in the face's units: the face, its thickness down and to the left, and a margin for the outlines.
インポート
import { TILE_BOX } from "@johnmorrisdotca/jarajara/faces";
定義
const TILE_BOX: { readonly x: number; readonly y: -1; readonly width: number; readonly height: number; } = { x: -(TILE_DEPTH + 1), y: -1, width: 30 + TILE_DEPTH + 2, height: 40 + TILE_DEPTH + 2 } as const
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
x | number | |
y | -1 | |
width | number | |
height | number |
例
import { TILE_BOX } from "@johnmorrisdotca/jarajara/faces";
console.log(TILE_BOX);{ x: -6, y: -1, width: 37, height: 47 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。