Procedure GameOver;
Begin
Clrscr;
TextColor(4);
Gotoxy(1,10);Write(' ÛÛÜÜÛÛ ÜßßÛÛßÜ ');
Gotoxy(1,11);Write(' Ûß Ûß Û ÛÛ ß ÛÛ ');
Gotoxy(1,12);Write('ÛÛÜ ß ß ÜÛÛÜÛ ÛÛ ÛÛ ÛßßßÛ Û ß ß Û Û Û ÛßßßÛ ÛßßÛÛ ');
Gotoxy(1,13);Write(' ÛÛß ÜÜÜ Ûß Ûß Û ÛÛ ÛÜÛ Û Ûß ßÛ Ûß ßÛ Ûß Ûß Û Û ');
Gotoxy(1,14);Write('Ü ÛÛ Û ß Û Û Û Û Û Ûßß ÛÛ ÛÛ ß Û Û Ûßß ÛßÛÛÛ ');
Gotoxy(1,15);Write(' ß ÛÜÜÛßÛ ß ß ßÛÛß ßß ÛÛßß ÛÛßßÛ Û ÛÛ ÛÛßß Û ß Û ');
Repeat Until KeyPressed;
End;
Procedure Blood;
Begin
TextColor(1);
Gotoxy(38,21);Write('Û');
Gotoxy(42,21);Write('Û');
End;
REPEAT
if keypressed then ch:=Readkey
else ch:=#10;
TextColor(14);
Gotoxy(69,16);
Write(energy,'% '); { Srasidlo Function }
{1}
If strasidlo = 1 Then Begin
TextColor(2);
Xstrasidlo:=Random(8);
Gotoxy(32,8);Write(' ');
Gotoxy(xstrasidlo+32,8);Write(chr(12));
End;
If strasidlo = 0 Then Begin
TextColor(2);
Xstrasidlo:=Random(8);
Gotoxy(32,8);Write(' ');
Gotoxy(xstrasidlo+32,8);Write(' ');
End;
If (strasidlo = 1) and (y=8) and (x>=32) and (x<=37) Then Begin
PriseraDeath;
Goto 1;
End;
If (strasidlo = 0) and ((y=8) and (x=32)) or ((y=8) and (x=38)) Then x:=x+1;
{ Strasidlo Function end }
{ Strasidlo Death }
If (energy > 80) and (energy < 101) Then EnergyDPic1;
If (energy > 60) and (energy < 80) Then EnergyDPic2;
If (energy > 40) and (energy < 60) Then EnergyDPic3;
If (energy > 20) and (energy < 40) Then EnergyDPic4;
If (energy > 1 ) and (energy < 20) Then EnergyDPic5;
{ Tlacitko }
TextColor(1);
Gotoxy(25,3);Write('_');
If (y=3) and (x=25) Then Begin
DeathTeh;
Goto 1;
End;
TextColor(1);
Gotoxy(36,3);Write('_');
If (y=3) and (x=36) Then strasidlo:= 0;
{ Strasidlo }
{ Strasidlo end }
{ Tlacitko End }
TextColor(1);
Gotoxy(25,3);Write('_');
If (y=3) and (x=25) Then Begin
DeathTeh;
Goto 1;
End;
TextColor(1);
Gotoxy(36,3);Write('_');
If (y=3) and (x=36) Then strasidlo:= 0;
{ Strasidlo }
TextColor(2);
Gotoxy(x,y);Write(' ');
If (ch='K') Then begin x:=x-1;Sound(60);Delay(10);Nosound;end;
If (ch='M') Then begin x:=x+1;Sound(60);Delay(10);Nosound;end;
If (ch='I') Then Begin
y:=y-1;Gotoxy(x,y);Write('');Delay(200);Gotoxy(x,y);Write(' ');
x:=x+3;Gotoxy(x,y);Write('');Delay(200);Gotoxy(x,y);Write(' ');
y:=y+1;Gotoxy(x,y);Write('');Delay(200);Gotoxy(x,y);Write(' ');
Sound(400);Delay(10);Nosound;
End;
If (ch='G') Then Begin
y:=y-1;Gotoxy(x,y);Write('');Delay(200);Gotoxy(x,y);Write(' ');
x:=x-3;Gotoxy(x,y);Write('');Delay(200);Gotoxy(x,y);Write(' ');
y:=y+1;Gotoxy(x,y);Write('');Delay(200);Gotoxy(x,y);Write(' ');
Sound(400);Delay(10);Nosound;
End;
TextColor(14);
If (ch=' ') Then Begin
For i:= x to x+3 do Write('Ä');
Sound(200);Delay(100);Ns;
Gotoxy(x,y);
For i:= x to x+4 do Write(' ');
End;
{ Elektrina Function }
If (y=3) and ((x=12) or (x=13)) Then Begin
energy:=energy-11;
End; { Elektrina Function end }
{ Elevator print }
Gotoxy(35,3);Elev;
Gotoxy(46,6);Elev;
Gotoxy(41,6);En;
If (y=6) and (x=41) Then Energy:=100;
{ Pichlace Function }
If ((y=3) and (x=4)) or ((y=3) and (x=5)) Then Begin
TextColor(4);
Gotoxy(4,3);Write(' ');
Gotoxy(4,4);Pich;
PichD;
Goto 1;
End;
If (y=3) and ((x=37) or (x=38)) Then Begin
TextColor(4);
Gotoxy(37,4);Med;
Gotoxy(38,4);Write(chr(30));
PichD;
Goto 1;
End;
If (y=3) and ((x=39) or (x=40)) Then Begin
TextColor(4);
Gotoxy(39,4);Med;
Gotoxy(38,4);Pich;
PichD;
Goto 1;
End; { Pichlace Function end }
{ Heards Finction }
If (y=3) and (x=18) Then Begin Gotoxy(65,6);Her; End;
If (y=3) and (x=19) Then Begin Gotoxy(66,6);Her; End;
If (y=5) and (x=30) Then Begin Gotoxy(67,6);Her; End;
If (y=5) and (x=31) Then Begin Gotoxy(68,6);Her; End;
{ Hearts Function End }
{ El. Function }
If (y=3) and (x=35) Then Begin
x:=x+9;
y:=y+3;
Sound(100);Delay(100);
Sound(200);Delay(100);
Sound(300);Delay(150);
Sound(100);Delay(100);
Sound(200);Delay(100);
Sound(300);Delay(150);
Ns;
End;
If (y=6) and (x=46) Then Begin
y:=y-3;
x:=x-12;
Sound(100);Delay(100);
Sound(200);Delay(100);
Sound(300);Delay(150);
Sound(100);Delay(100);
Sound(200);Delay(100);
Sound(300);Delay(150);
Ns;
End;
{ El.Function end }
{ Steny }
If (y=6) and (x=41) Then x:=x+1;
If (y=8) and (x=43) Then x:=x-1;
KurzorZap(false);
delay(30);
{ Steny end }
UNTIL (ch=#27);