Talos docs

PixelScaleConfig

Since 0.6

A whole-number pixel scale: see {@link Follow2DConfig.pixelScale}.

Plain text

Signature

export interface PixelScaleConfig {
  /** Texels of the art per world unit: 18 for 18 px tiles on a 1-unit `cellSize`. */
  texelsPerUnit: number
  /** The least height of world the view must show, units. */
  minHeight: number
}

Import: import type { PixelScaleConfig } from "@argus/gameplay"

Members

MemberSignatureDescription
texelsPerUnittexelsPerUnit: numberTexels of the art per world unit: 18 for 18 px tiles on a 1-unit cellSize.
minHeightminHeight: numberThe least height of world the view must show, units.