GameManifest
What a game declares about itself (fabi-play.json at its address): the catalogue filters on it. Checked by parseManifest; fabi-play.schema.json (in @fabiplay/sdk) describes the same rules for editors.
Example
Section titled “Example”{ * "$schema": "./node_modules/@fabiplay/sdk/dist/fabi-play.schema.json", * "id": "star-catcher", "version": "1.0", * "title": { "it": "Acchiappastelle", "en": "Star catcher" }, * "description": { "it": "Prendi le stelle con le mani.", "en": "Catch the stars with your hands." }, * "ageRanges": ["3-5", "6-8"], "movements": ["hands"], "players": { "min": 1, "max": 2 }, * "minutes": 3, "entry": "index.html", "sdk": 1, * "intro": { "steps": [ * { "say": { "it": "Prendi le stelle!", "en": "Catch the stars!" }, "image": "intro/stars.jpg" }, * { "say": { "it": "Alza le braccia!", "en": "Arms up!" }, "move": "arms-up", "practice": true } * ] } * }Properties
Section titled “Properties”$schema?
Section titled “$schema?”
optional$schema?:string
For editors only (the JSON Schema to check the file against); ignored by Fabi Play.
id:
string
Lowercase letters, digits and single hyphens, up to 60 characters: the game’s id in the catalogue.
version
Section titled “version”version:
string
The game’s version: 1.0 or 1.0.2.
title:
Record<Locale,string>
The name, in Italian and English, up to 60 characters each.
description
Section titled “description”description:
Record<Locale,string>
One or two sentences, in Italian and English, up to 300 characters each.
ageRanges
Section titled “ageRanges”ageRanges:
AgeRange[]
The ranges it is made for; the catalogue shows it only to players in one of them.
movements
Section titled “movements”movements:
Movement[]
The movements it is played with (at least one).
players
Section titled “players”players:
object
How many children can play together: 1 to 4, min ≤ max.
min:
number
max:
number
minutes
Section titled “minutes”minutes:
number
Minutes of a typical game, 1 to 20.
entry:
string
Page that starts the game: a path relative to the game’s address (no scheme, no leading /, no “.” or “..” segments, up to 200 characters), of letters, digits, _ and -, ending in lowercase .html: index.html, play/index.html.
sdk:
number
Protocol version of the SDK it was built with: 1 (PROTOCOL_VERSION).
backdrop?
Section titled “backdrop?”
optionalbackdrop?:"video"[]
Optional: the backdrops it can draw over besides its own; [‘video’] opts in to mirror mode.
intro?
Section titled “intro?”
optionalintro?:GameIntro
Optional: Fabi explains the game on the TV before calibration (see GameIntro). Absent: straight to calibration.
cover?
Section titled “cover?”
optionalcover?:string
Optional: the game’s cover, the card in the catalogue (TV carousel, phone, admin): a path relative to the game’s address (no scheme, no leading /, no “.” or “..” segments, no backslash, up to COVER_MAX_PATH characters, see isCoverPath), ending in lowercase .jpg, .jpeg, .png or .webp: cover.jpg. A 16:9 image (COVER_ASPECT, within COVER_ASPECT_TOLERANCE), recommended 1280×720 and at most COVER_MAX_BYTES; JPEG is the safest for old TV browsers. The review checks the file; absent or broken, the catalogue falls back to another image.
inputs?
Section titled “inputs?”
optionalinputs?:GameInput[]
Optional: how it can be played; absent = [‘body’]. Must include ‘body’ (Fabi Play is a movement platform); add ‘remote’ to be offered without a phone.
turns?
Section titled “turns?”
optionalturns?:boolean
Optional, only with ‘remote’ in inputs: true when the game follows the turns contract, so the screen may let several children play with the remote, a round each (init.turns): play a round with the child in players; when it ends (a crash too) and turns remain, ask break(‘turn’) (the screen answers break-start, turn, break-done); after the last round, end with every child’s scores. Absent or false: remote mode is one child only.
framing?
Section titled “framing?”
optionalframing?:GameFraming
Optional: ‘auto’ (the default) lets the screen frame the children: when they stand far from the camera it zooms in on them (up to 1.8×), so every child’s avatar is about the same size and reaches the same things, near or far; the view changes only at calibration and in breaks. ‘fixed’ keeps the whole camera image, as before (for a game drawn on exact spots of the live video).
remoteCursor?
Section titled “remoteCursor?”
optionalremoteCursor?:boolean
Optional, only with ‘remote’ in inputs: true and, in remote mode, the arrows move a free cursor instead of making gestures (they speed up when held, see KeyCursor) and OK presses and releases it: the game gets it as pointer and mouse events, the same as a Magic Remote’s (init.pointer true), so a game written for the pointer works with both. Back is still the platform’s pause. For games picked or drawn with a pointer (a painting game). Absent or false: arrows and OK make gestures.
orientations?
Section titled “orientations?”
optionalorientations?:Orientation[]
Optional: the screen orientations the game can be played in; absent = [‘landscape’] (see gameOrientations). Non-empty, without repeats, from ORIENTATIONS. A phone alone («Gioca qui / Play here») is held upright, so it offers only games that list ‘portrait’; the TV and the tablet are landscape. A game that lists both still lays out from its real viewport size; init.orientation says which one it started in.