home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
UpTime Volume 2 #5
/
utv2n5s1.d64
/
wally
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-28
|
3KB
|
90 lines
50 if dz=0 then poke 45,peek(174):poke 46,peek(175):clr
100 if peek(12289)=0 then dz=1:poke12289,1:load"wally.font",8,1
101 if dz=1 then dz=0:poke53272,19
105 poke 53265,peek(53265) and 239
110 f=20:no=1:nt=10:dimpd(10,4):nn=1
120 v=53248:i=249:rem video & image #
125 poke v+21,0
130 poke 53280,0
140 poke53281,14
150 s=54272:forsd=stos+24:pokesd,0:next
160 pokes+24,15:pokes+2,0:pokes+5,129:pokes+6,65
170 pokes+7,85:pokes+8,36:pokes+12,136:pokes+13,129
180 gosub 1260:rem print screen
240 poke v,100:poke v+1,120:rem posit
250 poke v+39,11:rem color
260 poke v+29,0 :rem place vert
270 poke v+23,0 :rem expan hori
280 poke v+21,1:xl=0:rem turn on
285 poke 53265,peek(53265) or 16
290 j=peek(56320):vv=peek(v+1):vh=peek(v):vo=peek(v+16)
300 hp=sgn(jand4)-sgn(jand8)
310 ifhd<>hpthenifhp=1theni=249
320 ifhd<>hpthenifhp=-1theni=253
330 ifi=252theni=249:no=2:nt=10
340 ifi=256theni=253:no=2:nt=10
350 ifvo=1andvh=>59andhp=1then290
360 ifvo=0andvh<=20andhp=-1then290
370 vp=sgn(jand1)-sgn(jand2):ifwk=1andzz<65thenvp=.5
380 ok=(f>51)
390 ifvp=1andvv=>156then290
400 ifvp=-1andvv<=94then290
410 pokev+1,vv+vp*2
420 pokev+16,ok*(-1)
430 pokev,f*5+(ok*256)
440 poke2040,i:ifhp=0andvp=0then480
450 nt=nt+26
460 ifnt>88thennt=10
470 pokes+4,129:pokes+1,no:pokes,nt:i=i+1:forgg=1to1:next:pokes+4,128
480 ifj=111andxl>10thengosub1510
490 hd=hp:f=f+hd:xl=xl+1:ifwk=1 then return
500 hd=hp:f=f+hd:xl=xl+1:goto290
1260 a$(0)="":a$(1)="":a$(2)="[158]":a$(3)="[156]":a$(4)="":a$(5)="[144]"
1270 poke53280,0:poke53281,14
1280 print"[147]";
1290 forgg=0to3
1300 printa$(gg);" [169][223][146] ";:print"[157][157][157][157][157][157][157][157]";
1310 print" [169] [223][146] ";:print"[157][157][157][157][157][157][157][157]";
1320 print" [223][146] ";:print"[157][157][157][157][157][157][157][157]";
1330 print"[169] [223][146]";:print"[157][157][157][157][157][157][157][157]";
1340 printa$(gg+1);" [146] ";:print"[157][157][157][157][157][157][157][157]";
1350 print" ";a$(5);" ";a$(gg+1);" [146] ";:print"[157][157][157][157][157][157][157][157]";
1360 print" ";a$(5);" ";a$(gg+1);" [146] ";:print"[157][157][157][157][157][157][157][157]";
1370 print" ";a$(5);" ";a$(gg+1);" [146] ";:print"[145][145][145][145][145][145][145]";
1380 next
1381 print"[151][209][145][157]gridlocked[146]"
1382 print"[209][145][157]one more[157][157][157][157]time[146]"
1384 print"[209][145][157]stroop"
1386 print"[209][145][157]quit"
1400 print"";
1410 forgg=1to8:print"[153] [146]";:next
1420 print"[144][176]";:for x=1to 36:print"[192]";:next:print"[174]";
1430 forx=1to8:print"[157][221]";:next:print"[157][189]";:for x=1to 36:print"[157][157][192]";:next
1440 print"[157][157][173]";:for x=1to7:print"[145][157][221]";:next:print:print"[145]";
1445 print" joel epstein"
1446 print" and wally the elephant"
1447 print" present"
1448 print" wally's neighborhood[144]"
1450 print"use stick #2 & press button at door."
1455 printtab(14)"published by"
1460 printtab(7)"softdisk publishing, inc."
1505 poke 12288,1:sys 886:return
1510 xl=0:ifvo=0andvv=94andvh>=35andvh<=50thenmm=1:a$="grid locked":goto2190
1520 ifvo=0andvv=94andvh>=115andvh<=130thenmm=2:a$="one more time":goto2190
1530 ifvo=0andvv=94andvh>=195andvh<=210thenmm=3:a$="stroop":goto2190
1540 ifvo=1andvv=94andvh>=19andvh<=34thenmm=4:gosub3000:if z=2 thenreturn
1550 return
2190 poke53280,0:poke53281,0:pokev+21,0
2200 print"[147][156] one moment, while file loads..."
2220 poke 43,1:poke44,16:poke4096,0
2222 load a$,8
3000 print"[158] are you sure you want to quit? "
3333 get a$:if a$="" then 3333
3335 ifa$="n"thenz=2
3336 ifz=2thenprint"[144] softdisk publishing, inc.";
3337 if z=2 thenprint" ";:z=0:return
3338 if a$="y" then 3355
3339 goto 3333
3355 clr:load"upt.reboot",8
6666 rem **** return to uptime ****