{
  "global" : {
    "start_scene": "scene_lang",
    "w": 800,
    "h": 600,
    "item_size": 64,
    "item_padding": 20,
    "item_taking_sound": "data/sound/422494.wav",
    "label_font": "data/font/neucha.json",
    "music": "data/music/doj_exprt0007.ogg"
  },
  "macros" : {
    "portal_left" : {
      "macro": ["portal"],
      "texture": {"filename":"data/tex/portals/portals.png", "xywh": [0,0,34,130]},
      "x": 30, "y": 200
    },
    "portal_right" : {
      "macro": ["portal"],
      "texture": {"filename":"data/tex/portals/portals.png", "xywh": [94,0,34,130]},
      "x": 750, "y": 200
    },
    "portal_down": {
      "macro": ["portal"],
      "texture": {"filename":"data/tex/portals/portals.png", "xywh": [0,222,128,34]},
      "x": 330, "y": 450
    }
  },
  "objects" : [
    { "macro": ["background"],
      "room": "scene_dream",
      "texture": "data/tex/dream/bg.png",
      "x": 0, "y": 0,

      "objects": [
        { "id": "needle1", "macro": ["item"],
          "texture": {"filename": "data/tex/dream/parts.png", "xywh": [266,12,51,161]},
          "texitem": {"filename": "data/tex/inventory.png", "xywh": [177,0,52,60]},
          "label": "needle",
          "label_ru": "игла",
          "x": 142, "y": 113,
          "onapply" : {
            "id": "coil1",
            "do" : [
              { "itemput" : { "id": "needle_coil1" } },
              { "itemextract" : { "id": "needle1" } }
            ]
          }
        },
        { "id": "coil1", "macro": ["item"],
          "texture": {"filename": "data/tex/dream/parts.png", "xywh": [334,21,117,133]},
          "texitem": {"filename": "data/tex/inventory.png", "xywh": [232,0,53,60]},
          "label": "spool of thread",
          "label_ru": "нитки",
          "x": 635, "y": 326,
          "onapply" : {
            "id": "needle1",
            "do" : [
              { "itemput" : { "id": "needle_coil1" } },
              { "itemextract" : { "id": "coil1" } }
            ]
          }
        },
        { "id"="needle_coil1", "macro"=["item"], "enable"=0,
          "texture": "data/tex/dream/needle_coil.png",
          "texitem": {"filename": "data/tex/inventory.png", "xywh": [288,0,56,60]},
          "label": "sewing kit",
          "label_ru": "швейный комплект",
          "x": 0, "y": 0,
        },
        { "id"="alarm_prefab1", "macro"=["interactive"],
          "texture": {"filename": "data/tex/dream/parts.png", "xywh": [453,0,224,213]},
          "x": 256, "y": 225,
          "onapply": {
            "id": "needle_coil1",
            "do": [
              {"advjam2018_shake": {"id": "alarm1", "factor": 10}},
              {"advjam2018_shake": {"id": "alarm", "factor": 10}},
              {"set": {"id"="alarm1", "enable"=1}},
              {"set": {"id"="alarm_prefab1", "enable"=0}},
            ],
            "advjam_cutscene": [
              {"sound": "data/sound/alarm.wav"},
            ],
          }
        },
        { "id"="alarm1", "macro"=["interactive"], "enable"=0,
          "texture": {"filename": "data/tex/dream/parts.png", "xywh": [0,0,256,236]},
          "x": 253, "y": 202,
          "onapply": {
            "do": [
              {"advjam2018_shake": {"id": "alarm1", "factor": 10}},
            ],
            "advjam_cutscene": [
              {"close_eyes": 500},
              {"wait": 500},
              {"moveto": "scene_room"},
              {"open_eyes": 500},
            ],
          }
        },
      ]
    },

    { "macro"=["background"], "groups"=["scene_room"],
      "texture": "data/tex/room/bg.png",
      "x": 0, "y": 0,
    },
    { "id"="pot", "macro"=["item"], "groups"=["scene_room"],
      "texture": {"filename": "data/tex/room/parts.png", "xywh": [0,0,64,64]},
      "texitem": {"filename": "data/tex/inventory.png", "xywh": [57,0,60,60]},
      "label": "pot",
      "label_ru": "горшок",
      "x": 140, "y": 266,
    },
    { "id"="slipper", "macro"=["item"], "groups"=["scene_room"],
      "texture": {"filename": "data/tex/room/parts.png", "xywh": [68,0,66,64]},
      "texitem": {"filename": "data/tex/inventory.png", "xywh": [0,0,60,60]},
      "label": "slipper",
      "label_ru": "тапок",
      "x": 370, "y": 385,
    },
    { "id"="alarm", "macro"=["item"], "groups"=["scene_room"],
      "texture": {"filename": "data/tex/room/parts.png", "xywh": [136,0,58,64]},
      "texitem": {"filename": "data/tex/inventory.png", "xywh": [116,0,60,60]},
      "label": "alarm clock",
      "label_ru": "будильник",
      "x": 546, "y": 264,
      "onapply": {
        "advjam_cutscene": [
          {"sound": "-"},
        ],
      }
    },
    { "macro"=["portal","interactive"], "groups"=[],
      "x": 688, "y": 211, "w": 112, "h": 196,
      "target": "scene_kitchen",
      "onapply": {
        "advjam_cutscene": [
          {"sound": "-"},
          {"shake": {"id": "alarm", "factor": 0}},
        ],
      }
    },
    { "macro"=["portal_right","portal","interactive"], "groups"=["scene_room"],
      "target": "scene_kitchen",
      "onapply": {
        "advjam_cutscene": [
          {"sound": "-"},
          {"shake": {"id": "alarm", "factor": 0}},
        ],
      }
    },

    { "macro"=["background"], "groups"=["scene_kitchen"],
      "texture": "data/tex/kitchen/bg.png",
     " x": 0, "y": 0,
    },
    { "id"="kitchen_bath_up", "macro"=["interactive"], "groups"=["scene_kitchen"],
      "x": 279, "y": 321,
      "texture": {"filename": "data/tex/kitchen/parts2.png", "xywh": [27,131,160,35]},
    },
    { "id"="kitchen_steam", "macro"=[], "groups"=[],
      "x": 276, "y": 138,
      "texture": {"filename": "data/tex/kitchen/parts2.png", "xywh": [554,0,116,239]},
    },
    { "id"="kitchen_cook_after", "macro"=["interactive"], "groups"=[],
      "x": 272, "y": 204,
      "texture": {"filename": "data/tex/kitchen/parts2.png", "dt": 260,
        "frames": [
          { "xywh": [272,314,188,192] },
          { "xywh": [460,314,188,192] },
          { "xywh": [648,314,188,192] },
          { "xywh": [836,314,188,192] },
        ]
      },
      "onapply": {
        "if": {
          "is_visible": {"id": "kitchen_fire"},
          "is_visible": {"id": "todo_salt_enabled"},
          "is_visible": {"id": "todo_spagetti_enabled"},
          "is_visible": {"id": "todo_meat_enabled"},
        },
        "do": [
          {"moveto": {"room": "scene_final"}}
        ]
      },
    },
    { "id"="kitchen_bath", "macro"=["interactive"], "groups"=["scene_kitchen"],
      "x": 247, "y": 309,
      "texture": {"filename": "data/tex/kitchen/parts2.png", "xywh": [0,175,222,157]},
      "onapply": {
        "id": "hand_fire",
        "do": [
          {"set": {"id": "kitchen_cook_before", "groups": []}},
          {"set": {"id": "kitchen_cook_hand_before", "groups": []}},
          {"set": {"id": "kitchen_fire_cloud", "groups": []}},
          {"set": {"id": "kitchen_steam", "groups": ["scene_kitchen"]}},
          {"set": {"id": "kitchen_fire", "groups": ["scene_kitchen"]}},
          {"set": {"id": "kitchen_cook_after", "groups": ["scene_kitchen"]}},
          {"sound": {"filename": "data/sound/186374_start_flame.wav", "volume": 96}},
        ]
      },
      "onapply": {
        "if": {
          "is_visible": {"id": "kitchen_fire"},
          "is_visible": {"id": "todo_salt_enabled"},
          "is_visible": {"id": "todo_spagetti_enabled"},
          "is_visible": {"id": "todo_meat_enabled"},
        },
        "do": [
          {"moveto": {"room": "scene_final"}}
        ]
      },
    },
    { "id"="kitchen_cook_before", "macro"=["interactive"], "groups"=["scene_kitchen"],
      "x": 192, "y": 207,
      "texture": {"filename": "data/tex/kitchen/parts2.png", "xywh": [380,0,171,257]},
      "onapply": {
        "id": "hand_fire",
        "do": [
          {"set": {"id": "kitchen_cook_before", "groups": []}},
          {"set": {"id": "kitchen_cook_hand_before", "groups": []}},
          {"set": {"id": "kitchen_fire_cloud", "groups": []}},
          {"set": {"id": "kitchen_steam", "groups": ["scene_kitchen"]}},
          {"set": {"id": "kitchen_fire", "groups": ["scene_kitchen"]}},
          {"set": {"id": "kitchen_cook_after", "groups": ["scene_kitchen"]}},
          {"sound": {"filename": "data/sound/186374_start_flame.wav"}},
        ]
      }
    },
    { "id"="kitchen_fire_cloud", "macro"=[], "groups"=[],
      "x": 168, "y": 222,
      "texture": {"filename": "data/tex/kitchen/parts2.png", "xywh": [299,7,58,93]},
    },
    { "id"="kitchen_fire", "macro"=[], "groups"=[],
      "x": 351, "y": 376,
      "texture": {"filename": "data/tex/kitchen/parts2.png", "dt": 100,
        "frames": [
            { "xywh": [0,0,69,95] },
            { "xywh": [69,0,69,95] },
        ],
      },
      "onvisible": {"do": [
        {"sound": {"filename": "data/sound/doj_aldente_indoor_fire.wav", "loop":1}},
        { "if": [ {"and": [
                          {"is_visible": "todo_salt_enabled"},
                          {"is_visible": "todo_spagetti_enabled"},
                          {"is_visible": "todo_meat_enabled"}
                        ]},
          {"do": [
              {"log": "kitchen_light1"},
              {"set_groups": ["kitchen_light1", ["scene_kitchen"]]},
          ]},
        ]}
      ]}
    },
    { "id"="kitchen_cook_hand_before", "macro"=["interactive"], "groups"=["scene_kitchen"],
      "x": 337, "y": 273,
      "texture": {"filename": "data/tex/kitchen/parts2.png", "xywh": [216,2,72,117]}
    },
    { "macro"=["portal"], "groups"=["scene_kitchen"],
      "x": 447, "y": 152, "w": 141, "h": 140,
      "target": "scene_kitchen_cupboard",
    },
    { "id"="portal_out_first_time_flag", "macro": [],
      "groups": ["scene_kitchen"],
      "x": 0, "y": 0, "w": 1, "h": 1,
    },
    { "id"="portal_out_first_time",
      "macro"=["interactive"], "groups"=["scene_kitchen"],
      "x": 599, "y": 106, "w": 124, "h": 325,
      "oninteract": {"if": [{"is_enabled": "portal_out_first_time_flag"}, {"do": [
        {"disable": "portal_out_first_time_flag"},
        {"sound": {"filename": "data/sound/doj_aldente_door.wav"}},
        {"animate": [
          {"do": {"fade_in": 2000}},
          {"dt": 3000},
          {"do": {"move_to": "scene_out"}},
          {"do": {"disable": "portal_out_first_time"}},
          {"do": {"enable": "portal_out"}},
          {"do": {"fade_out": 1000}},
          {"dt": 1500},
        ]},
      ]}]}
    },
    { "id"="portal_out", "enable"=0,
      "macro"=["portal"], "groups"=["scene_kitchen"],
      "x": 599, "y": 106, "w": 124, "h": 325,
      "target": "scene_out",
    },
    { "macro"=["portal"], "groups"=["scene_kitchen"],
      "x"=111, "y"=213, "w"=103, "h"=137,
      "target"="scene_painting2",
    },
    { "id"="kitchen_lightmap", "macro"=["interactive"], "groups"=["scene_kitchen"],
      "texture": "data/tex/kitchen/lightmap.png",
      "x": 0, "y": 0,
    },
    { "id"="kitchen_light1", "groups"=[],
      "texture": "data/tex/kitchen/light1.png",
      "x": 0, "y": 0,
    },
    { "id"="kitchen_lightmap_portal", "macro"=["interactive","portal"], "groups"=["scene_kitchen"],
      "target": "scene_briefing",
      "x": 143, "y": 184, "w": 294, "h": 288,
      "oninteract": {"do": [
          {"interact": "briefing_background"}
      ]}
    },
    { "macro"=["portal","portal_left"], "groups"=["scene_kitchen"],
      "target": "scene_room",
    },

    { "macro": ["background", "portal", "interactive"],
      "groups": ["scene_cook"],
      "texture": "data/tex/cook/cook1.png",
      "x": 0, "y": 0,
      "target": "scene_kitchen",
      "onapply": {
        "do": [
          {"set": {"id": "kitchen_cook_hand_before", "groups": []}},
          {"set": {"id": "kitchen_fire_cloud", "groups": ["scene_kitchen"]}},
          {"set": {"id": "kitchen_lightmap", "groups": []}},
          {"set": {"id": "kitchen_lightmap_portal", "groups": []}},
          {"set": {"id": "todo_bg", "groups": ["todo"]}},
          {"set": {"id": "todo_salt_disabled", "groups": ["todo"]}},
          {"set": {"id": "todo_spagetti_disabled", "groups": ["todo"]}},
          {"set": {"id": "todo_meat_disabled", "groups": ["todo"]}},
        ]
      },
      "oninteract": {"do": [
        { "if": [ { "===": [{"lang": {}}, "ru"]},
          {"set_groups": ["todo_lable_ru", ["todo"]]},
          {"set_groups": ["todo_lable", ["todo"]]}
        ]}
      ]}
    },

    { "macro"=["background"], "groups"=["scene_kitchen_cupboard"],
      "texture": "data/tex/kitchen/cupboard/bg.png",
      "x": 0, "y": 0,
    },
    { "id"="kitchen_cupboard_insect_before", "macro"=["interactive"], "groups"=["scene_kitchen_cupboard"],
      "texture": {"filename": "data/tex/kitchen/cupboard/parts.png", "xywh": [0,0,251,222]},
      "x": 331, "y": 231,
      "onapply": {
        "id": "slipper",
        "do": [
          { "set": { "id": "kitchen_cupboard_insect_before", "groups": [] } },
          { "set": { "id": "kitchen_cupboard_insect_after", "groups": ["scene_kitchen_cupboard"] } },
          { "set": { "id": "salt", "groups": ["scene_kitchen_cupboard"] } },
          { "sound": { "filename": "data/sound/doj_aldente_smashing_beetle.wav", "volume": 64 } },
        ]
      }
    },
    { "id"="kitchen_cupboard_insect_after", "macro"=[], "groups"=[],
      "texture": {"filename": "data/tex/kitchen/cupboard/parts.png", "xywh": [253,0,253,222]},
      "x": 392, "y": 241,
    },
    { "id"="salt", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/kitchen/cupboard/salt.png"},
      "x": 400, "y": 340,
      "label": "salt",
      "label_ru": "соль",
      "onapply": {
        "do": [
          {"set": {"id"="salt", "groups"=[]}},
          {"set": {"id": "todo_bg", "groups": ["todo"]}},
          {"set": {"id"="todo_salt_disabled", "groups"=[]}},
          {"set": {"id"="todo_salt_enabled", "groups"=["todo"]}},
          {"sound": {"filename": "data/sound/doj_aldente_ingredient.wav"}},
        ]
      },
      "oninteract": {"do": [
        { "if": [ { "===": [{"lang": {}}, "ru"]},
          {"set_groups": ["todo_lable_ru", ["todo"]]},
          {"set_groups": ["todo_lable", ["todo"]]}
        ]}
      ]}
    },
    { "macro"=["portal","portal_down"], "groups"=["scene_kitchen_cupboard"],
      "target": "scene_kitchen",
    },

    { "macro"=["background"], "groups"=["scene_out"],
      "texture": "data/tex/out/bg.png",
      "x": 0, "y": 0,
      "music": {"filename": "data/music/kevinmacleod_deliberate_thought.ogg", "volume": 96},
    },
    { "id"="valve1", "macro"=["item"], "groups"=[],
      "texture": {"filename": "data/tex/out/parts2.png", "xywh": [15,131,64,64]},
      "texitem": {"filename": "data/tex/out/parts2.png", "xywh": [15,131,64,64]},
      "x": 340, "y": 356,
    },
    { "id"="water1", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out/parts2.png",
        "frames": [
          { "xywh": [400,391,56,121] },
          { "xywh": [456,391,56,121] },
        ]
      },
      "x": 92, "y": 321,
      "onvisible": {"do":[
        {"sound": {"filename": "data/sound/doj_aldente_water.wav", "loop":1}}
      ]}
    },
    { "id"="pot1", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out/parts2.png", "xywh": [76,255,80,99]},
      "x": 81, "y": 356,
    },
    { "id"="cloud1", "macro"=["interactive"], "groups"=["scene_out"],
      "texture": {"filename": "data/tex/out/parts2.png", "xywh": [74,0,224,250]},
      "x": 80, "y": 101,
      "onapply": {
        "id"="valve1",
        "do": [
          {"set": {"id"="valve1_off", "groups": ["scene_out"]}}
        ]
      }
    },
    { "id"="valve1_off", "macro"=["interactive"], "groups"=["scene_out"],
      "texture": {"filename": "data/tex/out/parts2.png", "xywh": [15,131,64,64]},
      "x": 83, "y": 236,
      "onapply": {
        "do": [
          {"set": {"id": "valve1_off", "groups": []}},
          {"set": {"id": "valve1_on", "groups": ["scene_out"]}},
          {"set": {"id": "water1", "groups": ["scene_out"]}},
          {"sound": {"filename": "data/sound/31379_valve.wav", "volume": 196}},
        ]
      },
      "onapply": {
        "if": {
          "is_visible": {"id": "pot1"}
        },
        "do": [
          {"set": {"id": "flower", "groups": ["scene_out"]}},
        ]
      }
    },
    { "id"="valve1_on", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out/parts2.png", "xywh": [10,63,64,64]},
      "x": 83, "y": 236,
      "onapply": {
        "do": [
          {"set": {"id": "valve1_off", "groups": ["scene_out"]}},
          {"set": {"id": "valve1_on", "groups": []}},
          {"set": {"id": "water1", "groups": []}},
          {"sound": {"filename": "data/sound/31379_valve.wav", "volume": 196}},
        ]
      }
    },
    { "id"="flower", "macro"=["item","interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out/flower.png"},
      "texitem": {"filename": "data/tex/out/flower.png", "xywh": [0,0,90,85]},
      "label": "flower",
      "label_ru": "цветок",
      "x": 50, "y": 260,
      "onapply": {
        "do": [
          {"set": {"id": "pot1", "groups": []}}
        ]
      }
    },
    { "id"="pot_place", "macro"=["interactive"], "groups"=["scene_out"],
      "texture": {"filename": "data/tex/out/parts.png", "xywh": [0,0,0,0]},
      "x": 41, "y": 316, "w": 160, "h": 179,
      "onapply": {
        "id": "pot",
        "do": [
          {"set": {"id": "pot1", "groups": ["scene_out"]}},
          {"set": {"id": "pot_place", "groups": []}},
        ]
      },
      "onapply": {
        "id": "pot",
        "if": {
          "is_visible": {"id": "water1"},
        },
        "do": [
          {"set": {"id": "flower", "groups": ["scene_out"]}},
        ]
      },
      "target": "scene_out",
    },
    { "id"="out_man_zzz", "macro"=["interactive"], "groups"=["scene_out"],
      "texture": {"filename": "data/tex/out/parts.png", "xywh": [143,0,151,290]},
      "x": 548, "y": 108,
      "onvisible": {"do":[
        {"sound": {"filename": "data/sound/output.wav", "loop": 1, "volume": 64}},
      ]},
      "onapply": {
        "id": "alarm",
        "do": [
          {"set": {"id": "out_man_zzz", "groups": []}},
          {"set": {"id": "out_man_waked", "groups": ["scene_out"]}},
          {"set": {"id": "medal_right", "groups": ["scene_out"]}},
        ]
      }
    },
    { "id"="medal_right", "macro"=["item","interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out/parts.png", "xywh": [371,0,47,60]},
      "texitem": {"filename": "data/tex/inventory.png", "xywh": [403,0,63,58]},
      "label": "medal (right part)",
      "label_ru": "медаль (правая часть)",
      "x": 612, "y": 185,
      "onapply": {
        "id"="medal_left",
        "do": [
          { "itemput": { "id"="medal"} },
          { "itemextract": { "id"="medal_right"} },
        ]
      }
    },
    { "id"="out_man_waked", "macro"=[], "groups"=[],
      "texture": {"filename": "data/tex/out/parts.png", "xywh": [9,31,137,259]},
      "x": 568, "y": 133,
    },
    { "id"="medal", "macro"=["item","interactive"], "groups"=[],
      "texture": {"filename": "data/tex/inventory.png", "xywh": [0,56,64,64]},
      "texitem": {"filename": "data/tex/inventory.png", "xywh": [0,56,64,64]},
      "label": "medal",
      "label_ru": "медаль",
      "x": 0, "y": 0,
    },
    { "macro"=["portal"], "groups"=["scene_out"],
      "x": 357, "y": 193, "w": 72, "h": 178,
      "target": "scene_kitchen",
    },
    { "macro"=["portal"], "groups"=[],
      "x": 692, "y": 0, "w": 108, "h": 600,
      "target": "scene_out2",
    },
    { "macro": ["portal","portal_right"],
      "groups": ["scene_out"],
      "target": "scene_out2",
    },
    { "macro": ["portal","portal_left"],
      "groups": ["scene_out"],
      "target": "scene_out3",
    },

    { "macro"=["background"], "groups"=["scene_out2"],
      "texture": "data/tex/out2/bg.png",
      "x": 0, "y": 0,
    },
    { "macro"=["interactive"], "groups"=["scene_out2"],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [0,0,163,200]},
      "x": 172, "y": 213,
    },
    { "id"="out2_portal_to_penek", "macro"=["portal"], "groups"=["scene_out2"],
      "x": 180, "y": 213, "w": 145, "h": 181,
      "target": "scene_out2_penek",
    },
    { "id"="out2_hand_disabled", "macro"=["portal","interactive"], "groups"=["scene_out2"],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [114,200,110,75]},
      "x": 135, "y": 299,
      "target": "scene_out2_penek",
    },
    { "id"="hand", "macro"=["item","interactive"], "groups"=["scene_out2"], "enable"=0,
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [15,209,90,68]},
      "texitem": {"filename": "data/tex/out2/parts.png", "xywh": [15,209,90,68]},
      "label": "hand with candle",
      "label_ru": "рука со свечой",
      "x": 140, "y": 349,
    },
    { "id"="out2_door_closed", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [170,25,53,140]},
      "x": 209, "y": 250,
    },
    { "id"="out2_cell_closed", "macro"=["interactive"], "groups"=["scene_out2"],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [280,9,175,180]},
      "x": 377, "y": 218,
    },
    { "id"="out2_cell_opened", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [478,33,278,160]},
      "x": 353, "y": 228,
    },
    { "id"="medal_left", "macro"=["item","interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [539,197,27,77]},
      "texitem": {"filename": "data/tex/inventory.png", "xywh": [344,0,58,60]},
      "label": "medal (left part)",
      "label_ru": "медаль (левая часть)",
      "x": 606, "y": 287,
      "onapply": {
        "id"="medal_right",
        "do": [
          { "itemput": { "id"="medal"} },
          { "itemextract": { "id"="medal_left"} },
        ]
      }
    },
    { "id"="hand_3_5", "macro"=["interactive"], "groups"=["scene_out2"],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [472,210,54,55]},
      "x": 490, "y": 202,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_3_5", "groups": []}},
          {"set": {"id": "hand_3_0", "groups": ["scene_out2"]}},
        ]
      },
    },
    { "id"="hand_3_0", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [244,227,41,37]},
      "x": 502, "y": 216,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_3_0", "groups": []}},
          {"set": {"id": "hand_3_1", "groups": ["scene_out2"]}},
        ]
      },
    },
    { "id"="hand_3_1", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [309,225,37,39]},
      "x": 505, "y": 214,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_3_1", "groups": []}},
          {"set": {"id": "hand_3_2", "groups": ["scene_out2"]}},
        ]
      },
    },
    { "id"="hand_3_2", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [354,218,36,45]},
      "x": 505, "y": 209,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_3_2", "groups": []}},
          {"set": {"id": "hand_3_3", "groups": ["scene_out2"]}},
        ]
      },
      "onapply": {
        "if": {
          "is_visible": { "id"="hand_1_2" },
          "is_visible": { "id"="hand_2_5" },
          "is_visible": { "id"="hand_3_2" },
        },
        "do": [
          {"set": {"id": "hand_1_2", "groups": []}},
          {"set": {"id": "hand_2_5", "groups": []}},
          {"set": {"id": "hand_3_3", "groups": []}},
          {"set": {"id": "out2_cell_closed", "groups": []}},
          {"set": {"id": "out2_cell_opened", "groups": ["scene_out2"]}},
          {"set": {"id": "medal_left", "groups": ["scene_out2"]}},
          {"sound": {"filename": "data/sound/doj_aldente_broken_cell.wav"}},
        ]
      },
    },
    { "id"="hand_3_3", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [393,215,37,46]},
      "x": 504, "y": 206,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_3_3", "groups": []}},
          {"set": {"id": "hand_3_4", "groups": ["scene_out2"]}},
        ]
      },
    },
    { "id"="hand_3_4", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [432,214,37,47]},
      "x": 505, "y": 206,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_3_4", "groups": []}},
          {"set": {"id": "hand_3_5", "groups": ["scene_out2"]}},
        ]
      },
    },
    { "id"="hand_2_5", "macro"=["interactive"], "groups"=["scene_out2"],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [472,210,54,55]},
      "x": 447, "y": 197,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_2_5", "groups": []}},
          {"set": {"id": "hand_2_0", "groups": ["scene_out2"]}},
        ]
      },
    },
    { "id"="hand_2_0", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [244,227,41,37]},
      "x": 457, "y": 211,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_2_0", "groups": []}},
          {"set": {"id": "hand_2_1", "groups": ["scene_out2"]}},
        ]
      },
    },
    { "id"="hand_2_1", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [309,225,37,39]},
      "x": 460, "y": 209,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_2_1", "groups": []}},
          {"set": {"id": "hand_2_2", "groups": ["scene_out2"]}},
        ]
      },
    },
    { "id"="hand_2_2", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [354,218,36,45]},
      "x": 461, "y": 204,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_2_2", "groups": []}},
          {"set": {"id": "hand_2_3", "groups": ["scene_out2"]}},
        ]
      },
    },
    { "id"="hand_2_3", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [393,215,37,46]},
      "x": 459, "y": 202,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_2_3", "groups": []}},
          {"set": {"id": "hand_2_4", "groups": ["scene_out2"]}},
        ]
      },
    },
    { "id"="hand_2_4", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [432,214,37,47]},
      "x": 461, "y": 200,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_2_4", "groups": []}},
          {"set": {"id": "hand_2_5", "groups": ["scene_out2"]}},
        ]
      },
      "onapply": {
        "if": {
          "is_visible": { "id"="hand_1_2" },
          "is_visible": { "id"="hand_2_4" },
          "is_visible": { "id"="hand_3_3" },
        },
        "do": [
          {"set": {"id": "hand_1_2", "groups": []}},
          {"set": {"id": "hand_2_5", "groups": []}},
          {"set": {"id": "hand_3_3", "groups": []}},
          {"set": {"id": "out2_cell_closed", "groups": []}},
          {"set": {"id": "out2_cell_opened", "groups": ["scene_out2"]}},
          {"set": {"id": "medal_left", "groups": ["scene_out2"]}},
          {"sound": {"filename": "data/sound/doj_aldente_broken_cell.wav"}},
        ]
      },
    },
    { "id"="hand_1_5", "macro"=["interactive"], "groups"=["scene_out2"],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [472,210,54,55]},
      "x": 404, "y": 190,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_1_5", "groups": []}},
          {"set": {"id": "hand_1_0", "groups": ["scene_out2"]}},
        ]
      },
    },
    { "id"="hand_1_0", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [244,227,41,37]},
      "x": 415, "y": 206,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_1_0", "groups": []}},
          {"set": {"id": "hand_1_1", "groups": ["scene_out2"]}},
        ]
      },
    },
    { "id"="hand_1_1", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [309,225,37,39]},
      "x": 419, "y": 202,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_1_1", "groups": []}},
          {"set": {"id": "hand_1_2", "groups": ["scene_out2"]}},
        ]
      },
      "onapply": {
        "if": {
          "is_visible": { "id"="hand_1_1" },
          "is_visible": { "id"="hand_2_5" },
          "is_visible": { "id"="hand_3_3" },
        },
        "do": [
          {"set": {"id": "hand_1_2", "groups": []}},
          {"set": {"id": "hand_2_5", "groups": []}},
          {"set": {"id": "hand_3_3", "groups": []}},
          {"set": {"id": "out2_cell_closed", "groups": []}},
          {"set": {"id": "out2_cell_opened", "groups": ["scene_out2"]}},
          {"set": {"id": "medal_left", "groups": ["scene_out2"]}},
          {"sound": {"filename": "data/sound/doj_aldente_broken_cell.wav"}},
        ]
      },
    },
    { "id"="hand_1_2", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [354,218,36,45]},
      "x": 419, "y": 197,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_1_2", "groups": []}},
          {"set": {"id": "hand_1_3", "groups": ["scene_out2"]}},
        ]
      },
    },
    { "id"="hand_1_3", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [393,215,37,46]},
      "x": 418, "y": 195,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_1_3", "groups": []}},
          {"set": {"id": "hand_1_4", "groups": ["scene_out2"]}},
        ]
      },
    },
    { "id"="hand_1_4", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/out2/parts.png", "xywh": [432,214,37,47]},
      "x": 419, "y": 194,
      "sound": "data/sound/doj_aldente_hand_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "hand_1_4", "groups": []}},
          {"set": {"id": "hand_1_5", "groups": ["scene_out2"]}},
        ]
      },
    },
    { "macro"=["portal"], "groups"=[],
      "x": 0, "y": 0, "w": 100, "h": 600,
      "target": "scene_out",
    },
    { "macro": ["portal","portal_left"],
      "groups": ["scene_out2"],
      "target": "scene_out",
    },
    { "macro": ["portal","portal_right"],
      "groups": ["scene_out2"],
      "target": "scene_out3",
    },

    { "macro"=["background"], "groups"=["scene_out2_penek"],
      "texture": "data/tex/out2/penek/bg.png",
      "x": 0, "y": 0,
    },
    { "macro"=["background"], "groups"=["scene_out2_penek"],
      "texture": "data/tex/out2/penek/penek.png",
      "x": 0, "y": 0,
    },
    { "id"="out2_penek_light1_on", "macro"=["interactive"],
      "groups"=["scene_out2_penek"],
      "texture": {"filename": "data/tex/out2/penek/parts.png", "xywh": [388,109,144,139]},
      "x": 388, "y": 109,
      "sound": "data/sound/doj_aldente_beetle_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "out2_penek_light1_off", "groups": ["scene_out2_penek"]}},
        ],
        "advjam_cutscene": [
          {"wait": 100},
          {"setgroups": {"id": "out2_penek_light1_off", "groups": []}},
        ]
      },
     "onapply": {
        "if": {
          "is_visible": { "id"="out2_penek_state5" },
        },
        "do": [
          {"set": {"id": "out2_penek_state1", "groups": ["scene_out2_penek"]}},
          {"set": {"id": "out2_penek_state2", "groups": []}},
          {"set": {"id": "out2_penek_state3", "groups": []}},
          {"set": {"id": "out2_penek_state4", "groups": []}},
          {"set": {"id": "out2_penek_state5", "groups": []}},
        ]
      },
      "onapply": {
        "if": {
          "is_visible": { "id"="out2_penek_state4" },
        },
        "do": [
          {"set": {"id": "out2_penek_state1", "groups": []}},
          {"set": {"id": "out2_penek_state2", "groups": []}},
          {"set": {"id": "out2_penek_state3", "groups": []}},
          {"set": {"id": "out2_penek_state4", "groups": []}},
          {"set": {"id": "out2_penek_state5", "groups": ["scene_out2_penek"]}}
        ]
      },
      "onapply": {
        "if": {
          "is_visible": { "id"="out2_penek_state3" },
        },
        "do": [
        ]
      },
      "onapply": {
        "if": {
          "is_visible": { "id"="out2_penek_state2" },
        },
        "do": [
          {"set": {"id": "out2_penek_state1", "groups": []}},
          {"set": {"id": "out2_penek_state2", "groups": []}},
          {"set": {"id": "out2_penek_state3", "groups": ["scene_out2_penek"]}},
          {"set": {"id": "out2_penek_state4", "groups": []}},
          {"set": {"id": "out2_penek_state5", "groups": []}},
        ]
      },
      "onapply": {
        "if": {
          "is_visible": { "id"="out2_penek_state1" },
        },
        "do": [
          {"set": {"id": "out2_penek_state1", "groups": []}},
          {"set": {"id": "out2_penek_state2", "groups": ["scene_out2_penek"]}},
          {"set": {"id": "out2_penek_state3", "groups": []}},
          {"set": {"id": "out2_penek_state4", "groups": []}},
          {"set": {"id": "out2_penek_state5", "groups": []}},
        ]
      },
    },
    { "id"="out2_penek_light2_on", "macro"=["interactive"],
      "groups"=["scene_out2_penek"],
      "texture": {"filename": "data/tex/out2/penek/parts.png", "xywh": [423,266,143,132]},
      "x": 423, "y": 266,
      "sound": "data/sound/doj_aldente_beetle_btn.wav",
      "onapply": {
        "do": [
          {"set": {"id": "out2_penek_light2_off", "groups": ["scene_out2_penek"]}},
        ],
        "advjam_cutscene": [
          {"wait": 100},
          {"setgroups": {"id": "out2_penek_light2_off", "groups": []}},
        ]
      },
      "oninteract": {
        "if": [{"is_visible": "out2_penek_state5"}, 
          {"do": [
            {"set_groups": ["out2_penek_state1", []]},
            {"set_groups": ["out2_penek_state2", []]},
            {"set_groups": ["out2_penek_state3", []]},
            {"set_groups": ["out2_penek_state4", []]},
            {"set_groups": ["out2_penek_state5", []]},
            {"set_groups": ["out2_door_closed", ["scene_out2"]]},
            {"sound": {"filename": "data/sound/30187_guillottine.wav", "volume": 128}},
            {"move_to": "scene_out2"},
            {"animate": [
              {"dt": 200, "do": {
                "do": [
                  {"quest_set": ["out2_door_closed","h",{"lerpby": [40,100]}]},
                  {"quest_set": ["out2_door_closed","texture_y",{"+": [250,140,["-",{"lerpby": [40,100]}]]}]},
                  {"quest_set": ["out2_door_closed","texture_h",{"lerpby": [40,100]}]},
                ]
              }},
              {"do": { "do": [
                  {"quest_set": ["out2_door_closed","h",140]},
                  {"quest_set": ["out2_door_closed","texture_y",25]},
                  {"quest_set": ["out2_door_closed","texture_h",140]},
              ]}},
              {"do": {"disable": "out2_hand_disabled"}},
              {"do": {"enable": "hand"}},
            ]}
          ]}
        ]
      },
      "onapply": {
        "if": {
          "is_visible": { "id"="out2_penek_state4" },
        },
        "do": [
          {"set": {"id": "out2_penek_state1", "groups": ["scene_out2_penek"]}},
          {"set": {"id": "out2_penek_state2", "groups": []}},
          {"set": {"id": "out2_penek_state3", "groups": []}},
          {"set": {"id": "out2_penek_state4", "groups": []}},
          {"set": {"id": "out2_penek_state5", "groups": []}},
        ]
      },
      "onapply": {
        "if": {
          "is_visible": { "id"="out2_penek_state3" },
        },
        "do": [
          {"set": {"id": "out2_penek_state1", "groups": []}},
          {"set": {"id": "out2_penek_state2", "groups": []}},
          {"set": {"id": "out2_penek_state3", "groups": []}},
          {"set": {"id": "out2_penek_state4", "groups": ["scene_out2_penek"]}},
          {"set": {"id": "out2_penek_state5", "groups": []}},
        ]
      },
      "onapply": {
        "if": {
          "is_visible": { "id"="out2_penek_state2" },
        },
        "do": [
          {"set": {"id": "out2_penek_state1", "groups": ["scene_out2_penek"]}},
          {"set": {"id": "out2_penek_state2", "groups": []}},
          {"set": {"id": "out2_penek_state3", "groups": []}},
          {"set": {"id": "out2_penek_state4", "groups": []}},
          {"set": {"id": "out2_penek_state5", "groups": []}},
        ]
      },
      "onapply": {
        "if": {
          "is_visible ": { "id"="out2_penek_state1" },
        },
        "do": [
          {"set": {"id": "out2_penek_state1", "groups": ["scene_out2_penek"]}},
          {"set": {"id": "out2_penek_state2", "groups": []}},
          {"set": {"id": "out2_penek_state3", "groups": []}},
          {"set": {"id": "out2_penek_state4", "groups": []}},
          {"set": {"id": "out2_penek_state5", "groups": []}},
        ]
      },
    },
    { "id"="out2_penek_light1_off", "macro"=["interactive"],
      "groups"=[],
      "texture": {"filename": "data/tex/out2/penek/parts.png", "xywh": [544,102,154,145]},
      "x": 388, "y": 102,
    },
    { "id"="out2_penek_light2_off", "macro"=["interactive"],
      "groups"=[],
      "texture": {"filename": "data/tex/out2/penek/parts.png", "xywh": [579,264,140,135]},
      "x": 423, "y": 264,
    },
    { "macro"=["portal"], "groups"=["scene_out2_penek"],
      "x": 0, "y": 469, "w": 800, "h": 131,
      "target": "scene_out2",
    },
    { "macro"=["portal","portal_down"], "groups"=["scene_out2_penek"],
      "target": "scene_out2",
    },
    { "id"="out2_penek_state1", "macro"=["portal"], "groups"=["scene_out2_penek"],
      "x": 800, "y": 0, "w": 1, "h": 600,
      "target": "scene_out2_penek",
    },
    { "id"="out2_penek_state2", "macro"=["portal"], "groups"=[],
      "x": 800, "y": 0, "w": 1, "h": 600,
      "target": "scene_out2_penek",
    },
    { "id"="out2_penek_state3", "macro"=["portal"], "groups"=[],
      "x": 800, "y": 0, "w": 1, "h": 600,
      "target": "scene_out2_penek",
    },
    { "id"="out2_penek_state4", "macro"=["portal"], "groups"=[],
      "x": 800, "y": 0, "w": 1, "h": 600,
      "target": "scene_out2_penek",
    },
    { "id"="out2_penek_state5", "macro"=["portal"], "groups"=[],
      "x": 800, "y": 0, "w": 1, "h": 600,
      "target": "scene_out2_penek",
    },

    { "macro"=["background","interactive"], "groups"=["scene_painting2"],
      "texture": "data/tex/painting2/bg.png",
      "x": 0, "y": 0,
      "onvisible": {"do":[
          { "if": [ { "===": [{"lang": {}}, "ru"]},
            { "do": [
                  {"enable": "painting2_where_ru"},
                  {"enable": "painting2_thanks_ru"},
                  {"disable": "painting2_where_en"},
                  {"disable": "painting2_thanks_en"},
            ]},
            { "do": [
                  {"enable": "painting2_where_en"},
                  {"enable": "painting2_thanks_en"},
                  {"disable": "painting2_where_ru"},
                  {"disable": "painting2_thanks_ru"},
              ]},
          ]},
      ]},
      "onapply": {
        "id": "flower",
        "do": [
          {"set": {"id"="painting2_face", "groups":["scene_painting2"]}},
          {"set": {"id"="valve2", "groups":["scene_painting2"]}},
          {"sound": {"filename": "data/sound/doj_aldente_thanks.wav"}},
        ]
      },
      "oninteract": {"do": [
        {"if": [{"other_id_is": "flower"}, 
          { "if": [ { "===": [{"lang": {}}, "ru"]},
            { "do": [
                  {"set_groups": ["painting2_where_en", []]},
                  {"set_groups": ["painting2_thanks_en", []]},
                  {"set_groups": ["painting2_where_ru", []]},
                  {"set_groups": ["painting2_thanks_ru", ["scene_painting2"]]},
            ]},
            { "do": [
                  {"set_groups": ["painting2_where_ru", []]},
                  {"set_groups": ["painting2_thanks_ru", []]},
                  {"set_groups": ["painting2_where_en", []]},
                  {"set_groups": ["painting2_thanks_en", ["scene_painting2"]]},
              ]},
          ]},
        ]},
      ]},
    },
    { "id"="painting2_where_en", "macro"=["interactive"], "groups"=["scene_painting2"],
      "texture": {"filename": "data/tex/painting2/parts.png", "xywh": [143,129,210,82]},
      "x": 522, "y": 233,
    },
    { "id"="painting2_thanks_en", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/painting2/parts.png", "xywh": [142,37,178,85]},
      "x": 522, "y": 233,
    },
    { "id"="painting2_where_ru", "macro"=["interactive"], "groups"=["scene_painting2"],
      "texture": {"filename": "data/tex/painting2/parts.png", "xywh": [378,129,134,82]},
      "x": 522, "y": 233,
    },
    { "id"="painting2_thanks_ru", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/painting2/parts.png", "xywh": [362,37,150,85]},
      "x": 522, "y": 233,
    },
    { "id"="painting2_face", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/painting2/parts.png", "xywh": [0,0,131,207]},
      "x": 282, "y": 225,
    },
    { "id"="valve2", "macro"=["item","interactive"], "groups"=[],
      "texture": {"filename": "data/tex/painting2/parts.png", "xywh": [7,216,89,74]},
      "texitem": {"filename": "data/tex/painting2/parts.png", "xywh": [7,216,89,74]},
      "label": "valve",
      "label_ru": "вентель",
      "x": 389, "y": 284,
    },
    { "macro"=["portal","portal_down"], "groups"=["scene_painting2"],
      "target": "scene_kitchen",
    },
    
    { "macro"=["background"], "groups"=["scene_painting"],
      "texture": "data/tex/painting/bg.png",
      "x": 0, "y": 0
    },
    { "id"="painting_6_hand", "macro"=["interactive", "draganddrop"], "groups"=["scene_painting"],
      "texture": {"filename": "data/tex/painting/parts.png", "xywh": [150,0,180,185]},
      "x": 208, "y": 206,
      "onapply": {
        "id": "painting_6_6",
        "do": [
          {"set": {"id": "painting_6_6", "groups": []}},
          {"set": {"id": "painting_6_hand", "groups": []}},
        ]
      }
    },
    { "id"="painting_6_6", "macro"=["interactive", "draganddrop"], "groups"=["scene_painting"],
      "texture": {"filename": "data/tex/painting/parts.png", "xywh": [257,188,97,152]},
      "x": 587, "y": 108,
      "onapply": {
        "id": "painting_6_hand",
        "do": [
          {"set": {"id": "painting_6_6", "groups": []}},
          {"set": {"id": "painting_6_hand", "groups": []}},
        ]
      }
    },
    { "id"="painting_3_rome", "macro"=["interactive", "draganddrop"], "groups"=["scene_painting"],
      "texture": {"filename": "data/tex/painting/parts.png", "xywh": [340,0,128,113]},
      "x": 468, "y": 304,
      "onapply": {
        "id": "painting_3_domino",
        "do": [
          {"set": {"id": "painting_3_rome", "groups": []}},
          {"set": {"id": "painting_3_domino", "groups": []}},
        ]
      },
      "onapply": {
        "id": "painting_3_spiral",
        "do": [
          {"set": {"id": "painting_3_rome", "groups": []}},
          {"set": {"id": "painting_3_spiral", "groups": []}},
        ]
      },
      "onapply": {
        "id": "painting_3_triangle",
        "do": [
          {"set": {"id": "painting_3_rome", "groups": []}},
          {"set": {"id": "painting_3_triangle", "groups": []}},
        ]
      },
    },
    { "id"="painting_3_domino", "macro"=["interactive", "draganddrop"], "groups"=["scene_painting"],
      "texture": {"filename": "data/tex/painting/parts.png", "xywh": [369,217,85,110]},
      "x": 689, "y": 238,
      "onapply": {
        "id": "painting_3_rome",
        "do": [
          {"set": {"id": "painting_3_domino", "groups": []}},
          {"set": {"id": "painting_3_rome", "groups": []}},
        ]
      },
      "onapply": {
        "id": "painting_3_spiral",
        "do": [
          {"set": {"id": "painting_3_domino", "groups": []}},
          {"set": {"id": "painting_3_spiral", "groups": []}},
        ]
      },
      "onapply": {
        "id": "painting_3_triangle",
        "do": [
          {"set": {"id": "painting_3_domino", "groups": []}},
          {"set": {"id": "painting_3_triangle", "groups": []}},
        ]
      },
    },
    { "id"="painting_3_spiral", "macro"=["interactive", "draganddrop"], "groups"=["scene_painting"],
      "texture": {"filename": "data/tex/painting/parts.png", "xywh": [2,1,142,153]},
      "x": 102, "y": 143,
      "onapply": {
        "id": "painting_3_rome",
        "do": [
          {"set": {"id": "painting_3_spiral", "groups": []}},
          {"set": {"id": "painting_3_rome", "groups": []}},
        ]
      },
      "onapply": {
        "id": "painting_3_domino",
        "do": [
          {"set": {"id": "painting_3_spiral", "groups": []}},
          {"set": {"id": "painting_3_domino", "groups": []}},
        ]
      },
      "onapply": {
        "id": "painting_3_triangle",
        "do": [
          {"set": {"id": "painting_3_spiral", "groups": []}},
          {"set": {"id": "painting_3_triangle", "groups": []}},
        ]
      },
    },
    { "id"="painting_3_triangle", "macro"=["interactive", "draganddrop"], "groups"=["scene_painting"],
      "texture": {"filename": "data/tex/painting/parts.png", "xywh": [142,196,83,128]},
      "x": 406, "y": 111,
      "onapply": {
        "id": "painting_3_rome",
        "do": [
          {"set": {"id": "painting_3_triangle", "groups": []}},
          {"set": {"id": "painting_3_rome", "groups": []}},
        ]
      },
      "onapply": {
        "id": "painting_3_domino",
        "do": [
          {"set": {"id": "painting_3_triangle", "groups": []}},
          {"set": {"id": "painting_3_domino", "groups": []}},
        ]
      },
      "onapply": {
        "id": "painting_3_spiral",
        "do": [
          {"set": {"id": "painting_3_triangle", "groups": []}},
          {"set": {"id": "painting_3_spiral", "groups": []}},
        ]
      },
    },
    { "id"="painting_2_rome", "macro"=["interactive", "draganddrop"], "groups"=["scene_painting"],
      "texture": {"filename": "data/tex/painting/parts.png", "xywh": [14,157,103,102]},
      "x": 412, "y": 235,
      "onapply": {
        "id": "painting_2_arab",
        "do": [
          {"set": {"id": "painting_2_rome", "groups": []}},
          {"set": {"id": "painting_2_arab", "groups": []}},
        ]
      }
    },
    { "id"="painting_2_arab", "macro"=["interactive", "draganddrop"], "groups"=["scene_painting"],
      "texture": {"filename": "data/tex/painting/parts.png", "xywh": [38,274,41,48]},
      "x": 637, "y": 340,
      "onapply": {
        "id": "painting_2_rome",
        "do": [
          {"set": {"id": "painting_2_rome", "groups": []}},
          {"set": {"id": "painting_2_arab", "groups": []}},
        ]
      }
    },
    { "macro"=["portal"], "groups"=["scene_painting"],
      "x"=0, "y"=473, "w"=800, "h"=127,
      "target"="scene_kitchen"
    },
    { "macro"=["portal","portal_down"], "groups"=["scene_painting"],
      "target": "scene_kitchen",
    },

    { "macro"=["background"], "groups"=["scene_basement"],
      "texture": "data/tex/basement/bg.png",
      "x": 0, "y": 0,
    },
    { "macro"=["interactive"], "groups"=["scene_basement"], "id"="basement_pasta_material",
     "texture": {"filename": "data/tex/basement/parts.png", "xywh": [8,110,87,82]},
      "x"=96, "y"=176,
    },
    { "id"="basement_chopper", "macro"=["interactive"], "groups"=["scene_basement"],
      "texture": {"filename": "data/tex/basement/parts.png", "xywh": [108,0,232,247]},
      "x"=23, "y"=192,
      "onapply": {
        "id": "medal",
      },
      "oninteract": {"do": [
          {"if": [{"other_id_is": "medal"}, 
            {"animate": [
              { "do": {"disable": "basement_dummy"}},
              { "do": {"log": "first animate frame started!"} },
              { "do": {"sound": {"filename": "data/sound/97995_chopper.wav"}} },
              { "dt": 500, "do": {
                "do": [
                  {"quest_set": [
                    "basement_pasta_material",
                    "y",
                    {"shakex": [{"lerpby": [176, 50]}, 5]}
                  ]},
                  {"quest_set": ["basement_chopper","x", {"shakex": [23,5]} ]},
                  {"quest_set": ["basement_chopper","y", {"shakey": [192,5]} ]}
                ]
              }},
              { "do": {"quest_set": ["basement_chopper","x",23]} },
              { "do": {"quest_set": ["basement_chopper","y",192]} },
              { "do": {"disable": "basement_pasta_material"}},
              { "do": {"enable": "basement_spagetti1"}},
              { "do": {"enable": "spagetti"}},
              { "do": {"log": "ALL DONE"}},
            ]},
          ]},
        ]},
    },
    { "id"="basement_dummy", "macro"=["interactive"], "groups"=["scene_basement"],
      "texture": {"filename": "data/tex/basement/parts.png", "xywh": [70,12,31,28]},
      "x"=119, "y"=234,
      "onapply": {
        "id": "medal",
      },
      "oninteract": {"do": [
          {"if": [{"other_id_is": "medal"}, 
            {"animate": [
              { "do": {"disable": "basement_dummy"}},
              { "do": {"log": "first animate frame started!"} },
              { "do": {"sound": {"filename": "data/sound/97995_chopper.wav"}} },
              { "dt": 500, "do": {
                "do": [
                  {"quest_set": [
                    "basement_pasta_material",
                    "y",
                    {"shakex": [{"lerpby": [176, 50]}, 5]}
                  ]},
                  {"quest_set": ["basement_chopper","x", {"shakex": [23,5]} ]},
                  {"quest_set": ["basement_chopper","y", {"shakey": [192,5]} ]}
                ]
              }},
              { "do": {"quest_set": ["basement_chopper","x",23]} },
              { "do": {"quest_set": ["basement_chopper","y",192]} },
              { "do": {"disable": "basement_pasta_material"}},
              { "do": {"enable": "basement_spagetti1"}},
              { "do": {"enable": "spagetti"}},
              { "do": {"log": "ALL DONE"}},
            ]},
          ]},
        ]},
    },
    { "id"="basement_plat", "macro"=["interactive"], "groups"=["scene_basement"],
      "texture": {"filename": "data/tex/basement/parts.png", "xywh": [154,261,146,59]},
      "x"=197, "y"=367,
    },
    { "id"="basement_spagetti1", "macro"=["interactive"], "groups"=["scene_basement"], "enable": 0,
      "texture": {"filename": "data/tex/basement/parts.png", "xywh": [357,83,43,121]},
      "x"=221, "y"=250,
    },
    { "id"="spagetti", "macro"=["interactive"], "groups"=["scene_basement"], "enable": 0,
      "texture": {"filename": "data/tex/basement/parts.png", "xywh": [6,48,89,50]},
      "x"=232, "y"=354,
      "label": "spagetti",
      "label_ru": "спагетти",
      "onapply": {
        "do": [
          {"set": {"id": "spagetti", "groups": []}},
          {"set": {"id": "basement_plat", "groups": []}},
          {"set": {"id": "todo_bg", "groups": ["todo"]}},
          {"set": {"id": "todo_spagetti_disabled", "groups": []}},
          {"set": {"id": "todo_spagetti_enabled", "groups": ["todo"]}},
          {"sound": {"filename": "data/sound/doj_aldente_ingredient.wav"}},
        ]
      },
      "oninteract": {"do": [
        { "if": [ { "===": [{"lang": {}}, "ru"]},
          {"set_groups": ["todo_lable_ru", ["todo"]]},
          {"set_groups": ["todo_lable", ["todo"]]}
        ]}
      ]}
    },
    { "macro"=["interactive"], "groups"=["scene_basement"],
      "texture": {"filename": "data/tex/basement/parts.png", "xywh": [345,9,78,67]},
      "x"=623, "y"=287,
    },
    { "id"="basement_cow", "macro"=[], "groups"=[],
      "texture": {"filename": "data/tex/basement/parts2.png", "xywh": [322,182,298,325]},
      "x": 455, "y": 114,
    },
    { "id"="basement_bone_right", "macro"=[], "groups"=["scene_basement"],
      "texture": {"filename": "data/tex/basement/parts2.png", "xywh": [499,3,17,23]},
      "x": 677, "y": 278,
    },
    { "id"="meat", "macro"=["interactive"], "groups"=["scene_basement"],
      "texture": {"filename": "data/tex/basement/parts2.png", "xywh": [375,0,49,78]},
      "texitem": {"filename": "data/tex/inventory.png", "xywh": [126,59,63,61]},
      "label": "meat",
      "label_ru": "мясо",
      "x": 631, "y": 250,
      "onapply": {
        "do": [
          {"set": {"id": "meat", "groups": []}},
          {"set": {"id": "todo_bg", "groups": ["todo"]}},
          {"set": {"id": "todo_meat_disabled", "groups": []}},
          {"set": {"id": "todo_meat_enabled", "groups": ["todo"]}},
          {"sound": {"filename": "data/sound/doj_aldente_ingredient.wav"}},
        ]
      },
      "oninteract": {"do": [
        { "if": [ { "===": [{"lang": {}}, "ru"]},
          {"set_groups": ["todo_lable_ru", ["todo"]]},
          {"set_groups": ["todo_lable", ["todo"]]}
        ]}
      ]}
    },
    { "id"="basement_bone_left", "macro"=[], "groups"=["scene_basement"],
      "texture": {"filename": "data/tex/basement/parts2.png", "xywh": [446,3,22,22]},
      "x": 529, "y": 225,
    },
    { "id"="basement_curtain_opened", "macro"=[], "groups"=[],
      "texture": {"filename": "data/tex/basement/parts2.png", "xywh": [536,34,106,144]},
      "x": 595, "y": 230,
    },
    { "id"="basement_curtain_hidden", "macro"=["interactive"], "groups"=[],
      "x": 595, "y": 230, "w": 40, "h": 144,
      "onapply": {
        "do": [
          {"set": {"id"="basement_curtain_opened", "groups"=[]}},
          {"set": {"id"="basement_curtain_hidden", "groups"=[]}},
          {"set": {"id"="basement_curtain_closed", "groups"=["scene_basement"]}},
          {"sound": {"filename": "data/sound/doj_aldente_curtain_open.wav"}},
        ]
      },
    },
    { "id"="basement_curtain_closed", "macro"=["interactive"], "groups"=["scene_basement"],
      "texture": {"filename": "data/tex/basement/parts2.png", "xywh": [428,36,107,136]},
      "x": 596, "y": 232,
      "onapply": {
        "do": [
          {"set": {"id"="basement_curtain_opened", "groups"=["scene_basement"]}},
          {"set": {"id"="basement_curtain_hidden", "groups"=["scene_basement"]}},
          {"set": {"id"="basement_curtain_closed", "groups"=[]}},
          {"sound": {"filename": "data/sound/doj_aldente_curtain_open.wav"}},
        ]
      },
    },
    { "id"="basement_cow_to_puzzle", "macro"=["interactive","portal"], "groups"=["scene_basement"],
      "texture": {"filename": "data/tex/basement/parts2.png", "xywh": [0,172,327,344]},
      "x": 449, "y": 107,
      "target": "scene_puzzle",
    },
    { "macro"=["background"], "groups"=["scene_basement"],
      "texture": "data/tex/basement/shadowmap.png",
      "x": 0, "y": 0
    },
    { "macro"=["portal"], "groups"=["scene_basement"],
      "target": "scene_out3",
      "x": 315, "y": 93, "w": 115, "h": 185,
    },

    { "macro"=["background"], "groups"=["scene_out3"],
      "texture": "data/tex/out3/bg.png",
      "x": 0, "y": 0,
    },
    { "id"="out3_flag_hole_first", "macro": [],
      "groups": ["scene_out3"],
      "x": 0, "y": 0, "w": 1, "h": 1,
    },
    { "id"="out3_flag_hole_first2", "macro": [],
      "groups": ["scene_out3"],
      "x": 0, "y": 0, "w": 1, "h": 1,
    },
    { "id"="out3_hole", "macro": ["interactive"], "enable": 0,
      "groups": ["scene_out3"],
      "texture": {"filename": "data/tex/out3/parts.png", "xywh": [15,194,130,41]},
      "x": 365, "y": 363, "w": 130, "h": 41,
      "oninteract":
        { "if": [{"is_enabled": "out3_flag_hole_first"},
          {"do": [{"disable": "out3_flag_hole_first"},
                {"sound": {"filename": "data/sound/doj_aldente_stairs.wav"}},
                {"animate": [
                  { "do": {"fade_in": 2000}},
                  { "dt": 3000},
                  { "do": {"move_to": "scene_basement"}},
                  { "do": {"disable": "out3_flag_hole_first2"}},
                  { "do": {"fade_out": 1000}},
                  { "dt": 1500},
                ]}
          ]},
          {"if": [{"!": {"is_enabled": "out3_flag_hole_first2"}}, {"move_to": "scene_basement"}]}
        ]}
    },
    { "id"="out3_acid", "macro": [],
      "groups": [],
      "texture": {"filename": "data/tex/out3/parts.png", "dt": 300,
        "frames": [
          { "xywh": [226,187,34,79] },
          { "xywh": [264,187,34,79] },
          { "xywh": [306,187,34,79] },
        ]
      },
      "x": 390, "y": 312,
      "onvisible": {"do":[
        {"sound": {"filename": "data/sound/344699_liquid.wav", "loop": 1}},
      ]},
    },
    { "macro": ["interactive"],
      "groups": ["scene_out3"],
      "texture": {"filename": "data/tex/out3/parts.png", "xywh": [139,0,201,186]},
      "x": 328, "y": 140,
      "onapply": {
        "id"="valve2",
        "do": [
          {"set": {"id": "out3_valve_off", "groups": ["scene_out3"]}},
        ]
      }
    },
    { "id"="hand_fire", "macro": ["item"], "groups": [],
      "texture": {"filename": "data/tex/inventory.png", "xywh": [236,60,64,64]},
      "texitem": {"filename": "data/tex/inventory.png", "xywh": [236,60,64,64]},
      "x": 0, "y": 0,
      "label": "hand with fire",
      "label_ru": "рука с огнём",
    },
    { "macro": ["interactive"],
      "groups": ["scene_out3"],
      "texture": {"filename": "data/tex/out3/parts.png", "xywh": [13,5,121,163]},
      "x": 133, "y": 176,
      "onapply": {
        "id": "hand",
        "do": [
          {"itemput": {"id": "hand_fire"}},
        ]
      }
    },
    { "id"="out3_left_fire", "macro": [],
      "groups": ["scene_out3"],
      "texture": {
        "filename": "data/tex/out3/parts.png",
        "dt": 100,
        "loop": 1,
        "frames": [
          { "filename": "data/tex/out3/parts.png", "xywh": [340,5,29,82] },
          { "filename": "data/tex/out3/parts.png", "xywh": [374,6,29,82] },
          { "filename": "data/tex/out3/parts.png", "xywh": [409,5,29,82] },
        ]
      },
      "x": 166, "y": 204,
    },
    { "id"="out3_right_fire", "macro": [],
      "groups": ["scene_out3"],
      "texture": {
        "filename": "data/tex/out3/parts.png",
        "dt": 100,
        "loop": 1,
        "frames": [
          { "filename": "data/tex/out3/parts.png", "xywh": [343,101,24,65] },
          { "filename": "data/tex/out3/parts.png", "xywh": [366,96,24,70] },
          { "filename": "data/tex/out3/parts.png", "xywh": [343,101,24,65] },
          { "filename": "data/tex/out3/parts.png", "xywh": [421,101,28,65] },
        ]
      },
      "onvisible": {"do":[
        {"sound": {"filename": "data/sound/doj_aldente_outdoor_fire.wav", "loop":1}}
      ]},
      "x": 222, "y": 132,
    },
    { "id"="out3_flag_first_turn_on", "macro": [],
      "groups": ["scene_out3"],
      "x": 0, "y": 0, "w": 1, "h": 1,
    },
    { "id"="out3_valve_off", "macro": ["interactive"],
      "groups": [],
      "texture": {"filename": "data/tex/out/parts2.png", "xywh": [15,131,64,64]},
      "x": 401, "y": 260,
      "oninteract": { "if": [{"is_enabled": "out3_flag_first_turn_on"},
        {"do": [
          {"sound": {"filename": "data/sound/382313_acid.wav", "volume": 128}},
          {"disable": "out3_flag_first_turn_on"}
        ]}
      ]},
      "onapply": {
        "do": [
          {"set": {"id": "out3_valve_off", "groups": []}},
          {"set": {"id": "out3_valve_on", "groups": ["scene_out3"]}},
          {"set": {"id": "out3_hole", "groups": ["scene_out3"]}},
          {"set": {"id": "out3_acid", "groups": ["scene_out3"]}},
          {"sound": {"filename": "data/sound/31379_valve.wav", "volume": 196}},
        ]
      }
    },
    { "id"="out3_valve_on", "macro": ["interactive"],
      "groups": [],
      "texture": {"filename": "data/tex/out/parts2.png", "xywh": [10,63,64,64]},
      "x": 401, "y": 260,
      "onapply": {
        "do": [
          {"set": {"id": "out3_valve_off", "groups": ["scene_out3"]}},
          {"set": {"id": "out3_valve_on", "groups": []}},
          {"set": {"id": "out3_hole", "groups": ["scene_out3"]}},
          {"set": {"id": "out3_acid", "groups": []}},
        ]
      }
    },
    { "macro": ["portal","portal_left"],
      "groups": ["scene_out3"],
      "target": "scene_out2",
    },
    { "macro": ["portal","portal_right"],
      "groups": ["scene_out3"],
      "target": "scene_out",
    },

    { "macro": ["background","interactive"],
      "groups": ["scene_cow"],
      "texture": "data/tex/default/bg.png",
      "x": 0, "y": 0,
    },
    { "id"="cow_cow", "macro"=[], "groups"=["scene_cow"],
      "texture": {"filename": "data/tex/cow/parts.png", "xywh": [173,31,297,325]},
      "x": 217, "y": 138,
    },
    { "id"="cow_left_bone", "macro"=[], "groups"=["scene_cow"],
      "texture": {"filename": "data/tex/cow/parts.png", "xywh": [74,5,21,22]},
      "x": 386, "y": 303,
    },
    { "id"="cow_right_bone", "macro"=[], "groups"=["scene_cow"],
      "texture": {"filename": "data/tex/cow/parts.png", "xywh": [127,3,15,25]},
      "x": 439, "y": 301,
    },
    { "id"="cow_curtain_closed", "macro"=["interactive"], "groups"=["scene_cow"],
      "texture": {"filename": "data/tex/cow/parts.png", "xywh": [56,39,105,134]},
      "x": 358, "y": 258,
      "onapply": {
        "do": [
          {"set": {"id"="cow_curtain_closed", "groups"=[]}},
          {"set": {"id"="cow_curtain_opened", "groups"=["scene_cow"]}},
        ]
      }
    },
    { "id"="cow_curtain_opened", "macro"=[], "groups"=[],
      "texture": {"filename": "data/tex/cow/parts.png", "xywh": [62,188,123,147]},
      "x": 353, "y": 255,
    },

    { "macro"=["background"], "groups"=["scene_puzzle"],
      "texture": "data/tex/puzzle/bg.png",
      "x": 0, "y": 0
    },
    { "id"="puzzle_2_arab", "macro"=["interactive","draganddrop"], "groups"=["scene_puzzle"],
      "texture": {"filename": "data/tex/puzzle/parts.png", "xywh": [0,100,81,59]},
      "x": 181, "y": 251,
      "alwaysdropback": 0,
      "onapply": {
        "id": "puzzle_2_rome",
        "do": [
          {"set": {"id": "puzzle_2_arab", "groups": []}},
          {"set": {"id": "puzzle_2_rome", "groups": []}},
          {"set": {"id": "puzzle_eye1_opened", "groups": ["scene_puzzle"]}},
          {"set": {"id": "puzzle_eye1_closed", "groups": []}},
          {"sound": {"filename": "data/sound/doj_aldente_open_eye.wav"}},
        ]
      },
    },
    { "id"="puzzle_2_rome", "macro"=["interactive","draganddrop"], "groups"=["scene_puzzle"],
      "texture": {"filename": "data/tex/puzzle/parts.png", "xywh": [109,159,74,68]},
      "x": 678, "y": 326,
      "alwaysdropback": 0,
      "onapply": {
        "id": "puzzle_2_arab",
        "do": [
          {"set": {"id": "puzzle_2_arab", "groups": []}},
          {"set": {"id": "puzzle_2_rome", "groups": []}},
          {"set": {"id": "puzzle_eye1_opened", "groups": ["scene_puzzle"]}},
          {"set": {"id": "puzzle_eye1_closed", "groups": []}},
          {"sound": {"filename": "data/sound/doj_aldente_open_eye.wav"}},
        ]
      },
    },
    { "id"="puzzle_3_rome", "macro"=["interactive","draganddrop"], "groups"=["scene_puzzle"],
      "texture": {"filename": "data/tex/puzzle/parts.png", "xywh": [0,0,75,99]},
      "x": 92, "y": 119,
      "alwaysdropback": 0,
      "onapply": {
        "id": "puzzle_3_domino",
        "do": [
          {"set": {"id": "puzzle_3_rome", "groups": []}},
          {"set": {"id": "puzzle_3_domino", "groups": []}},
          {"set": {"id": "puzzle_eye3_opened", "groups": ["scene_puzzle"]}},
          {"set": {"id": "puzzle_eye3_closed", "groups": []}},
          {"sound": {"filename": "data/sound/doj_aldente_open_eye.wav"}},
        ]
      },
      "onapply": {
        "id": "puzzle_3_spiral",
        "do": [
          {"set": {"id": "puzzle_3_rome", "groups": []}},
          {"set": {"id": "puzzle_3_spiral", "groups": []}},
          {"set": {"id": "puzzle_eye3_opened", "groups": ["scene_puzzle"]}},
          {"set": {"id": "puzzle_eye3_closed", "groups": []}},
          {"sound": {"filename": "data/sound/doj_aldente_open_eye.wav"}},
        ]
      },
      "onapply": {
        "id": "puzzle_3_triangle",
        "do": [
          {"set": {"id": "puzzle_3_triangle", "groups": []}},
          {"set": {"id": "puzzle_3_rome", "groups": []}},
          {"set": {"id": "puzzle_eye2_opened", "groups": ["scene_puzzle"]}},
          {"set": {"id": "puzzle_eye2_closed", "groups": []}},
          {"sound": {"filename": "data/sound/doj_aldente_open_eye.wav"}},
        ]
      },
    },
    { "id"="puzzle_3_triangle", "macro"=["interactive","draganddrop"], "groups"=["scene_puzzle"],
      "texture": {"filename": "data/tex/puzzle/parts.png", "xywh": [202,2,88,185]},
      "x": 418, "y": 112,
      "alwaysdropback": 0,
      "onapply": {
        "id": "puzzle_3_domino",
        "do": [
          {"set": {"id": "puzzle_3_triangle", "groups": []}},
          {"set": {"id": "puzzle_3_domino", "groups": []}},
          {"set": {"id": "puzzle_eye2_opened", "groups": ["scene_puzzle"]}},
          {"set": {"id": "puzzle_eye2_closed", "groups": []}},
          {"sound": {"filename": "data/sound/doj_aldente_open_eye.wav"}},
        ]
      },
      "onapply": {
        "id": "puzzle_3_spiral",
        "do": [
          {"set": {"id": "puzzle_3_triangle", "groups": []}},
          {"set": {"id": "puzzle_3_spiral", "groups": []}},
          {"set": {"id": "puzzle_eye2_opened", "groups": ["scene_puzzle"]}},
          {"set": {"id": "puzzle_eye2_closed", "groups": []}},
          {"sound": {"filename": "data/sound/doj_aldente_open_eye.wav"}},
        ]
      },
      "onapply": {
        "id": "puzzle_3_rome",
        "do": [
          {"set": {"id": "puzzle_3_triangle", "groups": []}},
          {"set": {"id": "puzzle_3_rome", "groups": []}},
          {"set": {"id": "puzzle_eye2_opened", "groups": ["scene_puzzle"]}},
          {"set": {"id": "puzzle_eye2_closed", "groups": []}},
          {"sound": {"filename": "data/sound/doj_aldente_open_eye.wav"}},
        ]
      },
    },
    { "id"="puzzle_3_domino", "macro"=["interactive","draganddrop"], "groups"=["scene_puzzle"],
      "texture": {"filename": "data/tex/puzzle/parts.png", "xywh": [1,158,104,55]},
      "x": 290, "y": 251,
      "alwaysdropback": 0,
      "onapply": {
        "id": "puzzle_3_rome",
        "do": [
          {"set": {"id": "puzzle_3_rome", "groups": []}},
          {"set": {"id": "puzzle_3_domino", "groups": []}},
          {"set": {"id": "puzzle_eye3_opened", "groups": ["scene_puzzle"]}},
          {"set": {"id": "puzzle_eye3_closed", "groups": []}},
          {"sound": {"filename": "data/sound/doj_aldente_open_eye.wav"}},
        ]
      },
      "onapply": {
        "id": "puzzle_3_spiral",
        "do": [
          {"set": {"id": "puzzle_3_domino", "groups": []}},
          {"set": {"id": "puzzle_3_spiral", "groups": []}},
          {"set": {"id": "puzzle_eye3_opened", "groups": ["scene_puzzle"]}},
          {"set": {"id": "puzzle_eye3_closed", "groups": []}},
          {"sound": {"filename": "data/sound/doj_aldente_open_eye.wav"}},
        ]
      },
      "onapply": {
        "id": "puzzle_3_triangle",
        "do": [
          {"set": {"id": "puzzle_3_triangle", "groups": []}},
          {"set": {"id": "puzzle_3_domino", "groups": []}},
          {"set": {"id": "puzzle_eye2_opened", "groups": ["scene_puzzle"]}},
          {"set": {"id": "puzzle_eye2_closed", "groups": []}},
          {"sound": {"filename": "data/sound/doj_aldente_open_eye.wav"}},
        ]
      },
    },
    { "id"="puzzle_3_spiral", "macro"=["interactive","draganddrop"], "groups"=["scene_puzzle"],
      "texture": {"filename": "data/tex/puzzle/parts.png", "xywh": [290,121,106,112]},
      "x": 651, "y": 135,
      "alwaysdropback": 0,
      "onapply": {
        "id": "puzzle_3_rome",
        "do": [
          {"set": {"id": "puzzle_3_rome", "groups": []}},
          {"set": {"id": "puzzle_3_spiral", "groups": []}},
          {"set": {"id": "puzzle_eye3_opened", "groups": ["scene_puzzle"]}},
          {"set": {"id": "puzzle_eye3_closed", "groups": []}},
          {"sound": {"filename": "data/sound/doj_aldente_open_eye.wav"}},
        ]
      },
      "onapply": {
        "id": "puzzle_3_domino",
        "do": [
          {"set": {"id": "puzzle_3_domino", "groups": []}},
          {"set": {"id": "puzzle_3_spiral", "groups": []}},
          {"set": {"id": "puzzle_eye3_opened", "groups": ["scene_puzzle"]}},
          {"set": {"id": "puzzle_eye3_closed", "groups": []}},
          {"sound": {"filename": "data/sound/doj_aldente_open_eye.wav"}},
        ]
      },
      "onapply": {
        "id": "puzzle_3_triangle",
        "do": [
          {"set": {"id": "puzzle_3_triangle", "groups": []}},
          {"set": {"id": "puzzle_3_spiral", "groups": []}},
          {"set": {"id": "puzzle_eye2_opened", "groups": ["scene_puzzle"]}},
          {"set": {"id": "puzzle_eye2_closed", "groups": []}},
          {"sound": {"filename": "data/sound/doj_aldente_open_eye.wav"}},
        ]
      },
    },
    { "id"="puzzle_6_arab", "macro"=["interactive","draganddrop"], "groups"=["scene_puzzle"],
      "texture": {"filename": "data/tex/puzzle/parts.png", "xywh": [292,3,81,116]},
      "x": 533, "y": 112,
      "alwaysdropback": 0,
      "onapply": {
        "id": "puzzle_6_hand",
        "do": [
          {"set": {"id": "puzzle_6_arab", "groups": []}},
          {"set": {"id": "puzzle_6_hand", "groups": []}},
          {"set": {"id": "puzzle_eye4_opened", "groups": ["scene_puzzle"]}},
          {"set": {"id": "puzzle_eye4_closed", "groups": []}},
          {"sound": {"filename": "data/sound/doj_aldente_open_eye.wav"}},
        ]
      },
    },
    { "id"="puzzle_6_hand", "macro"=["interactive","draganddrop"], "groups"=["scene_puzzle"],
      "texture": {"filename": "data/tex/puzzle/parts.png", "xywh": [80,0,119,159]},
      "x": 27, "y": 253,
      "alwaysdropback": 0,
      "onapply": {
        "id": "puzzle_6_arab",
        "do": [
          {"set": {"id": "puzzle_6_arab", "groups": []}},
          {"set": {"id": "puzzle_6_hand", "groups": []}},
          {"set": {"id": "puzzle_eye4_opened", "groups": ["scene_puzzle"]}},
          {"set": {"id": "puzzle_eye4_closed", "groups": []}},
          {"sound": {"filename": "data/sound/doj_aldente_open_eye.wav"}},
        ]
      },
    },
    { "id"="puzzle_eye1_opened", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/puzzle/parts.png", "xywh": [8,241,74,48]},
      "x": 251, "y": 422,
      "enable": 0,
      "alwaysdropback": 0,
      "onenable": {
        "if": [
          { "and": [
            {"is_enabled": "puzzle_eye1_opened"},
            {"is_enabled": "puzzle_eye2_opened"},
            {"is_enabled": "puzzle_eye3_opened"},
            {"is_enabled": "puzzle_eye4_opened"},
          ] },
          { "do": [
            {"set_groups": ["basement_cow_to_puzzle", []]},
            {"set_groups": ["basement_cow", ["scene_basement"]]},
            {"move_to": "scene_basement"},
          ] },
        ]
      },
    },
    { "id"="puzzle_eye2_opened", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/puzzle/parts.png", "xywh": [91,234,85,54]},
      "x": 364, "y": 407,
      "enable": 0,
      "alwaysdropback": 0,
      "onenable": {
        "if": [
          { "and": [
            {"is_enabled": "puzzle_eye1_opened"},
            {"is_enabled": "puzzle_eye2_opened"},
            {"is_enabled": "puzzle_eye3_opened"},
            {"is_enabled": "puzzle_eye4_opened"},
          ] },
          { "do": [
            {"set_groups": ["basement_cow_to_puzzle", []]},
            {"set_groups": ["basement_cow", ["scene_basement"]]},
            {"move_to": "scene_basement"},
          ] },
        ]
      },
    },
    { "id"="puzzle_eye3_opened", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/puzzle/parts.png", "xywh": [177,234,79,53]},
      "x": 491, "y": 411,
      "enable": 0,
      "alwaysdropback": 0,
      "onenable": {
        "if": [
          { "and": [
            {"is_enabled": "puzzle_eye1_opened"},
            {"is_enabled": "puzzle_eye2_opened"},
            {"is_enabled": "puzzle_eye3_opened"},
            {"is_enabled": "puzzle_eye4_opened"},
          ] },
          { "do": [
            {"set_groups": ["basement_cow_to_puzzle", []]},
            {"set_groups": ["basement_cow", ["scene_basement"]]},
            {"move_to": "scene_basement"},
          ] },
        ]
      },
    },
    { "id"="puzzle_eye4_opened", "macro"=["interactive"], "groups"=[],
      "texture": {"filename": "data/tex/puzzle/parts.png", "xywh": [258,249,58,38]},
      "x": 604, "y": 422,
      "enable": 0,
      "alwaysdropback": 0,
      "onenable": {
        "if": [
          { "and": [
            {"is_enabled": "puzzle_eye1_opened"},
            {"is_enabled": "puzzle_eye2_opened"},
            {"is_enabled": "puzzle_eye3_opened"},
            {"is_enabled": "puzzle_eye4_opened"},
          ] },
          { "do": [
            {"set_groups": ["basement_cow_to_puzzle", []]},
            {"set_groups": ["basement_cow", ["scene_basement"]]},
            {"move_to": "scene_basement"},
          ] },
        ]
      },
    },
    { "id"="puzzle_eye1_closed", "macro"=["interactive"], "groups"=["scene_puzzle"],
      "texture": {"filename": "data/tex/puzzle/parts.png", "xywh": [6,299,68,21]},
      "x": 253, "y": 423
    },
    { "id"="puzzle_eye2_closed", "macro"=["interactive"], "groups"=["scene_puzzle"],
      "texture": {"filename": "data/tex/puzzle/parts.png", "xywh": [85,293,88,27]},
      "x": 363, "y": 432
    },
    { "id"="puzzle_eye3_closed", "macro"=["interactive"], "groups"=["scene_puzzle"],
      "texture": {"filename": "data/tex/puzzle/parts.png", "xywh": [178,293,67,27]},
      "x": 496, "y": 432
    },
    { "id"="puzzle_eye4_closed", "macro"=["interactive"], "groups"=["scene_puzzle"],
      "texture": {"filename": "data/tex/puzzle/parts.png", "xywh": [252,293,58,27]},
      "x": 606, "y": 431
    },
    { "macro"=["portal","portal_down"], "groups"=["scene_puzzle"],
      "target": "scene_basement",
    },

    { "macro": ["background"],
      "groups": ["scene_lang"],
      "texture": "data/tex/lang/background.png",
      "x": 0, "y": 0,
    },
    { "macro": ["interactive"], "id": "lang_eng",
      "groups": ["scene_lang"],
      "x": 119, "y": 121,
      "texture": {"filename": "data/tex/lang/heads.png", "xywh": [0,0,170,276]},
      "onapply": { "do": [
        {"lang": "en"},
        {"set": {"id"="intro_play_ru", "enable"=0}},
        {"moveto": {"room": "scene_intro"}}
      ]}
    },
    { "macro": ["interactive"], "id": "lang_rus",
      "groups": ["scene_lang"],
      "x": 487, "y": 129,
      "texture": {"filename": "data/tex/lang/heads.png", "xywh": [170,0,170,276]},
      "onapply": { "do": [
        {"lang": "ru"},
        {"set": {"id"="intro_play_ru", "enable"=1}},
        {"moveto": {"room": "scene_intro"}}
      ]}
    },

    { "macro": ["background"],
      "groups": ["scene_intro"],
      "texture": "data/tex/intro/oblozhka.png",
      "x": 0, "y": 0,
    },
    { "macro": [], "id": "intro_play_ru",
      "groups": ["scene_intro"],
      "x": 476, "y": 240,
      "enable": 0,
      "texture": {"filename": "data/tex/intro/button.png", "xywh": [0,0,201,144]},
    },
    { "macro": ["portal","interactive"], "id": "intro_portal",
      "groups": ["scene_intro"],
      "x": 476, "y": 240, "w": 201, "h": 144,
      "target": "scene_dream"
    },

    { "macro": ["background","interactive"], "id": "briefing_background",
      "groups": ["scene_briefing"],
      "texture": "data/tex/cook/cook1.png",
      "x": 0, "y": 0,
      "onvisible": {"do": [
            { "do": { "if": [ { "===": [{"lang": {}}, "ru"]},
              { "do": [
                  {"enable":  "briefing_text_ru"},
                  {"enable":  "briefing_next1_ru"},
                  {"disable":  "briefing_next1_en"},
                  {"set_groups": ["todo_lable_ru", ["todo"]]},
              ]},
              { "do": [
                  {"enable":  "briefing_text_en"},
                  {"enable":  "briefing_next1_en"},
                  {"disable":  "briefing_next1_ru"},
                  {"set_groups": ["todo_lable", ["todo"]]},
              ]},
            ]}},
        {"animate": [
          {"dt": 800},
            {"do": {"set_groups": ["kitchen_cook_hand_before", []]}},
            {"do": {"set_groups": ["kitchen_lightmap", []]}},
            {"do": {"set_groups": ["kitchen_lightmap_portal", []]}},
            {"do": {"set_groups": ["todo_bg", ["todo"]]}},
            {"do": {"set_groups": ["kitchen_fire_cloud", ["scene_kitchen"]]}},
          {"dt": 3000},
            {"do": {"set_groups": ["todo_meat_disabled", ["todo"]]}},
            {"do": {"enable": "briefing_meat_1"}},
            { "do": { "if": [ { "===": [{"lang": {}}, "ru"]},
              { "do": [
                  {"disable": "briefing_text_ru"},
                  {"enable":  "briefing_meat_text_ru"}
              ]},
              { "do": [
                  {"disable": "briefing_text_en"},
                  {"enable":  "briefing_meat_text_en"}
              ]},
            ]}},
          {"dt": 200},
            {"do": {"disable": "briefing_meat_1"}},
            {"do": {"enable": "briefing_meat_2"}},
          {"dt": 1500},
            {"do": {"disable": "briefing_meat_2"}},
            {"do": {"set_groups": ["todo_salt_disabled", ["todo"]]}},
            {"do": {"enable": "briefing_salt_1"}},
            { "do": { "if": [ { "===": [{"lang": {}}, "ru"]},
              { "do": [
                  {"disable": "briefing_meat_text_ru"},
                  {"enable":  "briefing_salt_text_ru"}
              ]},
              { "do": [
                  {"disable": "briefing_meat_text_en"},
                  {"enable":  "briefing_salt_text_en"}
              ]},
            ]}},
          {"dt": 200},
            {"do": {"disable": "briefing_salt_1"}},
            {"do": {"enable": "briefing_salt_2"}},
          {"dt": 1500},
            {"do": {"disable": "briefing_salt_2"}},
            {"do": {"set_groups": ["todo_spagetti_disabled", ["todo"]]}},
            {"do": {"enable": "briefing_spaghetti_1"}},
            { "do": { "if": [ { "===": [{"lang": {}}, "ru"]},
              { "do": [
                  {"disable": "briefing_salt_text_ru"},
                  {"enable":  "briefing_spaghetti_text_ru"}
              ]},
              { "do": [
                  {"disable": "briefing_salt_text_en"},
                  {"enable":  "briefing_spaghetti_text_en"}
              ]},
            ]}},
          {"dt": 200},
            {"do": {"disable": "briefing_spaghetti_1"}},
            {"do": {"enable": "briefing_spaghetti_2"}},
          {"dt": 1500},
            {"do": {"disable": "briefing_spaghetti_2"}},
            {"do": {"enable":  "briefing_fullscreen_portal"}},
            {"do": {"move_to":  "scene_kitchen"}}
        ]}
      ]}
    },
    { "id"="todo_bg", "macro"=[], "groups"=[],
      "texture": {"filename": "data/tex/list/bg.png"},
      "x": 130, "y": 4,
    },
    { "id"="todo_lable", "macro"=[], "groups"=[],
      "texture": {"filename": "data/tex/todo.png"},
      "x": 150, "y": 24,
    },
    { "id"="todo_lable_ru", "macro"=[], "groups"=[],
      "texture": {"filename": "data/tex/todo_ru.png"},
      "x": 150, "y": 24,
    },
    { "id"="todo_meat_disabled", "macro"=[], "groups"=[],
      "texture": {"filename": "data/tex/inventory.png", "xywh": [365,59,63,61]},
      "x": 406, "y": 24,
    },
    { "id"="todo_salt_disabled", "macro"=[], "groups"=[],
      "texture": {"filename": "data/tex/inventory.png", "xywh": [422,59,54,61]},
      "x": 470, "y": 24,
    },
    { "id"="todo_spagetti_disabled", "macro"=[], "groups"=[],
      "texture": {"filename": "data/tex/inventory.png", "xywh": [301,60,66,60]},
      "x": 520, "y": 24,
    },
    { "id"="todo_meat_enabled", "macro"=[], "groups"=[],
      "texture": {"filename": "data/tex/inventory.png", "xywh": [126,59,63,61]},
      "x": 406, "y": 24,
    },
    { "id"="todo_salt_enabled", "macro"=[], "groups"=[],
      "texture": {"filename": "data/tex/inventory.png", "xywh": [183,59,54,61]},
      "x": 470, "y": 24,
    },
    { "id"="todo_spagetti_enabled", "macro"=[], "groups"=[],
      "texture": {"filename": "data/tex/inventory.png", "xywh": [62,60,66,60]},
      "x": 520, "y": 24,
    },
    { "macro": [],
      "groups": ["scene_briefing"],
      "texture": {"filename": "data/tex/cook/cookanim0.png", "dt": 150, "frames": [
                    {"xywh": [0,    0,  380,441]},
                    {"xywh": [380,  0,  380,441]},
                    {"xywh": [0,    441,380,441]},
                    {"xywh": [380,  441,380,441]}
               ]},
      "onvisible": { "do": {"sound": {"filename": "data/sound/doj_aldente_beak.wav", "loop": 1, "volume": 100}}},
      "x": 14, "y": 82,
    },
    { "macro": [], "id": "briefing_text_en",
      "groups": ["scene_briefing"],
      "x": 389, "y": 118,
      "enable": 0,
      "texture": {"filename": "data/tex/cook/foodanim.png", "xywh": [603,693,421,330]},
    },
    { "macro": [], "id": "briefing_text_ru",
      "groups": ["scene_briefing"],
      "x": 389, "y": 118,
      "enable": 0,
      "texture": {"filename": "data/tex/cook/foodanim.png", "xywh": [603,364,421,340]},
    },
    { "macro": [], "id": "briefing_meat_1",
      "groups": ["scene_briefing"],
      "x": 410, "y": 116,
      "enable": 0,
      "texture": {"filename": "data/tex/cook/foodanim.png", "xywh": [0,0,265,343]},
    },
    { "macro": [], "id": "briefing_meat_2",
      "groups": ["scene_briefing"],
      "x": 410, "y": 116,
      "enable": 0,
      "texture": {"filename": "data/tex/cook/foodanim.png", "xywh": [265,0,265,347]},
    },
    { "macro": [], "id": "briefing_spaghetti_1",
      "groups": ["scene_briefing"],
      "x": 410, "y": 116,
      "enable": 0,
      "texture": {"filename": "data/tex/cook/foodanim.png", "xywh": [0,343,259,347]},
    },
    { "macro": [], "id": "briefing_spaghetti_2",
      "groups": ["scene_briefing"],
      "x": 410, "y": 116,
      "enable": 0,
      "texture": {"filename": "data/tex/cook/foodanim.png", "xywh": [259,343,259,340]},
    },
    { "macro": [], "id": "briefing_salt_1",
      "groups": ["scene_briefing"],
      "x": 410, "y": 126,
      "enable": 0,
      "texture": {"filename": "data/tex/cook/foodanim.png", "xywh": [0,691,262,333]},
    },
    { "macro": [], "id": "briefing_salt_2",
      "groups": ["scene_briefing"],
      "x": 410, "y": 126,
      "enable": 0,
      "texture": {"filename": "data/tex/cook/foodanim.png", "xywh": [262,691,262,333]},
    },
    { "macro": [], "id": "briefing_spaghetti_text_ru",
      "groups": ["scene_briefing"],
      "x": 497, "y": 382,
      "enable": 0,
      "texture": {"filename": "data/tex/cook/foodanim.png", "xywh": [872,0,152,56]},
    },
    { "macro": [], "id": "briefing_spaghetti_text_en",
      "groups": ["scene_briefing"],
      "x": 497, "y": 382,
      "enable": 0,
      "texture": {"filename": "data/tex/cook/foodanim.png", "xywh": [872,56,152,56]},
    },
    { "macro": [], "id": "briefing_meat_text_ru",
      "groups": ["scene_briefing"],
      "x": 497, "y": 382,
      "enable": 0,
      "texture": {"filename": "data/tex/cook/foodanim.png", "xywh": [872,112,152,56]},
    },
    { "macro": [], "id": "briefing_meat_text_en",
      "groups": ["scene_briefing"],
      "x": 497, "y": 382,
      "enable": 0,
      "texture": {"filename": "data/tex/cook/foodanim.png", "xywh": [872,168,152,56]},
    },
    { "macro": [], "id": "briefing_salt_text_ru",
      "groups": ["scene_briefing"],
      "x": 497, "y": 382,
      "enable": 0,
      "texture": {"filename": "data/tex/cook/foodanim.png", "xywh": [872,220,152,56]},
    },
    { "macro": [], "id": "briefing_salt_text_en",
      "groups": ["scene_briefing"],
      "x": 497, "y": 382,
      "enable": 0,
      "texture": {"filename": "data/tex/cook/foodanim.png", "xywh": [872,280,152,56]},
    },
    { "macro": ["interactive"], "id": "briefing_next1_en",
      "groups": ["scene_briefing"],
      "x": 517, "y": 487,
      "enable": 1,
      "texture": {"filename": "data/tex/cook/cookanim0.png", "xywh": [806,0,218,97]},
      "oninteract": {"do": [
          {"skipcutscene": ""}
      ]}
    },
    { "macro": ["interactive"], "id": "briefing_next1_ru",
      "groups": ["scene_briefing"],
      "x": 517, "y": 487,
      "enable": 1,
      "texture": {"filename": "data/tex/cook/cookanim0.png", "xywh": [806,97,218,97]},
      "oninteract": {"do": [
          {"skipcutscene": ""}
      ]}
    },
    { "macro": ["portal"], "id": "briefing_fullscreen_portal",
      "groups": ["scene_briefing"],
      "x": 0, "y": 0, "w": 800, "h": 600,
      "enable": 0,
      "target": "scene_kitchen"
    },


    { "macro": ["background"],
      "groups": ["scene_final"],
      "texture": "data/tex/final/back.png",
      "x": 0, "y": 0,
      "onvisible": {"do": [
          {"animate": [
            { "do": {"log": "SPAGHETTI SHOT!"} },
            { "do": {"disable": "fullscreen_on"}},
            { "do": {"disable": "fullscreen_off"}},
            { "do": {"disable": "sound_on"}},
            { "do": {"disable": "sound_off"}},
            { "dt": 500 },
            { "dt": 150, "do": {
              "do": [
                {"quest_set": ["final_spaghetti_1","y", {"lerpby": [-402, 402]} ]},
              ]
            }},
            { "do": {"sound": {"filename": "data/sound/doj_aldente_spaghetti_slap.wav"}}},
            { "do": {"disable": "final_spaghetti_1"}},
            { "do": {"enable": "final_spaghetti_2"}},
            { "do": {"disable": "plate_B"}},
            { "do": {"disable": "plate_B1"}},
            { "do": {"enable": "plate_A"}},
            { "do": {"enable": "plate_A1"}},
            { "dt": 180 },
            { "do": {"disable": "final_spaghetti_2"}},
            { "do": {"enable": "final_spaghetti_3"}},
            { "do": {"disable": "plate_A"}},
            { "do": {"disable": "plate_A1"}},
            { "do": {"enable": "plate_B"}},
            { "do": {"enable": "plate_B1"}},
            { "do": {"enable": "final_meatball1_fall"}},
            { "dt": 180, "do": {
              "do": [
                {"quest_set": ["final_meatball1_fall","y", {"lerpby": [-150, 380]} ]},
              ]
            }},
            { "do": {"sound": {"filename": "data/sound/doj_aldente_meatball.wav", "volume": 100}}},
            { "do": {"disable": "final_meatball1_fall"}},
            { "do": {"enable": "final_meatball1"}},
            { "do": {"enable": "final_meatball2_fall"}},
            { "dt": 180, "do": {
              "do": [
                {"quest_set": ["final_meatball2_fall","y", {"lerpby": [-150, 370]} ]},
              ]
            }},
            { "do": {"sound": {"filename": "data/sound/doj_aldente_meatball.wav", "volume": 100}}},
            { "do": {"disable": "final_meatball2_fall"}},
            { "do": {"enable": "final_meatball2"}},
            { "do": {"enable": "final_meatball3_fall"}},
            { "dt": 180, "do": {
              "do": [
                {"quest_set": ["final_meatball3_fall","y", {"lerpby": [-143, 250]} ]},
              ]
            }},
            { "do": {"sound": {"filename": "data/sound/doj_aldente_meatball.wav", "volume": 100}}},
            { "do": {"disable": "final_meatball3_fall"}},
            { "do": {"enable": "final_meatball3"}},
            { "do": {"enable": "final_meatball4_fall"}},
            { "dt": 180, "do": {
              "do": [
                {"quest_set": ["final_meatball4_fall","y", {"lerpby": [-173, 350]} ]},
              ]
            }},
            { "do": {"sound": {"filename": "data/sound/doj_aldente_meatball.wav", "volume": 100}}},
            { "do": {"disable": "final_meatball4_fall"}},
            { "do": {"enable": "final_meatball4"}},
            { "dt": 100 },
            { "do": {"enable": "final_meatball5_fall"}},
            { "dt": 180, "do": {
              "do": [
                {"quest_set": ["final_meatball5_fall","y", {"lerpby": [-173, 350]} ]},
              ]
            }},
            { "do": {"sound": {"filename": "data/sound/doj_aldente_meatball.wav", "volume": 40}}},
            { "do": {"disable": "final_meatball5_fall"}},
            { "do": {"enable": "final_meatball5"}},
            { "dt": 100 },
            { "do": {"enable": "final_skull_fall"}},
            { "dt": 180, "do": {
              "do": [
                {"quest_set": ["final_skull_fall","y", {"lerpby": [-150,149]} ]},
              ]
            }},
            { "do": {"sound": {"filename": "data/sound/doj_aldente_meatball.wav", "volume": 30}}},
            { "do": {"disable": "final_skull_fall"}},
            { "do": {"enable":  "final_skull_afterfall1"}},
            { "dt": 40 },
            { "do": {"disable": "final_skull_afterfall1"}},
            { "do": {"enable":  "final_skull_afterfall2"}},
            { "dt": 40 },
            { "do": {"disable": "final_skull_afterfall2"}},
            { "do": {"enable":  "final_skull_afterfall3"}},
            { "dt": 600 },

            { "do": { "if": [ { "===": [{"lang": {}}, "ru"]},
              { "do": [
                  {"enable":  "final_text_ru_1"}
              ]},
              { "do": [
                  {"enable":  "final_text_en_1"}
              ]},
            ]}},

            { "do": {"disable": "final_skull_afterfall3"}},
            { "do": {"enable":  "final_skull_speak1"}},
            { "dt": 150 },
            { "do": { "if": [ { "===": [{"lang": {}}, "ru"]},
              { "do": [
                  {"disable": "final_text_ru_1"},
                  {"enable":  "final_text_ru_2"},
                  {"enable":  "final_exit_portal_ru"}
              ]},
              { "do": [
                  {"disable": "final_text_en_1"},
                  {"enable":  "final_text_en_2"},
                  {"enable":  "final_exit_portal_en"}
              ]},
            ]}},
            { "do": {"disable": "final_skull_speak1"}},
            { "do": {"enable":  "final_skull_speak2"}},
            { "dt": 150 },
            { "do": {"disable": "final_skull_speak2"}},
            { "do": {"enable":  "final_skull_afterfall3"}},
            { "do": {"sound": {"filename": "data/sound/doj_aldente_skull_hit.wav"}}},
            { "dt": 300 },

            { "do": {"disable": "final_skull_afterfall3"}},
            { "do": {"enable":  "final_skull_speak1"}},
            { "dt": 150 },
            { "do": {"disable": "final_skull_speak1"}},
            { "do": {"enable":  "final_skull_speak2"}},
            { "dt": 150 },
            { "do": {"disable": "final_skull_speak2"}},
            { "do": {"enable":  "final_skull_afterfall3"}},
            { "do": {"sound": {"filename": "data/sound/doj_aldente_skull_hit.wav"}}},
            { "dt": 300 },

            { "do": {"disable": "final_skull_afterfall3"}},
            { "do": {"enable":  "final_skull_speak1"}},
            { "dt": 150 },
            { "do": {"disable": "final_skull_speak1"}},
            { "do": {"enable":  "final_skull_speak2"}},
            { "dt": 150 },
            { "do": {"disable": "final_skull_speak2"}},
            { "do": {"enable":  "final_skull_afterfall3"}},
            { "do": {"sound": {"filename": "data/sound/doj_aldente_skull_hit.wav"}}},

            { "do": {"log": "SPAGHETTI DONE!"}},
          ]},
        ]},
    },
    { "macro": [""], "id"="final_text_ru_1",
      "groups": ["scene_final"],
      "x": 448, "y": 78,
      "enable"=0,
      "texture": {"filename": "data/tex/final/ending_text.png", "xywh": [0, 0, 367, 358]},
    },
    { "macro": [""], "id"="final_text_ru_2",
      "groups": ["scene_final"],
      "x": 448, "y": 78,
      "enable"=0,
      "texture": {"filename": "data/tex/final/ending_text.png", "xywh": [0, 358, 367, 358]},
    },
    { "macro": [""], "id"="final_text_en_1",
      "groups": ["scene_final"],
      "x": 448, "y": 78,
      "enable"=0,
      "texture": {"filename": "data/tex/final/ending_text.png", "xywh": [657, 666, 367, 358]},
    },
    { "macro": [""], "id"="final_text_en_2",
      "groups": ["scene_final"],
      "x": 448, "y": 78,
      "enable"=0,
      "texture": {"filename": "data/tex/final/ending_text.png", "xywh": [657, 308, 367, 358]},
    },
    { "macro": [""], "id"="plate_1A",
      "groups": ["scene_final"],
      "x": 23, "y": 284,
      "enable"=0,
      "texture": {"filename": "data/tex/final/food_fall0.png", "xywh": [529, 654, 494, 185]},
    },
    { "macro": [""], "id"="plate_1B",
      "groups": ["scene_final"],
      "x": 23, "y": 284,
      "enable"=1,
      "texture": {"filename": "data/tex/final/food_fall0.png", "xywh": [529, 469, 494, 185]},
    },
    { "macro": [""], "id": "final_meatball3_fall", "enable": 0,
      "groups": ["scene_final"],
      "x": 348, "y": 0,
      "texture": {"filename": "data/tex/final/food_fall1.png", "xywh": [778,260,123,130] },
    },
    { "macro": [""], "id": "final_meatball3", "enable": 0,
      "groups": ["scene_final"],
      "x": 348, "y": 107,
      "texture": {"filename": "data/tex/final/food_fall1.png", "xywh": [901,260,123,130] },
    },
    { "macro": [""], "id"="final_spaghetti_1",
      "groups": ["scene_final"],
      "x": 75, "y": -402,
      "enable"=1,
      "texture": {"filename": "data/tex/final/food_fall0.png", "xywh": [0, 0, 396, 402]}
    },
    { "macro": [""], "id"="final_spaghetti_2",
      "groups": ["scene_final"],
      "x": 75, "y": 0,
      "enable"=0,
      "texture": {"filename": "data/tex/final/food_fall0.png", "xywh": [0, 402, 396, 402]},
    },
    { "macro": [""], "id"="final_spaghetti_3",
      "groups": ["scene_final"],
      "x": 75, "y": 0,
      "enable"=0,
      "texture": {"filename": "data/tex/final/food_fall0.png", "xywh": [396, 0, 396, 402]},
    },
    { "macro": [""], "id"="final_skull_fall", "enable": 0,
      "groups": ["scene_final"],
      "x": 136, "y": -1,
      "texture": {"filename": "data/tex/final/food_fall1.png", "xywh": [0, 0, 505, 207]},
    },
    { "macro": [""], "id"="final_skull_afterfall1", "enable": 0,
      "groups": ["scene_final"],
      "x": 136, "y": -1,
      "texture": {"filename": "data/tex/final/food_fall1.png", "xywh": [0, 207, 505, 207]},
    },
    { "macro": [""], "id"="final_skull_afterfall2", "enable": 0,
      "groups": ["scene_final"],
      "x": 136, "y": -1,
      "texture": {"filename": "data/tex/final/food_fall1.png", "xywh": [0, 414, 505, 207]},
    },
    { "macro": [""], "id"="final_skull_afterfall3", "enable": 0,
      "groups": ["scene_final"],
      "x": 136, "y": -1,
      "texture": {"filename": "data/tex/final/food_fall1.png", "xywh": [0, 621, 505, 207]},
    },
    { "macro": [""], "id"="final_skull_speak1", "enable": 0,
      "groups": ["scene_final"],
      "x": 136, "y": -1,
      "texture": {"filename": "data/tex/final/food_fall1.png", "xywh": [519, 610, 505, 207]},
    },
    { "macro": [""], "id"="final_skull_speak2", "enable": 0,
      "groups": ["scene_final"],
      "x": 136, "y": -1,
      "texture": {"filename": "data/tex/final/food_fall1.png", "xywh": [519, 817, 505, 207]},
    },
    { "macro": [""], "id"="final_skull_speak", "enable": 0,
      "groups": ["scene_final"],
      "x": 136, "y": -1,
      "texture": {"filename": "data/tex/final/food_fall1.png", "dt": 150, "frames": [
                 {"xywh": [519, 610, 505, 207]},
                 {"xywh": [519, 817, 505, 207]},
                 {"xywh": [0,   621, 505, 207]} ]},
    },
    { "macro": [""], "id": "final_meatball1_fall", "enable": 0,
      "groups": ["scene_final"],
      "x": 257, "y": 0,
      "texture": {"filename": "data/tex/final/food_fall1.png", "xywh": [778,0,123,130] },
    },
    { "macro": [""], "id": "final_meatball1", "enable": 0,
      "groups": ["scene_final"],
      "x": 257, "y": 230,
      "texture": {"filename": "data/tex/final/food_fall1.png", "xywh": [901,0,123,130] },
    },
    { "macro": [""], "id": "final_meatball2_fall", "enable": 0,
      "groups": ["scene_final"],
      "x": 376, "y": 0,
      "texture": {"filename": "data/tex/final/food_fall1.png", "xywh": [778,130,123,130] },
    },
    { "macro": [""], "id": "final_meatball2", "enable": 0,
      "groups": ["scene_final"],
      "x": 376, "y": 220,
      "texture": {"filename": "data/tex/final/food_fall1.png", "xywh": [901,130,123,130] },
    },
    { "macro": [""], "id": "final_meatball4_fall", "enable": 0,
      "groups": ["scene_final"],
      "x": 51, "y": 0,
      "texture": {"filename": "data/tex/final/food_fall1.png", "xywh": [778,390,123,130] },
    },
    { "macro": [""], "id": "final_meatball4", "enable": 0,
      "groups": ["scene_final"],
      "x": 51, "y": 177,
      "texture": {"filename": "data/tex/final/food_fall1.png", "xywh": [901,390,123,130] },
    },
    { "macro": [""], "id": "final_meatball5_fall", "enable": 0,
      "groups": ["scene_final"],
      "x": 51, "y": 0,
      "texture": {"filename": "data/tex/final/food_fall1.png", "xywh": [778,520,123,59] },
    },
    { "macro": [""], "id": "final_meatball5", "enable": 0,
      "groups": ["scene_final"],
      "x": 51, "y": 177,
      "texture": {"filename": "data/tex/final/food_fall1.png", "xywh": [901,520,123,59] },
    },
    { "macro": [""], "id"="plate_A",
      "groups": ["scene_final"],
      "x": 23, "y": 284,
      "enable"=0,
      "texture": {"filename": "data/tex/final/food_fall0.png", "xywh": [ 35, 839, 494, 185]},
    },
    { "macro": ["interactive"], "id"="plate_B",
      "groups": ["scene_final"],
      "x": 23, "y": 284,
      "enable"=1,
      "texture": {"filename": "data/tex/final/food_fall0.png", "xywh": [529, 839, 494, 185]},
    },
    { "macro": [""],
      "groups": ["scene_final"],
      "x": 23, "y": 284,
      "enable"=0,
      "texture": {"filename": "data/tex/final/food_fall0.png", "frames": [
                   {"xywh": [529, 654, 494, 185]},
                   {"xywh": [529, 469, 494, 185]} ]},
    },
    { "macro": [""],
      "groups": ["scene_final"],
      "x": 23, "y": 284,
      "enable"=0,
      "texture": {"filename": "data/tex/final/food_fall0.png", "frames": [
                {"xywh": [ 35, 839, 494, 185]},
                {"xywh": [529, 839, 494, 185]} ]},
    },
    { "id"="final_exit_portal_en", "macro": ["interactive"],
      "groups": ["scene_final"],
      "texture": {"filename":"data/tex/final/food_fall1.png", "xywh": [521,0,222,101]},
      "enable"=0,
      "x": 540, "y": 480,
      "oninteract": { "animate": [
        { "do": {"fade_in_with_music": 2000} },
        { "dt": 2000 },
        { "do": {"move_to": "_exit_"}},
      ]}
    },
    { "id"="final_exit_portal_ru", "macro": ["interactive"],
      "groups": ["scene_final"],
      "texture": {"filename":"data/tex/final/food_fall1.png", "xywh": [521,112,222,101]},
      "enable"=0,
      "x": 540, "y": 480,
      "oninteract": { "animate": [
        { "do": {"fade_in_with_music": 2000} },
        { "dt": 2000 },
        { "do": {"move_to": "_exit_"}},
      ]}
    },

    { "id"="sound_on", "macro": ["interactive"], "enable": 1,
      "groups": ["alwaysvisible"],
      "texture": {"filename":"data/tex/icons2.png", "xywh": [48,0,48,48]},
      "x": 748, "y": 25,
      "label": "turn sound off",
      "label_ru": "выключить звук",
      "oninteract": { "do": [
        { "disable": "sound_on" },
        { "enable": "sound_off" },
        { "turn_sound_off": [] },
      ]}
    },
    { "id"="sound_off", "macro": ["interactive"], "enable": 0,
      "groups": ["alwaysvisible"],
      "texture": {"filename":"data/tex/icons2.png", "xywh": [48,48,48,48]},
      "x": 748, "y": 25,
      "label": "turn sound on",
      "label_ru": "включить звук",
      "oninteract": { "do": [
        { "disable": "sound_off" },
        { "enable": "sound_on" },
        { "turn_sound_on": [] },
      ]}
    },
    { "id"="fullscreen_on", "macro": ["interactive"], "enable": 1,
      "groups": ["alwaysvisible"],
      "texture": {"filename":"data/tex/icons2.png", "xywh": [0,0,48,48]},
      "x": 696, "y": 25,
      "label": "full screen",
      "label_ru": "полный экран",
      "oninteract": { "do": [
        { "disable": "fullscreen_on" },
        { "enable": "fullscreen_off" },
        { "make_fullscreen": [] },
      ]}
    },
    { "id"="fullscreen_off", "macro": ["interactive"], "enable": 0,
      "groups": ["alwaysvisible"],
      "texture": {"filename":"data/tex/icons2.png", "xywh": [0,48,48,48]},
      "x": 696, "y": 25,
      "label": "windowed",
      "label_ru": "в окне",
      "oninteract": { "do": [
        { "disable": "fullscreen_off" },
        { "enable": "fullscreen_on" },
        { "make_windowed": [] },
      ]}
    },
  ]
}
