loadresource("data\\15\\1\\0002.png","krysy_2",2);
loadresource("data\\15\\1\\0003.png","krysy_3",3);

loadresource("data\\15\\1\\0006.png","krysy_6",6);
loadresource("data\\15\\1\\0007.png","krysy_7",7);
loadresource("data\\15\\1\\0008.png","krysy_8",8);
loadresource("data\\15\\1\\zagig.png","zagig",8);
loadresource("data\\15\\1\\0009.jpg","krysy_9",9);

AddObjForCur()

addstaticobjecttogame( 3,"krysy_2",236,47 ,""); --рамка
CloseBtnX,CloseBtnY=Coords(3)
SetFlagsForSatButtons()

CloseWidth=34
CloseHeight=34
CreateCloseBtn(CloseBtnX,CloseBtnY);


addstaticobjecttogame( 4,"krysy_3",442,154,""); --кружка
speciale_action(2,4);


addstaticobjecttogame(25,"zagig",574,372,"",0,0,219,190); --колёсико огонь
addstaticobjecttogame(24,"zagig",628,387,"",219,0,165,122); --колёсико 2
addstaticobjecttogame(23,"zagig",628,451,"",0,190,165,57); --колёсико 1
addstaticobjecttogame(21,"zagig",589,372,"",384,0,140,190); --зажигалка откинулась
addstaticobjecttogame(20,"zagig",560,395,"",524,0,170,173); --зажигалка появилась

for i=20,25,1 do
    speciale_action(2,i)
end;
startf=1


addstaticobjecttogame( 7,"krysy_6",241,270,""); --канистра
speciale_action(2,7);
addstaticobjecttogame( 8,"krysy_7",240,117,""); --крысы
speciale_action(10,8)
addactivobjecttogame( 9,"krysy_8",236,205,"",""); --лужа
if not flags.solar_complete then
  speciale_action(2,9);
end;

Activ={
240,53+241,
240+539,53+241,
240+539,53+241+207,
240,53+241+207
}
CreatePolygon(10,4,"Activ")
Set_Anim_Cur(10,4)
addstaticobjecttogame(11,"krysy_9",240,53 ,"",0,0,539,538); --бг

if flags.solar_complete then
  ActivateObject(8,false);
  ActivateObject(10,false);
end;

if flags.fire_complete then
    speciale_action(2,8);    
  AddParticleToObject(9,"fire_krysy",422,514);
  MoveEmiter("fire_krysy",422,514);
  StartEmiter("fire_krysy");
  AddParticleToObject(3,"fire_krysy2",598,360);
  MoveEmiter("fire_krysy2",598,360);
  StartEmiter("fire_krysy2");
end;

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