Разработка игровой программы
end;
if (fire.xs+4>=xm) and (fire.xs-4<=xm+mi)
and (fire.ys+4>=ym) and (fire.ys-4<=ym+mi)
then begin
fire.v:=false;
setfillstyle(1,0);
setcolor(0);
bar(fire.xs-4,fire.ys-4,fire.xs+4,fire.ys+4);
bm:=false;mn:=false;
str((7-nch)*100,em);
setfillstyle(1,0);
bar(xm,ym,xm+mi,ym+mi);
for i:=10 to 800 do begin
sound(i);
setcolor(I);
outtextxy(xm,ym,em);
end;
nosound;
setfillstyle(1,0);
bar(xm,ym,xm+30,ym+15);
xm:=-1500;ym:=-1500;
setcolor(10);
bar(100,3,220,17);
cou:=cou+(7-nch)*100;
str(cou,em);
outtextxy(100,3,em);
end;
end;
gettime(q1,min,sec,q2);
if (min>=tpm) and (sec>=tps) and not(mn) then begin
bm:=true;mn:=true;
xm:=random(560)+30;
ym:=random(320)+30;
vm:=random(2)+3;
if vm+sec>=59 then begin
tzm:=min+1;
tzs:=abs(vm+sec-60);
end
else begin
tzm:=min;
tzs:=vm+sec;
end;
repeat
nch:=random(5)+1;
mi:=20+nch*5; {Размер мишени}
until nch<=6;
setfillstyle(1,nch);
bar(xm,ym,xm+mi,ym+mi);
end;
gettime(q1,min,sec,q2);
if (min>=tzm) and (sec>=tzs) then begin
bm:=false;mn:=false;
setfillstyle(1,0);
bar(xm,ym,xm+mi,ym+mi);xm:=-1300;ym:=-1300;
end;
if ok then begin
setcolor(0);
line(xnp,ynp,xkp,ykp);
end;
until (ord(a)=27) or (ex=1) or ((mk=min) and (sec>=sk));
oko:=oko+cou;
str(oko,em);
bm:=false;mn:=false;fire.v:=false;
if
cou until
exi; 1:
closegraph; {закрытие
графического
режима} end.