Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

DynamicResolution

Dynamic resolution’s default and bounds: whether it starts on, and the shares of the level’s pixel ratio the scaler keeps the resolution between.

Property Type Default value Description
enabled? boolean the device's rule Whether the row starts on, over the device’s rule: on where the main pointer is a finger, off elsewhere. The player’s row wins.
maximumScale? number 1 -
minimumScale? number 0.5 -
targetFrameRate? number 60 The frame rate the scaler holds, such as 120 for a competitive game; above 60 never past the screen’s rate. The screen’s rate never takes it under 60, since a page reads the rate from its own frames and one that falls behind reads a slower screen.