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('Û');
If (strasidlo = 1) and (y=8) and (x>=32) and (x<=37) Then
Begin
PriseraDeath;
Delay(200);
GameOver;
Goto 1;
End;
If (strasidlo = 0) and (y=8) and (x=32) or (y=8) and (x=38) Then Begin
TextColor(0);Gotoxy(74,1);Write('d');
End;
{ Strasidlo Function end }
TextColor(3);
Gotoxy(20,7);Write('²');
If (key = 0) and (y=7) and (x=20) Then x:=x+1;
If (key = 0) and (y=7) and (x<19) and (x>17) Then DoorDeath;
{ 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(36,3);Write('_');
If (y=3) and (x=36) Then strasidlo:= 0;
{ Strasidlo }
{ Strasidlo end }
{ Tlacitko End }
If energy < 0 Then Begin
TextColor(2);
Gotoxy(x,y);Write(' ');
If (ch='K') Then x:=x-1;Sound(60);Delay(10);Nosound;
If (ch='M') Then x:=x+1;Sound(60);Delay(10);Nosound;
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;
TextColor(2);
Gotoxy(x,y);Write(chr(2));
{ Prepadliska }
If (y=3) and (x=28) Then Begin
y:=y+2; Gotoxy(28,3);Med;
Sound(300);Delay(250);Ns;
End;
If (y=5) and (x=33) and (y=5) and (x=37) Then Begin
y:=y+3;
Gotoxy(33,5);Write(' ');
End;
If (y=5) and (x>=32) and (x<=35) Then Begin
y:=y+3;
Gotoxy(31,5);Write(' ');
End;
If (y=5) and (x<=27) and (x>25) Then Begin
y:=y+2;
Gotoxy(25,5);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 (y=3) and (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 ((y=3) and (x=40)) Then Begin
TextColor(4);
Gotoxy(39,4);Med;
Gotoxy(38,4);Pich;
PichD;
Goto 1;
End;
If (y=8) and (x=31) Then Begin
TextColor(4);
Gotoxy(x,y);Write(chr(2));
Repeat Until Keypressed;
Goto 1;
End;
{ Pichlace Function end }
{ Heards Finction }
If (y=3) and (x=18) Then Begin Gotoxy(15,24);Her; End;
If (y=3) and (x=19) Then Begin Gotoxy(16,24);Her; End;
If (y=5) and (x=30) Then Begin Gotoxy(17,24);Her; End;
If (y=5) and (x=31) Then Begin Gotoxy(18,24);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;