1681-engine / index / GridPlacement
Interface: GridPlacement ​
Defined in: src/core/gridPlacement.ts:2
Where the world's grid texture goes this frame (gridPlacement).
Properties ​
height ​
ts
readonly height: number;Defined in: src/core/gridPlacement.ts:8
tx ​
ts
readonly tx: number;Defined in: src/core/gridPlacement.ts:4
The world pixel the texture's top-left texel shows.
ty ​
ts
readonly ty: number;Defined in: src/core/gridPlacement.ts:5
width ​
ts
readonly width: number;Defined in: src/core/gridPlacement.ts:7
The texture's size in texels: the screen's width and height in world pixels, plus room for the fraction.
x ​
ts
readonly x: number;Defined in: src/core/gridPlacement.ts:10
Where the texture's top-left corner lands on screen (screen px, whole backing pixels).
y ​
ts
readonly y: number;Defined in: src/core/gridPlacement.ts:11