home *** CD-ROM | disk | FTP | other *** search
- 10 rem program to initialize cube3d
- 20 rem stephen judd, george taylor
- 25 print"working";
- 30 bs=6528:bc=6656:bz=6784
- 40 a=0:da=(NULL)/60
- 50 fori=0to120:s%=32*sin(a)+.5:c%=32*cos(a)+.5:a=a+da
- 51 print".";
- 55 if s%<0 then s%=256+s%
- 56 if c%<0 then c%=256+c%
- 58 pokebs+i,s%:pokebc+i,c%
- 59 next
- 60 d=80:z0=3:z=-128:dz=1
- 70 forj=0to255
- 71 print"!";
- 80 q%=64*d/(64*z0-z)
- 81 if q%>127 then q%=127
- 82 if q%<-127 then q%=-127
- 83 if q%<0 then q%=256+q%
- 85 pokebz+j,q%
- 90 z=z+dz:next
- 100 sys4096:print"neat, huh?"
-