home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Light
/
Light_Vol.1_May_1992_Datasphere_Publications_Disk_1_of_2_Side_A.d64
/
shuffler
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
1KB
|
50 lines
11 poke53280,0:poke53281,0:gosub50
12 dimt(12):forx=0to11:readd:t(x)=d:next
13 data219,91,219,91,219,91,91,219,91,219,91,219
14 cr=91:rc=219:sp=32:po=1430:ts=1630
15 print"[147][150] keys 1 to 6 to toggle characters"
16 print" return [146] to execute."
17 forx=0to4step2:pokepo+x,cr:next:forx=6to10step2:pokepo+x,rc:next
18 geta$:ifa$=""then18
19 ifa$=chr$(13)then27
20 a=val(a$):ifa<1ora>6then18
21 a=(a-1)*2:gosub23
22 goto18
23 n=peek(po+a):ifn=rcthenn=cr:pokepo+a,n:goto25
24 pokepo+a,rc
25 return
26 end
27 print"here we go!":l=0:l1=0
28 c=po+l:c=c-40:c1=peek(po+l):pokepo+l,32
29 forx=0to11-l1:pokec+x ,c1:pokec-1+x,32:fory=0to40:nexty,x:fory=0to75:next
30 pokec-1+x,32:c=c+40:pokec+x,c1:
31 c=po+2:c=c+40:c1=peek(po+l+2):pokepo+l+2,32
32 forx=lto-2+l1step-1:pokec+x,c1:pokec+1+x,32:fory=0to30:nexty,x:
33 fory=0to75:next
34 forn=1to4:pokec+1+x,32:c=c+40:pokec+1+x,c1:fory=1to75:nexty,n
35 l1=l1+2:l=l+4:ifl<>24then28
36 forx=12to0step-2
37 ifpeek(ts)<>t(0)thenx=7:y=2:goto39
38 x=1:y=2
39 ifpeek(ts+y)=t(x)then41
40 goto 44
41 x=x+1:y=y+2
42 ify<>12then 39
43 print"[158]yeah!!! - well done!":gosub63:goto45
44 print"[151]oops, not quite!"
45 print"another go <y/n>?
46 [161]a$:[139]a$[178]""[167]46
47 [139]a$[178]"y"[167][153]"def":[140]:[138]12
48 [153]"loadcont":[151]53281,6:[151]53280,14
49 [128]
50 [153]"loaddef the shuffle"
51 [153]"cont (NULL)tanright$ = = tantanright$ tantanright$ = ortantan"
52 [153]"list (NULL) (NULL) (NULL) (NULL) (NULL)(NULL) (NULL)(NULL) (NULL) (NULL) "
53 [153]"poke -tan(NULL) (NULL) (NULL) (NULL)(NULL) (NULL)(NULL) (NULL) -tan"
54 [153]"print# (NULL) (NULL) (NULL) (NULL) (NULL) (NULL) (NULL) "
55 [153]" > mid$tan(NULL)closemid$tan(NULL) mid$tan(NULL)close/tantan/tantan"
56 [153]" any key to start "
57 [161]a$:[139]a$[178]""[167]57
58 [142]
63 [129]x[178]0[164]96:[151]53280,x:[151]53281,x:[130]:[142]