PixelScaleConfig
Since 0.6
A whole-number pixel scale: see {@link Follow2DConfig.pixelScale}.
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
| Member | Signature | Description |
|---|---|---|
texelsPerUnit | texelsPerUnit: number | Texels of the art per world unit: 18 for 18 px tiles on a 1-unit cellSize. |
minHeight | minHeight: number | The least height of world the view must show, units. |