home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Go64!
/
Go64_2002-10_2002_CSW_Side_A.d64
/
hires-demo
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
1KB
|
39 lines
2 p=p+1:ifp=2then22
4 f=peek(53280):poke56576,peek(56576)and254:poke53272,peek(53272)or128
6 poke53265,peek(53265)or32:b=16384:c=25600
8 gosub30:fori=0to7999:pokeb+i,180:next
10 f=255-f:poke53280,f:poke53270,peek(53270)or16:x=int(rnd(0)*255):fori=0to999
12 poke55296+i,x:getk$:ifk$<>""then18
14 ifint(i/200)=i/200thenpoke53281,int(rnd(0)*256)
16 next:poke53270,peek(53270)and239:f=255-f:poke53280,f:gosub30:goto10
18 poke53270,peek(53270)and239:f=255-f:poke53280,f
20 load"bmp.demo",8,1
22 fori=0to999:pokec+i,27:next:fori=0to1000:next:fori=0to7999:pokeb+i,0:next
24 gosub32:fori=0to5000:next
26 poke53265,peek(53265)and223:poke53270,peek(53270)and239
28 poke53272,peek(53272)and127:poke56576,peek(56576)or1:sys42115
30 x=int(rnd(0)*256):fori=0to999:pokec+i,x:next:return
32 :rem * quadrat *
34 xa=40:ya=10:xe=120:ye=10:gosub60:xa=120:ya=10:xe=120:ye=90:gosub60
36 xa=120:ya=90:xe=40:ye=90:gosub60:xa=40:ya=90:xe=40:ye=10:gosub60
38 :rem * raute *
40 xa=240:ya=10:xe=280:ye=50:gosub60:xa=280:ya=50:xe=240:ye=90:gosub60
42 xa=240:ya=90:xe=200:ye=50:gosub60:xa=200:ya=50:xe=240:ye=10:gosub60
44 :rem * kreis *
46 xm=80:ym=150:xr=40:yr=40:forw=0to360
48 xa=xm+int(xr*cos(w*(NULL)/180)):ya=ym+int(yr*sin(w*(NULL)/180)):gosub74:next
50 :rem * sinus *
52 xa=170:ya=150:xe=310:ye=150:gosub60:xa=240:ya=110:xe=240:ye=190:gosub60
54 xa=180:ya=150:y=ya:forx=0to360step3
56 ya=y+int(30*sin(x*(NULL)/180)):gosub74:xa=xa+1:next
58 return
60 ifxa=xeandya=yethenreturn
62 gosub74:rem * plot *
64 ifxa<xethenxa=xa+1
66 ifya<yethenya=ya+1
68 ifxa>xethenxa=xa-1
70 ifya>yethenya=ya-1
72 goto60
74 z=2^(7+int(xa/8)*8-xa):po=b+int(ya/8)*320+ya-int(ya/8)*8+int(xa/8)*8
76 pokepo,peek(po)orz:return