loadresource("data\\11\\2\\0002.png","kukufka2",2);
loadresource("data\\inventary\\kluch1.png","kukufka3",3);
loadresource("data\\11\\2\\kukufka_all.png","kukufka_all",4);

loadresource("data\\11\\2\\0006.jpg","kukufka6",6);

AddObjForCur()

addstaticobjecttogame(2,"kukufka2",181,17 ,""); --рамка
CloseBtnX,CloseBtnY=Coords(2)
SetFlagsForSatButtons()


CloseWidth=34
CloseHeight=34

CreateCloseBtn(CloseBtnX,CloseBtnY);


NewObj("kekuk","kukufka3",5000,5000,"65"); --ключ

addstaticobjecttogame(10,"kukufka_all",373,364,"",305,188,73,178);
addstaticobjecttogame(11,"kukufka_all",349,364,"",378,188,83,177);
addstaticobjecttogame(12,"kukufka_all",360,359,"",69,317,87,194);

counter=0;
direction="left"

for i=10,12,1 do
    speciale_action(2,i)
end;

addstaticobjecttogame(4,"kukufka_all",301,196,"",0,0,305,317); --кукушка
speciale_action(2,4);
addstaticobjecttogame(5,"kukufka_all",377,219,"",305,0,192,188); --кукушка в дупле
addstaticobjecttogame(6,"kukufka6",185,23 ,"",0,0,628,587); --бг

  if s_obj>0 then
  AddObjToMouse(s_obj)
  s_obj=0
  end;


WaitRender();