home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1994 June
/
1994-06b.d64
/
boxes
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
1KB
|
43 lines
100 rem ml box drawing
110 rem by greg waggoner
120 rem
130 rem ---------format----------------
140 rem sys 49152,x1,y1,x2,y2
150 rem
160 rem where x1 and y1 are the upper-
170 rem left coordinates. x1 runs from
180 rem 0-36, and y1 from 0-21. x2 and
190 rem y2 are the box length and
200 rem height, respectively. they are
210 rem described as follows:
220 rem x2 > 1 and x2 < 39-x1
230 rem y2 > 1 and y2 < 24-y1
240 rem
250 data32,241,183,142,167,2,32,241,183
260 data 142,168,2,32,241,183,142,169,2
270 data 32,241,183,142,170,2,174,168,2
280 data172,167,2,24,32,240,255,169,176
290 data 32,210,255,162,0,169,96,32,210
300 data 255,232,236,169,2,208,245,169
310 data 174,32,210,255,162,0,142,171,2
320 data 238,168,2,238,171,2,174,168
330 data 2,172,167,2,24,32,240,255,169
340 data 98,32,210,255,162,0,169,29,32
350 data 210,255,232,236,169,2,208,245
360 data 169,98,32,210,255,174,171,2
370 data 236,170,2,208,209,238,168,2
380 data 174,168,2,172,167,2,24,32,240
390 data 255,169,173,32,210,255,162,0
400 data169,96,32,210,255,232,236,169,2
410 data 208,245,169,189,32,210,255,96,
420 fori=49152to49298:readd:ck=ck+d:pokei,d:next
430 print"[147]":c=peek(53281)and15:ifck<>20639thenprint"error in data":stop
440 x1=int(rnd(1)*37)
450 x2=int(rnd(1)*(36-x1))+2
460 y1=int(rnd(1)*22)
470 y2=int(rnd(1)*(21-y1))+2
480 ifx1+x2>37andy1+y2>22then440
490 sys49152,x1,y1,x2,y2
500 x=int(rnd(1)*16):ifx=cthen500
510 poke646,x:goto440