{
  "format": "tokbit",
  "version": 1,
  "name": "Heart",
  "main": [
    {
      "id": "u1",
      "kind": "call",
      "call": "background(BLACK)"
    },
    {
      "id": "u2",
      "kind": "call",
      "call": "border(BLUE)"
    },
    {
      "id": "u3",
      "kind": "call",
      "call": "cls()"
    },
    {
      "id": "u4",
      "kind": "call",
      "call": "color(WHITE)"
    },
    {
      "id": "u5",
      "kind": "output",
      "values": "\"Open the tvar block and draw your own sprite.\""
    },
    {
      "id": "u6",
      "kind": "declare",
      "name": "shape",
      "type": "list[str]",
      "init": "[\"................\", \"..####....####..\", \".######..######.\", \"################\", \"################\", \"################\", \"################\", \".##############.\", \"..############..\", \"...##########...\", \"....########....\", \".....######.....\", \"......####......\", \".......##.......\", \"................\", \"................\"]",
      "comment": "Tap the block and draw in the grid: # is a dot, . is transparent."
    },
    {
      "id": "u7",
      "kind": "call",
      "call": "sprite_shape(0, shape)"
    },
    {
      "id": "u8",
      "kind": "call",
      "call": "sprite_color(0, LIGHT_RED)"
    },
    {
      "id": "u9",
      "kind": "for",
      "variable": "lap",
      "range": "3",
      "body": [
        {
          "id": "u10",
          "kind": "for",
          "variable": "x",
          "range": "-16, 320, 4",
          "body": [
            {
              "id": "u11",
              "kind": "call",
              "call": "sprite_at(0, x, 92)"
            },
            {
              "id": "u12",
              "kind": "call",
              "call": "sleep(20)"
            }
          ]
        }
      ]
    },
    {
      "id": "u13",
      "kind": "call",
      "call": "sprite_hide(0)"
    }
  ],
  "functions": [],
  "comment": "Solution to the task “Your own shape”: Draw your own sprite in the shape block – a heart, say – and change its colour."
}
