Commit | Line | Data |
---|---|---|
0f95cc4b H |
1 | GOTO POKR\r |
2 | \r | |
3 | POKR :\r | |
4 | SCREEN 8 : CLS\r | |
5 | COLOR 14,1\r | |
6 | RESTORE BARVY\r | |
7 | BARVY :\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 | |
10 | FOR A=1 TO 10\r | |
11 | REM ZAPLNENO 52\r | |
12 | REM 1 CARA 6 NEBO 7\r | |
13 | REM 2 CARY 13 NEBO 14\r | |
14 | REM PUL CARY 3\r | |
15 | REM PUL 2.CARY 10\r | |
16 | REM 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 | |
26 | NEXT A\r | |
27 | \r | |
28 | DO\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 | |
33 | LOOP\r | |
34 | \r | |
35 | '-----------------------------------------------------------------------------\r | |
36 | TELEFON :\r | |
37 | print "ahoj"\r | |
38 | RETURN\r | |
39 | '-----------------------------------------------------------------------------\r | |
40 | DIR :\r | |
41 | CALL ANYKEY\r | |
42 | CALL CLWD\r | |
43 | RETURN\r | |
44 | RETURN\r | |
45 | '-----------------------------------------------------------------------------\r | |
46 | KONEC :\r | |
3921785c | 47 | print "stlač klávesu Enter"\r |
0f95cc4b H |
48 | end\r |
49 | '-----------------------------------------------------------------------------\r | |
50 | HELP :\r | |
51 | A$="Jste uzivatelem pocitacove site C&P NETWORK. Jste vybaven harddiskem se"\r | |
52 | CALL ECHO (5,16,A$,13)\r | |
53 | A$="softwarovym vybavenim. Mate k dispozici modem, takze muzete navazat"\r | |
54 | CALL ECHO (7,17,A$,13)\r | |
55 | A$="spojeni s jinym uzivatelem C&P NETWORK."\r | |
56 | CALL ECHO (7,18,A$,13)\r | |
57 | \r | |
58 | \r | |
59 | CALL ANYKEY\r | |
60 | CALL CLWD\r | |
61 | RETURN\r | |
62 | '-----------------------------------------------------------------------------\r | |
63 | LOAD :\r | |
64 | FOR R=0 TO 4000\r | |
65 | NEXT R\r | |
66 | CLS\r | |
67 | COLOR 14,1\r | |
68 | FOR A=0 TO 2000\r | |
69 | Q=RND*55\r | |
70 | T=RND*55\r | |
71 | CIRCLE (Q,T),50\r | |
72 | FOR L=0 TO 5000\r | |
73 | NEXT L\r | |
74 | NEXT A\r | |
75 | LOCATE 8,23\r | |
76 | PRINT " KONEC "\r | |
77 | STOP\r | |
78 | '-----------------------------------------------------------------------------\r | |
79 | \r | |
80 | \r | |
81 | END\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 | |
88 | SUB 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 | |
99 | END SUB\r | |
100 | \r | |
101 | '--------------------------------------------------------------------------\r | |
102 | \r | |
103 | MENU :\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 | |
141 | RETURN\r | |
142 | '-----------------------------------------------------------------------------\r | |
143 | SUB 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 | |
148 | END SUB\r | |
149 | '-----------------------------------------------------------------------------\r | |
150 | SUB 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 | |
156 | END SUB\r | |
157 | '-----------------------------------------------------------------------------\r | |
158 | \r | |
3921785c | 159 | \1a\r |