Skip to content

Tier

engine.tier: how much the device can draw. Games read name, and scale counts with scale(n); the engine applies the rest (resolution, effects).

const sparks = engine.particles(frame, { max: engine.tier.scale(200) })

readonly name: TierName

‘high’, ‘medium’ or ‘low’.


readonly resolution: number

Most backing-store pixels per stage unit (the stage is 720 units high): 1.5, 1, 0.75.


readonly particles: number

Particles and other counts: × 1, × 0.5, × 0.2.


readonly effects: boolean

Additive glows and extra layers (high only).


readonly maxBlur: number

The largest blur (blur(), dropShadow()) radius, stage units: 32, 16, 0 (off: shadows hard).

scale(n): number

n scaled for this tier (at least 1 if n ≥ 1).

number

number