{
  "entry": "index.html",
  "allowedHosts": [],
  "permissions": [],
  "orientation": "portrait",
  "title": "Starter Template",
  "description": "Template for new Rollick mini-games: the student taps numbered tiles in order, 1, 2, 3 …, before the time runs out and without too many mistakes. Replace it with your own game, keeping the input handling, the language rules, the end popup and the result. The interface is in Greek or English: the game's language, unless the `lang` input sets one.",
  "tags": ["template", "numbers", "observation", "mobile"],
  "credits": "",
  "languages": ["el-Gr", "en-Us"],
  "language": "el-Gr",
  "thumbnail": "thumbnail.png",
  "inputs": [
    {
      "name": "tiles",
      "description": "Number of tiles on the board (4–16, default 9). Invalid values fall back to 9; values out of range are clamped.",
      "example": "9"
    },
    {
      "name": "seconds",
      "description": "Time limit in seconds (0–600, default 60). 0 means no time limit. The clock starts when the player taps «Ξεκίνα» / “Start” and stops while a popup is open. Invalid values fall back to 60; values out of range are clamped.",
      "example": "60"
    },
    {
      "name": "tries",
      "description": "Wrong taps that end the game (1–10, default 3). Invalid values fall back to 3; values out of range are clamped.",
      "example": "3"
    },
    {
      "name": "lang",
      "description": "Interface language: \"el\" (Greek) or \"en\" (English). Optional: without it the game's language is used (Rollick passes it as `language`), and Greek when there is none. Values starting with \"en\" (e.g. \"en-GB\") select English; anything else falls back to Greek.",
      "example": "en"
    },
    {
      "name": "playerName",
      "description": "Optional player name, used for a greeting on the start screen. Rollick passes the player's avatar name by default.",
      "example": "Maria"
    }
  ],
  "result": {
    "description": "Sent once, when the player taps «Ολοκλήρωση αποστολής» / “Complete mission” in the end popup, after all tiles are tapped in order, the time runs out, or too many mistakes are made.",
    "fields": [
      { "name": "game", "type": "string", "description": "Always \"starter-template\"." },
      { "name": "completed", "type": "boolean", "description": "Always true." },
      { "name": "success", "type": "boolean", "description": "true if every tile was tapped in order." },
      { "name": "score", "type": "number", "description": "On success 100 minus 20 per mistake, at least 40; 0 on failure." },
      { "name": "maxScore", "type": "number", "description": "Always 100." },
      { "name": "mistakes", "type": "number", "description": "Wrong taps." },
      { "name": "found", "type": "number", "description": "Tiles tapped in order (equal to `tiles` on success)." },
      { "name": "timeUsed", "type": "number", "description": "Seconds played, to one decimal, not counting open popups." },
      { "name": "timedOut", "type": "boolean", "description": "true if the time ran out." },
      { "name": "tiles", "type": "number", "description": "Tiles used, after input validation." },
      { "name": "seconds", "type": "number", "description": "Time limit used, in seconds (0 = no limit)." },
      { "name": "tries", "type": "number", "description": "Mistakes allowed, after input validation." },
      { "name": "lang", "type": "string", "description": "Interface language used: \"el\" or \"en\"." }
    ]
  }
}
