![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I believe John Bohner was the originator of this little toy program, back in... well, don't remember the year, but I first saw it running at 1200 baud. It actually is more fun to watch at slower speeds. Written for uniData BASIC, but pretty generic code that should compile on other platforms. -- frosty w = INT((SYSTEM(2)+2)/24) h = INT((SYSTEM(3)+1)/12) spots = "*+X#\/-| " LOOP UNTIL SYSTEM(14) DO x = 14 + 24 * (RND(w)); y = 5 + 12 * (RND(h)) zone1 = RND(5); zone2 = RND(6) IF zone1 = zone2 THEN zone1 = 0; zone2 = 5 IF zone1 < zone2 THEN dir = 1 ELSE dir = -1 spot = spots[RND(LEN(spots))+1,1]; spot2 = spot:spot FOR zone = zone1 TO zone2 STEP dir t = y-zone; b = y+zone; l = x-zone*2; r = x+zone*2 IF zone1 = 0 AND zone2 = 5 THEN CRT @(x-zone*2,y-zone):spot2: @(x+zone*2,y-zone):spot2: CRT @(x-zone*2,y+zone):spot2: @(x+zone*2,y+zone):spot2: END ELSE CRT @(l,t):STR(spot,zone*4): @(l,b):STR(spot,zone*4): FOR i = t TO b STEP 1; CRT @(l,i):spot2:; NEXT i FOR i = b TO t STEP -1; CRT @(r,i):spot2:; NEXT i END NEXT zone REPEAT END |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
It compiled and run fine in QM. It should have a clear screen command to start with, but ran nevertheless. QM doesn't support the typeahead buffer (SYSTEM(14)), but the break key worked. |
#5
| |||
| |||
|
|
It compiled and run fine in QM. It should have a clear screen command to start with, but ran nevertheless. QM doesn't support the typeahead buffer (SYSTEM(14)), but the break key worked. |
#6
| |||
| |||
|
#7
| |||
| |||
|
|
Sorry! Mental aberration..... On Fri, 26 May 2006 15:49:50 +1000, Bruce Nichol reverse_ecurb (AT) taloncs (DOT) com.au> wrote: INPUT S,-1 UNTIL Ss DO... Apologies. Regards, Bruce Nichol Talon Computer Services ALBURY NSW Australia http://www.taloncs.com.au If it ain't broke, fix it until it is.... |
#8
| |||
| |||
|
|
I believe John Bohner was the originator of this little toy program, back in... well, don't remember the year, but I first saw it running at 1200 baud. It actually is more fun to watch at slower speeds. Written for uniData BASIC, but pretty generic code that should compile on other platforms. |
#9
| |||
| |||
|
|
Bruce, Please check again! 8>) Did you really mean UNTIL Ss DO... |
#10
| |||
| |||
|
|
Looks cool, even more so on accuterm running a screen size of 132x44. And it works as is on Cache. frosty wrote: I believe John Bohner was the originator of this little toy program, back in... well, don't remember the year, but I first saw it running at 1200 baud. It actually is more fun to watch at slower speeds. Written for uniData BASIC, but pretty generic code that should compile on other platforms. |
![]() |
| Thread Tools | |
| Display Modes | |
| |