Skip to content

Documentation / @debuffjp/tilemap / TileLayer

Interface: TileLayer ​

Defined in: tilemap.ts:36

Properties ​

data ​

data: Uint32Array

Defined in: tilemap.ts:39

Tile ids row-major, width × height; 0 = empty. High bits carry FLIP_* flags.


name ​

name: string

Defined in: tilemap.ts:37


offsetX ​

offsetX: number

Defined in: tilemap.ts:45


offsetY ​

offsetY: number

Defined in: tilemap.ts:46


opacity ​

opacity: number

Defined in: tilemap.ts:41


parallaxX ​

parallaxX: number

Defined in: tilemap.ts:43

Scroll factor relative to the camera; 1 = world space, 0 = fixed to the screen.


parallaxY ​

parallaxY: number

Defined in: tilemap.ts:44


visible ​

visible: boolean

Defined in: tilemap.ts:40