Added experimental makepkg-update-checksums.sh
[mirrors/Programs.git] / turbobasic / 1998 / CH.BAS
CommitLineData
0f95cc4b
H
1 GOTO POKR\r
2\r
3POKR :\r
4SCREEN 8 : CLS\r
5COLOR 14,1\r
6RESTORE BARVY\r
7BARVY :\r
8\r
9 DATA 8,7,15,15,7,8,0,8,7,15,15,7,8,0,8,7,15,15,7,8,0,0,8,8,8,8,8,7,7,7,7,7,7,15,15,15,15,15,7,7,7,7,7,8,8,8,8,8,8,8,8,8,\r
10FOR A=1 TO 10\r
11REM ZAPLNENO 52\r
12REM 1 CARA 6 NEBO 7\r
13REM 2 CARY 13 NEBO 14\r
14REM PUL CARY 3\r
15REM PUL 2.CARY 10\r
16REM PUL ZAPLNENI 35\r
17 READ C\r
18 LINE (A,A)-(640-A,A),C\r
19 LINE (A,106-A)-(640-A,106-A),C\r
20 LINE (A,A)-(A,106-A),C\r
21 LINE (640-A,A)-(640-A,106-A),C\r
22 LINE (A,110+A)-(640-A,110+A),C\r
23 LINE (A,200-A)-(640-A,200-A),C\r
24 LINE (A,110+A)-(A,200-A),C\r
25 LINE (640-A,110+A)-(640-A,200-A),C\r
26NEXT A\r
27\r
28DO\r
29 A$="TELEFON DIR exit HELP LOAD "\r
30 D=5:X=5:Y=17:C=14\r
31 GOSUB MENU\r
32 ON MENU GOSUB TELEFON,DIR,KONEC,HELP,LOAD\r
33LOOP\r
34\r
35'-----------------------------------------------------------------------------\r
36TELEFON :\r
37print "ahoj"\r
38RETURN\r
39'-----------------------------------------------------------------------------\r
40DIR :\r
41CALL ANYKEY\r
42CALL CLWD\r
43RETURN\r
44RETURN\r
45'-----------------------------------------------------------------------------\r
46KONEC :\r
3921785c 47print "stlač klávesu Enter"\r
0f95cc4b
H
48end\r
49'-----------------------------------------------------------------------------\r
50HELP :\r
51A$="Jste uzivatelem pocitacove site C&P NETWORK. Jste vybaven harddiskem se"\r
52CALL ECHO (5,16,A$,13)\r
53A$="softwarovym vybavenim. Mate k dispozici modem, takze muzete navazat"\r
54CALL ECHO (7,17,A$,13)\r
55A$="spojeni s jinym uzivatelem C&P NETWORK."\r
56CALL ECHO (7,18,A$,13)\r
57\r
58\r
59CALL ANYKEY\r
60CALL CLWD\r
61RETURN\r
62'-----------------------------------------------------------------------------\r
63LOAD :\r
64FOR R=0 TO 4000\r
65NEXT R\r
66CLS\r
67COLOR 14,1\r
68FOR A=0 TO 2000\r
69Q=RND*55\r
70T=RND*55\r
71CIRCLE (Q,T),50\r
72FOR L=0 TO 5000\r
73NEXT L\r
74NEXT A\r
75LOCATE 8,23\r
76PRINT " KONEC "\r
77STOP\r
78'-----------------------------------------------------------------------------\r
79\r
80\r
81END\r
82'-----------------------------------------------------------------------------\r
83' podprogram ECHO\r
84' postupny tisk textu obsazeneho v retezcove promenne A$\r
85' na souradnice X a Y\r
86' barvou C\r
87\r
88SUB ECHO(X,Y,A$,C)\r
89 COLOR C\r
90 LOCATE Y,X\r
91 FOR A=1 TO LEN(A$)\r
92 PRINT MID$ (A$,A,1);\r
93 SOUND 1200,.2\r
94 SOUND 900,.2\r
95 SOUND 600,.2\r
96 FOR I=1 TO 200\r
97 NEXT I\r
98 NEXT A\r
99END SUB\r
100\r
101'--------------------------------------------------------------------------\r
102\r
103MENU :\r
104 ' PODPROGRAM 'MENU'\r
105\r
106 ' X a Y jsou textove souradnice menu-okna\r
107 ' A$ obsahuje text okna\r
108 ' D je pocet polozek (radku) v menu\r
109 ' W=1 - pouze vypis okna , W=0 - vypis i vyber z menu\r
110 ' C je barva okna\r
111 ' v promenne MENU podprogram vraci cislo zvolene polozky\r
112\r
113 L=LEN (A$)/D : MENU = 1 : M = MENU+.0001\r
114 COLOR C,9:LOCATE Y,X\r
115 PRINT CHR$(201);\r
116 FOR A=1 TO L+2 : PRINT CHR$(205); : NEXT A\r
117 PRINT CHR$ (187);\r
118 FOR A= 1 TO LEN(A$) STEP L\r
119 LOCATE Y+A/L+1,X\r
120 PRINT CHR$(186);" ";MID$(A$,A,L);" ";CHR$(186);\r
121 NEXT A\r
122 LOCATE Y+A/L+1,X: PRINT CHR$(200);\r
123 FOR A=1 TO L+2 : PRINT CHR$(205); : NEXT A\r
124 PRINT CHR$(188);\r
125 IF W=1 THEN W=0 : RETURN\r
126\r
127 DO\r
128 I$ = INKEY$\r
129 IF LEN(I$)=2 THEN IF ASC(MID$(I$,2,1))=72 THEN MENU = MENU - 1\r
130 IF LEN(I$)=2 THEN IF ASC(MID$(I$,2,1))=80 THEN MENU = MENU + 1\r
131 IF MENU < 1 THEN MENU = D\r
132 IF LEN(I$)=1 THEN IF ASC(I$)=13 THEN EXIT LOOP\r
133 IF MENU > D THEN MENU = 0 : EXIT LOOP \r
134 IF MENU <> M THEN LOCATE Y+M,X+L+2 : PRINT " ";:LOCATE Y+M,X+1 : PRINT " ";\r
135 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
136 M = MENU\r
137 LOOP\r
138 I=MENU\r
139 W=1:C=0:GOSUB MENU\r
140 MENU = I : COLOR 15\r
141RETURN\r
142'-----------------------------------------------------------------------------\r
143SUB CLWD\r
144 'Clear window\r
145 FOR A=120 TO 190\r
146 LINE (8,A)-(632,A),0\r
147 NEXT A\r
148END SUB\r
149'-----------------------------------------------------------------------------\r
150SUB ANYKEY\r
151 DO\r
152 IF INKEY$<>"" THEN EXIT LOOP\r
153 C=C+1:IF C>15 THEN C=1\r
154 COLOR C : LOCATE 24,55:PRINT "STLAC LIBOVOLNOU KLAVESU";\r
155 LOOP\r
156END SUB\r
157'-----------------------------------------------------------------------------\r
158\r
3921785c 159\1a\r
This page took 0.67939 seconds and 4 git commands to generate.