home *** CD-ROM | disk | FTP | other *** search
- 5 gosub 61000:
- 10 dimse$(20),se(2,20),x,y:v=53248:pokev+44,1:pokev+45,1
- 20 pokev+33,14:pokev+32,14:poke646,14
- 30 print"[147] gensprite by john naborowski"
- 40 c$=" 111111112222222233333333":printc$
- 49 forq=1to21:printqtab(28)q;
- 50 if q=6 then print" press ":goto59
- 51 if q=7 then print" return":goto59
- 52 if q=8 then print" for [160]":goto59
- 53 if q=9 then print" menu [160]":goto59
- 54 if q=11 then print"space[160]":goto59
- 56 if q=12 then print"quits ":goto59
- 58 print
- 59 next:printc$
- 60 pokev+32,6:pokev+33,6
- 70 f1=4:f3=5:f5=6:f7=3
- 80 forq=2to6:poke2040+q,13:next
- 90 def fna(q)=1109+40*y+x:deffnb(q)=int(x/8)
- 100 pokefna(0),81
- 110 q=peek(197):q1=fna(0):geta$
- 120 ifq=56thengosub300
- 130 ifq=59thengosub300
- 140 ifa$=""thenx=x+1:ifx=24thenx=23
- 150 ifa$="[157]"thenx=x-1:ifx=-1thenx=0
- 160 ifa$=""theny=y+1:ify=21theny=20
- 170 ifa$="[145]"theny=y-1:ify=-1theny=0
- 171 ifa$=" "thengosub 62000
- 200 ifpeek(q1)=209thenpokeq1,160
- 210 ifpeek(q1)=81thenpokeq1,32
- 220 ifq=1then600
- 230 ifpeek(fna(0))=32thenpokefna(0),81
- 240 ifpeek(fna(0))=160thenpokefna(0),209
- 250 goto110
- 300 f=fnb(0)*8+7-x
- 310 ifq=59then500
- 400 ifpeek(fna(0))=209thenreturn
- 410 se(fnb(0),y)=se(fnb(0),y)+2^(f):pokeq1,160:return
- 500 ifpeek(fna(0))<>209thenreturn
- 510 se(fnb(0),y)=se(fnb(0),y)-2^(f):pokeq1,81:return
- 600 f=0:fory=0to20:se$(y)=""
- 620 forx=0to23:b$=chr$(32):ifpeek(fna(0))=160thenb$=" [146]"
- 630 se$(y)=se$(y)+b$:pokefna(0),102:nextx
- 640 forx=0to2:poke832+f,se(x,y):f=f+1:nextx,y
- 650 print"[147]":b$=chr$(13):goto3610
- 3130 forq=0to20:forx=0to2:printse(x,q),:nextx,q
- 3140 pokev+4,142:pokev+5,142:print:print
- 3150 print"[145][152]press [155]return [152]to end"b$"[155]p[152] to print"b$"(space) for menu[160] "
- 3160 gets1$:ifs1$=""then3160
- 3170 ifs1$="p"then14000
- 3180 ifs1$=chr$(13)then 3190
- 3185 ifs1$=" " then 3600
- 3187 goto 3160
- 3190 print"[145] [158]do you wish to quit ? (y/n) "
- 3191 geta$:ifa$="y"then 3195
- 3192 ifa$="n"thenprint"[145] [145][145]":goto3150
- 3193 goto 3191
- 3195 pokev+21,0:pokev+23,0:pokev+29,0
- 3196 open15,8,15,"r0:hello connect=hello connect":input#15,er:close15
- 3197 ifer<>63 then print"[147]":end
- 3198 load"hello connect",8,1
- 3600 forq=1to300:next
- 3610 pokev+21,0:x=0:s1$="":poke198,0
- 3615 poke53280,.:poke53281,.
- 3617 print"[147] menu "
- 3620 print" 1[152]......left top to bottom right"
- 3630 print" 2[152]......[129]drift down"
- 3631 print" 3[152]......[129]two"
- 3640 print" 4[152]......[158]drop"
- 3641 print" 5[152]......[158]three"
- 3645 print" 6[152]......wave"
- 3646 print" 7[152]......four"
- 3650 print" 8[152]......[154]circle"
- 3651 print" 9[152]......[154]five"
- 3660 print" 10[152].....bounce"
- 3661 print" 11[152].....expand"
- 3670 print" 12[152].....[129]manual"
- 3671 print" 13[152].....[129]color"
- 3680 print" 14[152].....[158]modify"
- 3681 print" 15[152].....[158]data & end"
- 3690 print" 16[152].....register map direct control"
- 4000 ifpeek(v+16)<>0thenprint"warning[146]:register 16="peek(v+16)
- 4100 print"[152] enter selection [154]: [157][157][157][157]";
- 4101 ln=2:gosub60000:vb=val(a$):ifvb<1then3610
- 4105 ifvb>16 then print"[145][145]";:goto4100
- 4110 pokev+5,4:pokev+4,1:pokev+21,4
- 4120 print"[147]":poke198,0
- 4130 onvbgoto9000,8000,4446,5600,4445,10300,4444,10400,4443,10100,5000
- 4140 onvb-11goto12000,7000,6000,3130,13000,3600
- 4443 x=64
- 4444 x=x+32
- 4445 x=x+16
- 4446 x=x+12
- 4500 pokev+21,x
- 4510 forx=1to190
- 4520 d2=100+int(42*sin(x*(NULL)/45))
- 4540 pokev+4,x:pokev+6,d2:pokev+8,190-x:pokev+10,190-x:pokev+12,d2
- 4550 pokev+5,d2:pokev+7,190-x:pokev+9,x:pokev+11,d2:pokev+13,x:next
- 4560 pokev+21,4:goto3600
- 5000 pokev+4,150:pokev+5,100:s1$=""
- 5010 print"fatten[152]....1"b$"[129]lengthen[152]..2"b$"[158]expand[152]....3"
- 5020 print"normal[152]....4"b$"main menu[152].5"
- 5030 gets1$
- 5040 ifs1$="1"ors1$="3"thenpokev+29,4
- 5050 ifs1$="2"ors1$="3"thenpokev+23,4
- 5060 ifs1$="4"thenpokev+29,0:pokev+23,0
- 5070 ifs1$="5"then3600
- 5080 goto5030
- 5600 forx=175to5step-1
- 5610 d2=int(491*log((x+1)/(x-1)))
- 5620 pokev+4,200-x:pokev+5,d2:next:goto3600
- 6000 print"[147] gensprite by john naborowski":f=0:poke53280,6:poke53281,6
- 6010 printc$:forq=1to21:printqtab(5)se$(q-1)q:next:printc$
- 6020 x=0:y=0:goto230
- 7000 pokev+4,220:pokev+5,100
- 7020 print"color code"b$"[151]0[146] black","1[146] white"b$"2[146] red","[159]3[146] cyan"
- 7030 print"[156]4[146] purple","5[146] green"b$"6[146] blue","[158]7[146] yellow"
- 7040 print"[129]8[146] orange","[149]9[146] brown"b$"[150]10[146] lt red","[151]11[146] gray1"
- 7060 print"[152]12[146] gray2","[153]13[146] lt green"b$"[154]14[146] lt blue","[155]15[146] gray3"
- 7070 print"16[146] main menu"
- 7080 print"your choice : [157][157][157][157]";:gosub60000:s1$=a$:vb=int(val(s1$))
- 7081 ifvb=16thengoto3600
- 7085 ifvb>16 then print"[145]";:goto 7080
- 7090 pokev+41,vb:pokev+5,120:forq=1to200:next
- 7100 printtab(11)"[145] [145]":goto7080
- 8000 y=0:z=1:m=50:goto9010
- 9000 y=1:z=1:m=0
- 9010 forx=0to200
- 9020 d1=x*y+m:d2=x*z
- 9030 pokev+4,d1:pokev+5,d2:next:goto3600
- 10100 forx=1to100
- 10110 d2=90+int(5*abs(cos(x)))
- 10120 pokev+4,175:pokev+5,d2:next:goto3600
- 10300 forx=1to200
- 10310 d2=100+int(42*sin(x*(NULL)/60))
- 10320 pokev+4,x:pokev+5,d2:next:goto3600
- 10400 forx=0to360step2
- 10410 d2=100+int(42*sin(x*(NULL)/180))
- 10420 d1=100+int(42*cos(x*(NULL)/180))
- 10430 pokev+4,d1:pokev+5,d2:next:goto3600
- 12000 d1=100:d2=100:print"[152]use cursur keys to control movement"
- 12005 print"press [return] to return to menu":poke197,64
- 12010 pokev+4,d1:pokev+5,d2
- 12020 geta$:if a$=chr$(13)then3600
- 12030 ifa$=""thend2=d2+1:ifd1>255thend1=200
- 12040 ifa$="[145]"thend2=d2-1:ifd1<2thend1=2
- 12050 ifa$=""thend1=d1+1:ifd2>200thend2=200
- 12060 ifa$="[157]"thend1=d1-1:ifd2<5thend2=5
- 12080 goto12010
- 13000 print"[147] press return to exit back to main menu"
- 13500 print"note:a 'p' preceding a register displays the current value"
- 13540 print"[152]register (0-46):";:gosub60000:s1$=a$:ifa$=""then 3600
- 13550 q=int(val(s1$)):ifq>46 then 13000
- 13560 ifq<0then"invalid register":goto13540
- 13600 ifleft$(s1$,1)="p"then13950
- 13610 ifq>16andq<21thenprintq"not available":goto13540
- 13620 ifq=22or(q>23andq<26)thenprintq"not available":goto13540
- 13700 print"[155]value: ";:gosub60000:ln=3:s1$=a$::q1=int(val(s1$))
- 13710 ifq1>255orq1<0thenprint"invalid value[145]"tab(7)" [145]":goto13700
- 13720 ifq>36andq1>7thenprint"only color values 0-7 are allowed":goto13700
- 13800 print"[147]":gosub13900:goto13540
- 13900 pokev+q,q1:return
- 13950 q=int(val(mid$(s1$,2))):ifq<0orq>46then13560
- 13960 print"[147]value of register"q":"peek(v+q):goto13540
- 14000 print"[147] ready to print? (y/n)"
- 14005 gets1$:ifs1$=""then 14005
- 14010 ifs1$="n"then3600
- 14013 ifs1$="y"then14025
- 14020 goto 14005
- 14025 open15,4,15:close15:ifst=0 then 14030
- 14026 print"[147]printer off line! press (space)"
- 14027 geta$:ifa$<>" "then14027
- 14028 goto 14000
- 14030 open2,4
- 14040 print#2
- 14050 forq=0to20:print#2,se(0,q),se(1,q),se(2,q):nextq:print#2
- 14060 close2:goto3130
- 60000 print"[164]";:a$="":forx=1to5
- 60010 getb$:ifb$=""then60010
- 60015 ifb$=chr$(20)andx>1 then x=x-1:printb$;"[157][164]";:a$=left$(a$,x-1):goto60010
- 60020 ifb$=chr$(20) then 60010
- 60025 ifb$=chr$(13)thenprint:return
- 60030 ifb$<"0"orb$>"9"then 60010
- 60035 ifx>ln then 60010
- 60040 a$=a$+b$:print"[157]"b$"[164]";:next
- 61000 poke53280,.:poke53281,.
- 61010 print"[147]"chr$(142)
- 61020 print" [158]l o a d s t a r"
- 61030 print" [152][163][163][163][163][163][163][163][163][163][163][163][163][163][163][163]"
- 61040 print
- 61050 print" presents"
- 61060 print
- 61070 print
- 61080 print
- 61090 print" g e n s p r i t e"
- 61100 print
- 61110 print
- 61120 print
- 61130 print
- 61140 print" [154]by john naborowski"
- 61150 print
- 61160 print
- 61170 print
- 61180 print
- 61190 print
- 61200 print" copyright [153]1987"
- 61210 print
- 61220 print
- 61230 print" [158]press space to continue"
- 61240 print
- 61250 print"";
- 61300 geta$:ifa$<>" "then61300
- 61305 return
- 62000 print" [158] do you wish to quit? (y/n)"
- 62001 geta$:ifa$=""then62001
- 62005 ifa$="[217]"ora$="y"then 3196
- 62007 ifa$="n"ora$="[206]"then 62010
- 62008 goto 62001
- 62010 print" ":return
-