- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
tstar=record x1,y1:integer;bk:byte end;
tbtn=record x,y,w,h:integer;text:string;end;
twar=record mLife,Life,mFuel,Fuel,Power,DopPow,TDopP:integer;
x,y,w,h:integer;k,vis,deys:byte;end;
taster=record mLife,life:integer;x,y,w,h:integer;k,s,deys,vis:byte;end;
tpatr=record x,y,dx,dy,pow,k:integer;vis,kd,S:byte;end;
tSityr=record X,Y,S:integer;end;
// - пропускаю "многа букав"
procedure NewItem(IX,IY:integer;OI,I:byte);var spi:integer; begin
if NITM=5then NITM:=1 else inc(NITM);
with item[NITM]do if vis=0 then begin randomize;
x:=ix;w:=x+15;y:=iy;h:=y+15;spi:=MITM+10;
if oi=1 then s:=i else begin s:=1+RANDOM(spi);
if s>mitm then s:=1+random(2);end;
k:=1;vis:=1;end;end;
procedure NewPatr(px,py,DX1,DY1:integer;SP,Power:byte);
begin if Npatr=6000then npatr:=1 else inc(npatr);randomize;
with patr[npatr]do begin x:=px;y:=py;dx:=dx1;dy:=dy1;
pow:=power;vis:=1;k:=0;kd:=0;s:=SP;end;end;