Курсовая работа: Игра "Vertolet"
then
begin
if (getpixel(a+43,d+7)=1) or (getpixel(a-1,d-5)=1) or (getpixel(a+36,d+20)=1)
or (getpixel(a+42,d-7)=1) or (getpixel(a-2,d)=1) then
begin schet:=schet+500; inc(aw); putimage(v-50,vv+80,barer3^,0); end;
text:=nik;
end
else
begin
text:='GAME OVER';
settextstyle(1,0,9);
if sd=true then begin sound(100); delay(6000); nosound; end;
vert(a,d,fon);
delay(200);
ogon(a,d,1);
if sd=true then begin sound(50); delay(6000); nosound; end;
delay(1000);
outtextxy(60,140,text);
outtextxy(62,142,text);
outtextxy(68,138,text);
delay(15000);
break;
closegraph;
Score(schet,nik);
end;
b:=keypressed;
if b=true then t:=readkey;
settextstyle(1,0,3);
setcolor(white);