home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dimension 64 3
/
Dimension_64_Nr.03_19xx_-_de_Side_B.d64
/
sprite-p
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
646b
|
24 lines
0 sys 42926
10 input"spriteadresse";ad$
11 ifleft$(ad$,1)<>"$"thenad=val(ad$):goto20
12 iflen(ad$)<>5thenprint"[145][145]":goto10
13 ad$=right$(ad$,4)
14 ad=0:fors=1tolen(ad$):h=asc(mid$(ad$,s))-48:ad=ad*16+h+7*(h>9):next
20 input"dehnung in x-richtung (1- 10) 1[157][157][157]";dx
25 ifdx<1ordx>10thenprint"[145][145][145]":goto20
30 input"dehnung in y-richtung (1-100) 1[157][157][157]";dy:ifdy<1ordy>100thenprint"[145][145][145]":goto30
40 print"drucker bereit ?"
45 geta$:ifa$=""goto45
50 print"working..."
100 open1,4,6:print#1,chr$(0):close1
120 open2,4
130 a$=chr$(20)+chr$(27)+chr$(75)+chr$(24*dx)+chr$(0)
140 forx=0to23:y=ay
150 fork=6to0step-1
160 if(peek(ad+int(y/dy)*3+int(x/8)))and2^(7-(xand7))thenda=daor2^k
165 y=y+1:nextk
180 fori=1todx:da$=da$+chr$(da):nexti:da=0
190 nextx:print#2,a$;da$:da$=""
200 ay=ay+7:ifay<21*dythen140
210 close1:end