DriftTexture · interface

Overlay

Explained in DriftTexture.

interface Overlay
import type { Overlay } from '@driftengine/texture';

Properties

NameTypeDescription
tileSizereadonlynumberTexels along a tile edge.
tilesAcrossreadonlynumberTiles along the unit square's edge.
resolutionreadonlynumberTexels along the whole unit square's edge: tileSize * tilesAcross.
addressModereadonlynumber
tilesreadonlyMap<string, OverlayTile>Written tiles only, keyed "tx,ty". An untouched tile does not exist.