Skip to content

BackdropView

Where the whole camera image is, in fractions of the game’s viewport (0–1; it may reach past the edges when the image is cropped to fill the screen), with any backdrop, so avatars and hands are where the children stand (a “virtual mirror”). The screen decides it: with ‘video’, where the video is drawn (cover or contain); with ‘none’, the whole image contained at 92% of the viewport’s height, bottom-aligned. Games don’t compute it: they just use it. It is not fixed: with automatic framing (the default, see GameManifest.framing) the screen zooms in on children standing far away, up to 1.8×, so the image may reach past every edge; it changes only at calibration and in breaks (pause, level, turn), never during play, and arrives in a backdrop message. Body points are in player space (0–1 of the camera image, already mirrored like the video), so a point p is on screen at (x + p.x·w, y + p.y·h): see toScreen.

x: number

Left edge, a fraction of the viewport’s width.


y: number

Top edge, a fraction of the viewport’s height.


w: number

Width, a fraction of the viewport’s width.


h: number

Height, a fraction of the viewport’s height.