home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 26
/
CD_ASCQ_26_1295.iso
/
vrac
/
shwtxt19.zip
/
CAVEDIVE.ST
< prev
next >
Wrap
Text File
|
1995-08-05
|
1KB
|
20 lines
'CAVEDIVE.ST - Cave-Diving Game
:a\screensaver 3\copy(cavedive,0)\%w=6\%x=31\%d=0\%s=1\%c=31\wk\arrows off
c@11,31\on intkey0 esc goto x\on intkey1 tab gosub p\on intkey2 space goto a
:m\rst t0\nochk\poke0(11,%c)32 15
select case %d\case1\%x--\case2\%x++\end select\%s--\bfill1(25,1,25,60)32 111
%x1=%x-6\%x2=%x+6\bfill1(25,%x1,25,%x2)32 15
if [rnd]<20 then poke1(25,%x1+[rnd1to11])15 [rnd12to15]
if [rnd]<30 then poke1(25,%x1+[rnd0to12])4 [rnd12to15]
select case 255\case(%x<9)\%d=2\gs s\case(%x>54)\%d=1\gs s
case(%s=0)\%d=[rnd0to2]\gs s\end select
bcopy0to0(2,1,25,60)(1,1)\bcopy1to0(25,1,25,60)\chk\wk0
if key left then %c--\endif\if key right then %c++
peek0(11,%c)%as %at\poke0(11,%c)2 15\gs sc
if %as=4 gosub sc\if %as=15 | %at=111 boom\while [t0]<2\wend\gt m
:boom\for %i=1 to 8\bmod0(1,1,25,60),,255\wt.1\next\:b1\wk\gt b1
:sc\nochk\%z=78\:s1\%q=[as:0:24:%z]\select case %q
case57\%q1=79\case49to56\%q1=%q+1\case else\%q1=49\end select
poke0(24,%z)ascii%q1\chk\if %q1<>79 then ret else %z--\gt s1
:s\%s=[rnd3to10]\ret\:p\intk off\wk\rst k\c@11,%c\intk on\ret\:x\xc