home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er 1990 October
/
64er_Magazin_90-10_1990_Markt__Technik_de_Side_B.d64
/
turbo-apfel.bas
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
8KB
|
387 lines
100 rem" ******************************
101 [143]" * *
102 rem" * [212]urbo-[193]pfelmaennchen [214]1.6 *
103 [143]" * *
104 rem" ******************************
105 :
106 [151] 52,80:[151] 56,80
107 [151] 53280,15:[151] 53281,0
108 [153]"load":[151] 650,128
109 :
110 [139] a[178]0 [167] a[178]1:[147]"turbo-apfel.obj",8,1
111 :
112 k1$[178]"totototototototototototototototototototototototototototototototototototototototo"
113 k2$[178]"newnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnewnew"
114 k3$[178]" "
115 :
116 [143]" ------------------------------
117 rem" [211]tartwerte
118 [143]" ------------------------------
119 :
120 li=-2.4:re=1:un=-1.25:ob=1.25
121 dx=(re-li)/159:dy=(un-ob)/199
122 it=40:poke 254,it
123 bk=0:c1=14:c2=6:c3=3
124 :
125 for i=23424 to 23550
126 : read j
127 : poke i,j
128 next i
129 :
130 poke 176,70:poke 51028,0
131 :
132 if peek(2)=1 then gosub 446
133 :
134 rem" ------------------------------
135 [143]" left$auptmenu
136 rem" ------------------------------
137 :
138 ko$[178]"(NULL)urbo-atnpfelmaennchen":ko[178]1
139 [141] 438
140 [153]:[153]
141 [153]" [ 1 ] str$aten anzeigen / eingeben"
142 [153]
143 [153]" [ 2 ] peekild laden"
144 [153]" [ 3 ]close peekild speichern"
145 [153]
146 [153]" [ 4 ]close peekild berechnen"
147 [153]" [ 5 ] atnusschnitt berechnen"
148 [153]
149 [153]" [ 6 ] peekild anzeigen"
150 [153]" [ 7 ] ascarben anzeigen / eingeben"
151 [153]" [ 8 ] ascarbrotation 1"
152 [153]" [ 9 ] ascarbrotation 2"
153 [153]
154 [153]" [ 0 ] str$irectory"
155 :
156 [151] 198,0:[146] 198,1:[161] a$:[139] a$[179]"0" [176] a$[177]"9" [167] 156
157 [145] [197](a$)[170]1 [141] 164,199,226,252,279,291,375,390,416,417
158 [137] 138
159 :
160 [143]" ------------------------------
161 rem" [196]irectory
162 [143]" ------------------------------
163 :
164 ko$="[196]irectory":ko=0
165 gosub 438
166 print:ze=0
167 :
168 open 15,8,15:open 2,8,0,"$"
169 :
170 input#15,f$,fe$,ft$,fs$
171 if f$="00" then 175
172 print""f$", "fe$", "ft$", "fs$
173 goto 191
174 :
175 poke 781,2:sys 65478
176 get a$,a$:nt$=chr$(0):by=13
177 :
178 get a$,a$,l$,h$
179 if st then sys 65484:goto 190
180 print" "asc(l$+nt$)+256*asc(h$+nt$);
181 :
182 for i=1 to by:get a$,b$:print a$b$;:next i
183 :
184 print
185 by=14:ze=ze+1:if ze<19 then 178
186 :
187 poke 198,0:wait 198,1:poke 198,0
188 gosub 438:print:ze=0:goto 178
189 :
190 if ze=0 then 192
191 close 2:close 15
192 poke 198,0:wait 198,1:poke 198,0
193 return
194 :
195 rem" ------------------------------
196 [143]" str$aten anzeigen/eingeben
197 rem" ------------------------------
198 :
199 ko$[178]"str$aten anzeigen/eingeben":ko[178]1
200 [141] 438:[153]:[153]
201 :
202 [153]" (NULL)eue valingaben fuer neue (NULL)erte. (NULL)ur"
203 [153]" (NULL)val(NULL)(NULL)(NULL)(NULL) veraendert nichts."
204 :
205 [153]:[153]
206 [153]" (NULL)inker (NULL)and ? ";li
207 [153]"on"[163]16);:[133] li
208 [153]" (NULL)echter (NULL)and ? ";re
209 [153]"on"[163]16);:[133] re
210 [153]
211 [153]" (NULL)nterer (NULL)and ? ";un
212 [153]"on"[163]16);:[133] un
213 [153]" (NULL)berer (NULL)and ? ";ob
214 [153]"on"[163]16);:[133] ob
215 [153]:[153]
216 [153]" right$terationsgrenze <256?";it
217 [153]"on"[163]22);:[133] it
218 [139] it[179]1 [176] it[177]255 [167] [153]"on"[163]24)[200](k3$,[195]([196](it)))"on":it[178]0:[137] 216
219 :
220 [142]
221 :
222 [143]" ------------------------------
223 rem" [194]ild laden
224 [143]" ------------------------------
225 :
226 ko$="[194]ild laden":ko=1
227 gosub 438:print:print
228 :
229 print" [194]itte [206]ame ohne 'ap.' angeben."
230 print:print:na$=""
231 input" [206]ame";na$
232 :
233 if na$="" then return
234 sys 49182,"ap."+na$,8,1
235 :
236 open 15,8,15
237 input#15,f$,fe$,ft$,fs$
238 close 15
239 :
240 print" "f$", "fe$", "ft$", "fs$
241 if f$<>"00" then 245
242 :
243 gosub 446
244 :
245 poke 198,0:wait 198,1:poke 198,0
246 return
247 :
248 rem" ------------------------------
249 [143]" peekild speichern
250 rem" ------------------------------
251 :
252 ko$[178]"peekild speichern":ko[178]1
253 [141] 438:[153]:[153]
254 :
255 [139] [194](2)[178]1 [167] 259
256 [153]" vals befindet sich kein peekild im (NULL)peicher"
257 [137] 272
258 :
259 [153]" peekitte (NULL)ame ohne 'ap.' angeben."
260 [153]:[153]:na$[178]""
261 [133]" (NULL)ame";na$
262 :
263 [139] na$[178]"" [167] [142]
264 :
265 [158] 49179,"ap."[170]na$,8
266 :
267 [159] 15,8,15
268 [132]15,f$,fe$,ft$,fs$
269 [153]" "f$", "fe$", "ft$", "fs$
270 [160] 15
271 :
272 [151] 198,0:[146] 198,1:[151] 198,0
273 [142]
274 :
275 [143]" ------------------------------
276 rem" [194]ild berechnen
277 [143]" ------------------------------
278 :
279 poke 2,0:poke 254,it
280 gosub 452:sys 49161
281 sys 49170:sys 49176
282 poke 2,1
283 poke 198,0:wait 198,1:poke 198,0
284 gosub 456
285 return
286 :
287 rem" ------------------------------
288 [143]" atnusschnitt berechnen
289 rem" ------------------------------
290 :
291 ko$[178]"atnusschnitt berechnen":ko[178]1
292 [141] 438:[153]:[153]
293 :
294 [139] [194](2)[178]1 [167] 299
295 [153]" vals befindet sich kein peekild im (NULL)peicher"
296 [151] 198,0:[146] 198,1:[151] 198,0
297 [142]
298 :
299 [153]" atnuswahl des peekildausschnittes mit den"
300 [153]" len(NULL)(NULL)(NULL)(NULL)(NULL)-(NULL)asten."
301 [153]
302 [153]" +/- vergroessert/verkleinert den atnus-"
303 [153]" schnitt."
304 [153]
305 [153]" ^ beschleunigt alle peekewegungen."
306 [153]" (NULL)ochmaliges str$ruecken hebt die peeke-"
307 [153]" schleunigungen wieder auf."
308 [153]
309 [153]" valnde der atnuswahl mit (NULL)val(NULL)(NULL)(NULL)(NULL)."
310 [153]
311 [153]" atnbbruch mit (NULL)."
312 :
313 [151] 198,0:[146] 198,1:[161] a$
314 [139] a$[178]"q" [167] [142]
315 :
316 [141] 452
317 [151] 24568,110:[151] 24569,111
318 x1[178]0:y1[178]0:y2[178]24:x2[178]y2[172]1.6:sp[178]1:xs[178]2
319 [151] 53287,1:[151] 53288,1
320 [151] 53269,3
321 :
322 h1[178]x1[170]24
323 [151] 53249,y1[170]50:[151] 53251,y2[170]30
324 hi[178][194](53264) [175] 252
325 hi[178]hi[170]([171]1[172]([181](h1)[177]255))
326 hi[178]hi[170]([171]2[172]([181](x2)[177]255))
327 [151] 53264,hi
328 [151] 53248,h1 [175] 255
329 [151] 53250,x2 [175] 255
330 :
331 [151] 198,0:[146] 198,1:[161] a$
332 [139] a$[178]"^" [167] sp[178]9[171]sp:xs[178]10[171]xs
333 [139] a$[178]"" [167] 353
334 [139] a$[178]"cmd" [167] 356
335 [139] a$[178]"" [167] 359
336 [139] a$[178]"on" [167] 362
337 [139] a$[178]"+" [167] 365
338 [139] a$[178]"-" [167] 368
339 [139] a$[179][177][199](13) [175] a$[179][177]"q" [167] 331
340 [139] a$[178]"q" [167] [151] 53269,0:[141] 456:[142]
341 :
342 re[178]li[170](x2[173]2)[172]dx:li[178]li[170](x1[173]2)[172]dx
343 un[178]ob[170]y2[172]dy:ob[178]ob[170]y1[172]dy
344 dx[178](re[171]li)[173]159:dy[178](un[171]ob)[173]199
345 :
346 [151] 53269,0:[141] 456:[141] 438
347 [153]:[153]
348 [153]" right$terationsgrenze <256?";it
349 [153]"on"[163]22);:[133] it
350 [139] it[179]1 [176] it[177]255 [167] [153]"on"[163]24)[200](k3$,[195]([196](it)))"on":it[178]0:[137] 348
351 [137] 279
352 :
353 [139] x2[170]xs[177]319 [167] 331
354 x1[178]x1[170]sp:x2[178]x2[170]sp:[137] 322
355 :
356 [139] x1[171]xs[179]0 [167] 331
357 x1[178]x1[171]sp:x2[178]x2[171]sp:[137] 322
358 :
359 [139] y2[170]sp[177]199 [167] 331
360 y1[178]y1[170]sp:y2[178]y2[170]sp:[137] 322
361 :
362 [139] y1[171]sp[179]0 [167] 331
363 y1[178]y1[171]sp:y2[178]y2[171]sp:[137] 322
364 :
365 [139] y2[170]sp[177]199 [176] x2[170]sp[172]1.6[177]319 [167] 331
366 y2[178]y2[170]sp:x2[178]x2[170]sp[172]1.6:[137] 322
367 :
368 [139] y2[171]y1[171]sp[179]2 [167] 331
369 y2[178]y2[171]sp:x2[178]x2[171]sp[172]1.6:[137] 322
370 :
371 [143]" ------------------------------
372 rem" [194]ild anzeigen
373 [143]" ------------------------------
374 :
375 if peek(2)=1 then 381
376 ko$="[194]ild anzeigen":ko=1
377 gosub 438:print:print
378 print" [197]s befindet sich kein [194]ild im [211]peicher"
379 goto 382
380 :
381 gosub 452
382 poke 198,0:wait 198,1:poke 198,0
383 gosub 456
384 return
385 :
386 rem" ------------------------------
387 [143]" ascarben anzeigen/eingeben
388 rem" ------------------------------
389 :
390 ko$[178]"ascarben anzeigen/eingeben":ko[178]1
391 [141] 438:[153]:[153]
392 :
393 [153]" (NULL)eue valingaben fuer neue (NULL)erte. (NULL)ur"
394 [153]" (NULL)val(NULL)(NULL)(NULL)(NULL) veraendert nichts."
395 [153]:[153]
396 [153]" ascarbe #1?";c1
397 [153]"on"[163]9);:[133] c1
398 [139] c1[179]0 [176] c1[177]15 [167] [153]"on"[163]11)[200](k3$,[195]([196](c1)))"on":c1[178]0:[137] 396
399 [153]" ascarbe #2?";c2
400 [153]"on"[163]9);:[133] c2
401 [139] c2[179]0 [176] c2[177]15 [167] [153]"on"[163]11)[200](k3$,[195]([196](c2)))"on":c2[178]0:[137] 399
402 [153]" ascarbe #3?";c3
403 [153]"on"[163]9);:[133] c3
404 [139] c3[179]0 [176] c3[177]15 [167] [153]"on"[163]11)[200](k3$,[195]([196](c3)))"on":c3[178]0:[137] 402
405 [153]
406 [153]" left$intergrund?";bk
407 [153]"on"[163]12);:[133] bk
408 [139] bk[179]0 [176] bk[177]15 [167] [153]"on"[163]14)[200](k3$,[195]([196](bk)))"on":bk[178]0:[137] 406
409 :
410 [142]
411 :
412 [143]" ------------------------------
413 rem" [197]ffekte 1 & 2
414 [143]" ------------------------------
415 :
416 ad=49164:goto 419
417 ad=49167
418 :
419 if peek(2)=1 then 426
420 ko$="[198]arbrotation"+str$(val(a$)-7):ko=1
421 gosub 438:print:print
422 print" [197]s befindet sich kein [194]ild im [211]peicher"
423 poke 198,0:wait 198,1:poke 198,0
424 return
425 :
426 gosub 452
427 poke 198,0:wait 198,1:poke 198,0
428 sys ad
429 poke 198,0:wait 198,1:get a$
430 if a$<>chr$(13) then 428
431 gosub 456
432 return
433 :
434 rem" ------------------------------
435 [143]" (NULL)nterprogramme
436 rem" ------------------------------
437 :
438 [153]"load";
439 [139] ko[179][177]0 [167] [129] i[178]1 [164] ko:[153]:[130] i
440 le[178][195](ko$):sp[178]20[171]le[173]2
441 [153] [163]sp);[200](k1$,le)
442 [153] [163]sp);"";ko$;"waitlistrnd"
443 [153] [163]sp);"log";[200](k2$,le[171]1);"waitcos"
444 [142]
445 :
446 c[178][194](158):c3[178][194](159)
447 c1[178][181](c[173]16):c2[178]c [175] 15
448 bk[178][194](167):[158] 49173:[151] 2,1
449 it[178][194](254)
450 [142]
451 :
452 [151] 53280,0:[151] 53281,bk
453 [158] 49152:[158] 49158,c1,c2,c3
454 [142]
455 :
456 [151] 53280,15:[151] 53281,0:[158] 49155
457 [142]
458 :
459 [143]" ------------------------------
460 rem" [211]prite-[196]aten
461 [143]" ------------------------------
462 :
463 data 255,255,255,192, 0, 0
464 data 192, 0, 0,192, 0, 0
465 data 192, 0, 0,192, 0, 0
466 data 192, 0, 0,192, 0, 0
467 data 192, 0, 0,192, 0, 0
468 data 192, 0, 0,192, 0, 0
469 data 192, 0, 0,192, 0, 0
470 data 192, 0, 0,192, 0, 0
471 data 192, 0, 0,192, 0, 0
472 data 192, 0, 0,192, 0, 0
473 data 192, 0, 0
474 data 0
475 data 0, 0, 3, 0, 0, 3
476 data 0, 0, 3, 0, 0, 3
477 data 0, 0, 3, 0, 0, 3
478 data 0, 0, 3, 0, 0, 3
479 data 0, 0, 3, 0, 0, 3
480 data 0, 0, 3, 0, 0, 3
481 data 0, 0, 3, 0, 0, 3
482 data 0, 0, 3, 0, 0, 3
483 data 0, 0, 3, 0, 0, 3
484 data 0, 0, 3, 0, 0, 3
485 data 255,255,255