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).
Example
Section titled “Example”const sparks = engine.particles(frame, { max: engine.tier.scale(200) })Properties
Section titled “Properties”
readonlyname:TierName
‘high’, ‘medium’ or ‘low’.
resolution
Section titled “resolution”
readonlyresolution:number
Most backing-store pixels per stage unit (the stage is 720 units high): 1.5, 1, 0.75.
particles
Section titled “particles”
readonlyparticles:number
Particles and other counts: × 1, × 0.5, × 0.2.
effects
Section titled “effects”
readonlyeffects:boolean
Additive glows and extra layers (high only).
maxBlur
Section titled “maxBlur”
readonlymaxBlur:number
The largest blur (blur(), dropShadow()) radius, stage units: 32, 16, 0 (off: shadows hard).
Methods
Section titled “Methods”scale()
Section titled “scale()”scale(
n):number
n scaled for this tier (at least 1 if n ≥ 1).
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”number