home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 1: Collection A
/
17Bit_Collection_A.iso
/
files
/
37.dms
/
37.adf
/
basic.wrk
< prev
next >
Wrap
Text File
|
1988-05-22
|
1KB
|
67 lines
5 scnclr
10 goto 245
15 rem****
20 screen 1,4
25 c=1
30 scnclr
35 x = 24 : y = 50
40 xx=580 : yy=50
45 drawmode 1
50 z = 24 : k = 100
55 zz=580 : kk=100
60 dx = 7 : dy = 5 : px=7 : tx=5
65 ex=7 : ey=5
70 pp=25 : tt=25
75 dz = 3 : dk = 3
80 ez=3 : ek=3
85 pena 0 : paint (10,10)
90 peno c
95 draw ( x,y to z,k to pp,tt to x,y)
100 gosub 190
105 c=c+1
110 x = x + dx
115 z = z + dz
120 if pp <20 or pp> 580 then px=-px
125 if tt <20 or tt> 580 then tx=-tx
130 pp=pp+px
135 tt=tt+tx
140 if x < 20 or x > 580 then dx = - dx
145 if z < 20 or z > 580 then dz = - dz
150 y = y + dy
155 k = k + dk
160 if y < 20 or y > 170 then dy = - dy
165 if k < 20 or k > 170 then dk = -dk
170 if c = 16 then c = 2
175 get a$ : if a$ = chr$ (13) then 185
180 goto 90
185 end
190 rem***
195 box (xx,yy ; zz,kk),1
200 xx=xx-ex
205 zz=zz-ez
210 if xx < 4 or xx> 640 then ex=-ex
215 if zz < 4 or zz> 640 then ez=-ez
220 yy=yy-ey
225 kk=kk-ek
230 if yy < 5 or yy > 200 then ey=-ey
235 if kk < 5 or kk > 200 then ek=-ek
240 return
245 rgb 2,0,0,2
250 rgb 3,0,0,3
255 rgb 4,0,0,4
260 rgb 5,0,0,5
265 rgb 6,0,0,6
270 rgb 7,0,0,7
275 rgb 8,0,0,8
280 rgb 9,0,0,9
285 rgb 10,0,0,10
290 rgb 11,0,0,11
295 rgb 12,0,0,12
300 rgb 13,0,0,13
305 rgb 14,0,0,14
310 rgb 15,0,0,15
315 rgb 0,5,5,5
320 for j=0 to 3 : read shape%(j) : next j
325 data 0,0, 65535 , 65535
0 goto 15