Commit | Line | Data |
---|---|---|
0f95cc4b H |
1 | DO\r |
2 | CLS\r | |
3 | SCREEN 8\r | |
4 | COLOR 14,1\r | |
5 | LOCATE 2,2\r | |
6 | INPUT " !!! ZADEJ HESLO !!! " ; ALO$\r | |
7 | IF ALO$ = "COBRA 11" THEN GOTO POGR\r | |
8 | LOOP\r | |
9 | POGR:\r | |
10 | GOTO POKR\r | |
11 | REM PIN= COBRA 11\r | |
12 | POKR :\r | |
13 | SCREEN 8 : CLS\r | |
14 | COLOR 14,1\r | |
15 | RESTORE BARVY\r | |
16 | BARVY :\r | |
17 | \r | |
18 | DATA 8,7,15,15,7,8\r | |
19 | FOR 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 | |
29 | NEXT A\r | |
30 | \r | |
31 | DO\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 | |
36 | LOOP\r | |
37 | \r | |
38 | '-----------------------------------------------------------------------------\r | |
39 | TELEFON :\r | |
40 | SOUND RND*150+12,13\r | |
41 | print "MUDRUNKA 56 18 243"\r | |
42 | RETURN\r | |
43 | '-----------------------------------------------------------------------------\r | |
44 | DIR :\r | |
45 | SOUND RND*150+12,13\r | |
6c1eebfd | 46 | PRINT "KROTITELÉ DUCHů"\r |
0f95cc4b H |
47 | RETURN\r |
48 | '-----------------------------------------------------------------------------\r | |
49 | KONEC :\r | |
50 | CLS\r | |
51 | SOUND RND*150+12,13\r | |
52 | CALL ANYKEY\r | |
53 | CALL CLWD\r | |
54 | end\r | |
55 | '-----------------------------------------------------------------------------\r | |
56 | HELP :\r | |
57 | \r | |
58 | A$="ZAKLADNI COBRA 11"\r | |
59 | CALL ECHO (5,16,A$,13)\r | |
60 | A$="DO NASI BEDNY DF45M3"\r | |
61 | CALL ECHO (7,17,A$,13)\r | |
62 | A$="DO NASEHO UKRITU (BUNKRU,CTYRKOLKY) SD85L6"\r | |
63 | SOUND RND*1000+12,13\r | |
64 | CALL ECHO (7,18,A$,13)\r | |
65 | \r | |
66 | \r | |
67 | CALL ANYKEY\r | |
68 | CALL CLWD\r | |
69 | RETURN\r | |
70 | '-----------------------------------------------------------------------------\r | |
71 | LOAD :\r | |
72 | \r | |
73 | PRINT "MUDRUNKA,COUFAL=VELITELE.VELEBNY,TOMEK,HORNYCH,HAUK."\r | |
74 | \r | |
75 | RETURN\r | |
76 | '-----------------------------------------------------------------------------\r | |
77 | \r | |
78 | \r | |
79 | END\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 | |
86 | SUB 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 | |
100 | END SUB\r | |
101 | \r | |
102 | '--------------------------------------------------------------------------\r | |
103 | \r | |
104 | MENU :\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 | |
142 | RETURN\r | |
143 | '-----------------------------------------------------------------------------\r | |
144 | SUB 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 | |
149 | END SUB\r | |
150 | '-----------------------------------------------------------------------------\r | |
151 | SUB 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 | |
157 | END SUB\r | |
158 | '-----------------------------------------------------------------------------\r | |
159 | \r | |
160 | \1a |