Added script to find files not owned by pacman package manager (ArchLinux)
[mirrors/Programs.git] / turbobasic / 1998 / PARTA.BAS
CommitLineData
0f95cc4b
H
1DO\r
2CLS\r
3SCREEN 8\r
4COLOR 14,1\r
5LOCATE 2,2\r
6INPUT " !!! ZADEJ HESLO !!! " ; ALO$\r
7IF ALO$ = "COBRA 11" THEN GOTO POGR\r
8LOOP\r
9POGR:\r
10 GOTO POKR\r
11REM PIN= COBRA 11\r
12POKR :\r
13SCREEN 8 : CLS\r
14COLOR 14,1\r
15RESTORE BARVY\r
16BARVY :\r
17\r
18 DATA 8,7,15,15,7,8\r
19FOR A=1 TO 6\r
20 READ C\r
21 LINE (A,A)-(640-A,A),C\r
22 LINE (A,106-A)-(640-A,106-A),C\r
23 LINE (A,A)-(A,106-A),C\r
24 LINE (640-A,A)-(640-A,106-A),C\r
25 LINE (A,110+A)-(640-A,110+A),C\r
26 LINE (A,200-A)-(640-A,200-A),C\r
27 LINE (A,110+A)-(A,200-A),C\r
28 LINE (640-A,110+A)-(640-A,200-A),C\r
29NEXT A\r
30\r
31DO\r
6c1eebfd 32 A$="TELEFONY CLUB exit! HESLA PARŤáCI "\r
0f95cc4b
H
33 D=5:X=5:Y=17:C=14\r
34 GOSUB MENU\r
35 ON MENU GOSUB TELEFON,DIR,KONEC,HELP,LOAD\r
36LOOP\r
37\r
38'-----------------------------------------------------------------------------\r
39TELEFON :\r
40SOUND RND*150+12,13\r
41print "MUDRUNKA 56 18 243"\r
42RETURN\r
43'-----------------------------------------------------------------------------\r
44DIR :\r
45SOUND RND*150+12,13\r
6c1eebfd 46PRINT "KROTITELÉ DUCHů"\r
0f95cc4b
H
47RETURN\r
48'-----------------------------------------------------------------------------\r
49KONEC :\r
50CLS\r
51SOUND RND*150+12,13\r
52CALL ANYKEY\r
53CALL CLWD\r
54end\r
55'-----------------------------------------------------------------------------\r
56HELP :\r
57\r
58A$="ZAKLADNI COBRA 11"\r
59CALL ECHO (5,16,A$,13)\r
60A$="DO NASI BEDNY DF45M3"\r
61CALL ECHO (7,17,A$,13)\r
62A$="DO NASEHO UKRITU (BUNKRU,CTYRKOLKY) SD85L6"\r
63SOUND RND*1000+12,13\r
64CALL ECHO (7,18,A$,13)\r
65\r
66\r
67CALL ANYKEY\r
68CALL CLWD\r
69RETURN\r
70'-----------------------------------------------------------------------------\r
71LOAD :\r
72\r
73PRINT "MUDRUNKA,COUFAL=VELITELE.VELEBNY,TOMEK,HORNYCH,HAUK."\r
74\r
75RETURN\r
76'-----------------------------------------------------------------------------\r
77\r
78\r
79END\r
80'-----------------------------------------------------------------------------\r
81' podprogram ECHO\r
82' postupny tisk textu obsazeneho v retezcove promenne A$\r
83' na souradnice X a Y\r
84' barvou C\r
85\r
86SUB ECHO(X,Y,A$,C)\r
87 COLOR C\r
88 LOCATE Y,X\r
89\r
90 FOR A=1 TO LEN(A$)\r
91\r
92\r
93 PRINT MID$ (A$,A,1);\r
94 SOUND 1200,.2\r
95 SOUND 900,.2\r
96 SOUND 600,.2\r
97 FOR I=1 TO 200\r
98 NEXT I\r
99 NEXT A\r
100END SUB\r
101\r
102'--------------------------------------------------------------------------\r
103\r
104MENU :\r
105 ' PODPROGRAM 'MENU'\r
106\r
107 ' X a Y jsou textove souradnice menu-okna\r
108 ' A$ obsahuje text okna\r
109 ' D je pocet polozek (radku) v menu\r
110 ' W=1 - pouze vypis okna , W=0 - vypis i vyber z menu\r
111 ' C je barva okna\r
112 ' v promenne MENU podprogram vraci cislo zvolene polozky\r
113\r
114 L=LEN (A$)/D : MENU = 1 : M = MENU+.0001\r
115 COLOR C,9:LOCATE Y,X\r
116 PRINT CHR$(201);\r
117 FOR A=1 TO L+2 : PRINT CHR$(205); : NEXT A\r
118 PRINT CHR$ (187);\r
119 FOR A= 1 TO LEN(A$) STEP L\r
120 LOCATE Y+A/L+1,X\r
121 PRINT CHR$(186);" ";MID$(A$,A,L);" ";CHR$(186);\r
122 NEXT A\r
123 LOCATE Y+A/L+1,X: PRINT CHR$(200);\r
124 FOR A=1 TO L+2 : PRINT CHR$(205); : NEXT A\r
125 PRINT CHR$(188);\r
126 IF W=1 THEN W=0 : RETURN\r
127\r
128 DO\r
129 I$ = INKEY$\r
130 IF LEN(I$)=2 THEN IF ASC(MID$(I$,2,1))=72 THEN MENU = MENU - 1\r
131 IF LEN(I$)=2 THEN IF ASC(MID$(I$,2,1))=80 THEN MENU = MENU + 1\r
132 IF MENU < 1 THEN MENU = D\r
133 IF LEN(I$)=1 THEN IF ASC(I$)=13 THEN EXIT LOOP\r
134 IF MENU > D THEN MENU = 0 : EXIT LOOP \r
135 IF MENU <> M THEN LOCATE Y+M,X+L+2 : PRINT " ";:LOCATE Y+M,X+1 : PRINT " ";\r
136 IF MENU <> M THEN LOCATE Y+MENU,X+L+2:COLOR 11:PRINT CHR$(174);:LOCATE Y+MENU,X+1:PRINT CHR$(175);:COLOR C\r
137 M = MENU\r
138 LOOP\r
139 I=MENU\r
140 W=1:C=0:GOSUB MENU\r
141 MENU = I : COLOR 15\r
142RETURN\r
143'-----------------------------------------------------------------------------\r
144SUB CLWD\r
145 'Clear window\r
146 FOR A=120 TO 190\r
147 LINE (8,A)-(632,A),0\r
148 NEXT A\r
149END SUB\r
150'-----------------------------------------------------------------------------\r
151SUB ANYKEY\r
152 DO\r
153 IF INKEY$<>"" THEN EXIT LOOP\r
154 C=C+1:IF C>15 THEN C=1\r
155 COLOR C : LOCATE 24,55:PRINT "STLAC LIBOVOLNOU KLAVESU";\r
156 LOOP\r
157END SUB\r
158'-----------------------------------------------------------------------------\r
159\r
160\1a
This page took 0.82358 seconds and 4 git commands to generate.