Skip to content

SafeArea

The parts of the game’s viewport a phone’s notch, rounded corners or home bar may cover, in fractions of the viewport (top and bottom of its height, left and right of its width; each 0–0.25). The game’s frame cannot read env(safe-area-inset-*), so the screen sends it (init.safeArea): keep buttons, scores and targets out of it, and still paint the background under it. Zeros where nothing is covered (a TV, a tablet, older hosts).

top: number


bottom: number


left: number


right: number