home *** CD-ROM | disk | FTP | other *** search
- 0 rem holiday 1994 -- slj 12/28/94
- 1 rem inspired by j. charnetski
- 2 rem and others.
- 3 rem this also sets up tables for
- 4 rem the program cube3d v2.0
- 5 poke51,0:poke52,128:poke55,0:poke56,128:clr
- 9 dim v(36)
- 10 poke53280,0:poke53281,0:gosub400
- 20 a$="*****************":s=1
- 25 r$="":d$=""
- 30 fori=1to13:s=s+2*(i=4)+3*(i=8)
- 40 print""left$(d$,i)left$(r$,21-s)left$(a$,2*s-1);:s=s+1:next
- 50 print""left$(d$,16)left$(r$,19)"[149] [157][157][157] [157][157][157] [146]";
- 60 print"("
- 62 print"[154]"d$"patience...";
- 65 fori=1to18
- 70 r=int(rnd(1)*640+0.5)+1024:if peek(r)<>32then70
- 80 v(i)=r+54272:poker,46:pokev(i),int(rnd(0)*7+1):next
- 85 fori=19to36
- 90 r=int(rnd(1)*640+0.5)+1024:if peek(r)<>42then90
- 95 v(i)=r+54272:poker,81:pokev(i),int(rnd(0)*7+1):next
- 96 print"[154]"d$"patience... [212]"d$;
- 97 f$="[180][157][181][157][161][157][182][157][170][157] ":c1=1:c2=0:r=1
- 98 s2$=" peace and blessings to you in 1995 "
- 99 s$=" naughty or nice? "
- 100 rem
- 102 rem set up trig tables
- 103 rem ------------------
- 105 bs=35968:bc=bs+128:bz=bc+128:bm=bz+384
- 110 a=0:da=(NULL)/60
- 120 fori=0to120:s=int(32*sin(a)+0.5):c=int(32*cos(a)+0.5):a=a+da
- 130 if s<0 then s=256+s
- 140 if c<0 then c=256+c
- 150 pokebs+i,s:pokebc+i,c
- 160 rem
- 162 rem -----------------
- 165 r2=peek(v(18+r)):r1=peek(v(r))
- 170 pokev(r),r2:pokev(r+18),r1:r=r+1:ifr=19thenr=1
- 175 ifc1>12thenc1=1:c2=c2+1:print"[157]"mid$(s$,c2,1)"[146]";:goto190
- 180 printmid$(f$,c1,2);:c1=c1+2
- 185 rem -----------------
- 190 next i
- 195 rem
- 200 c2=0:s$=s2$:print""d$" nice! [153][180]"d$;
- 210 fori=1to9
- 220 r=int(rnd(0)*3)*40+int(rnd(0)*13)+1759:ifpeek(r)<>32then220
- 230 poker,219:poker+54272,int(rnd(0)*8+1):next:r=1
- 233 rem
- 234 rem set up mult and proj tables
- 235 rem ---------------------------
- 240 d=170:z0=5
- 250 k=int(64*2/z0+0.5):poke182,k
- 260 forj=0to255:z=j:if z>127 thenz=z-256
- 270 q=int(d/(z0-z/64)+0.5)
- 273 if q>127 then q=127
- 275 if q<-127 then q=-127
- 276 if q<0 then q=256+q
- 280 pokebz+j,q
- 290 s=j:if s>150 then s=256-s
- 300 q=int(s*s/256+0.5)
- 310 poke bm+j,q:poke bm+j+256,q
- 315 rem
- 316 rem --------
- 318 r2=peek(v(18+r)):r1=peek(v(r))
- 320 pokev(r),r2:pokev(r+18),r1:r=r+1:ifr=19thenr=1
- 330 ifc1>12thenc1=1:c2=c2+1:print"[157]"mid$(s$,c2,1)"[146]";:goto350
- 340 printmid$(f$,c1,2);:c1=c1+2
- 345 rem --------
- 350 next j
- 360 sys32768:print"ho! ho! ho!"
- 361 print"email sjudd@nwu.edu "
- 362 print" -or- aa601@cfn.cs.dal.ca "
- 363 print"or write to: "
- 364 print" steve judd "
- 365 print" 1100 grove #bw "
- 366 print" evanston, il 60201 "
- 370 print" "
- 390 end
- 400 poke214,22:print"[150]":fori=1to38:a$=a$+"[214]":b$=b$+" ":next
- 410 a$=a$+"[214][214][145][145]":fori=1to24:printa$;:next
- 420 print"";:b$=b$+"":fori=1to22:printb$;:next:print"":return
-