TIP: Click on subject to list as thread! ANSI
echo: quik_bas
to: Jasen Betts
from: Greg Easthom
date: 2003-08-10 16:28:00
subject: the matrix

JB>  GE>   ''' Now print that line one line lower on the screen
JB>  GE>   LOCATE L + 1, 1: PRINT Oneline;

JB> that is the same as

JB>  locate L+1,1
JB>  for char = 1 to 80
JB>   print chr$(screen(l,char);
JB>  next char

JB> which is simpler

Yeah, but originally I tried having the thing use only screen 0,
with the lines advancing down one-by-one like a "wave". I was
going to overlay the Message onto one of the lines before printing
it, but after thinking about it for a whole 2 seconds, I couldn't
figure out how to get just the middle of the line highlighted *and*
keep the Message from moving down with the lines. Once I went with
screen-switching to keep the Message in the same place, I didn't
bother altering the original scrolling method.

JB> and may even be faster.

Yep. I took out the delay loop and put in a counter. 14.6 seconds
for 100 line-by-lines, 13.7 for char-by-char. Probably because I
have 80 read/writes and a print vs. just 80 read/prints.

Just shows there's more than 1 way (or 20) to get the job done.

PS: Don't make me learn about Peek/Poke... I'll have it down to .003
seconds for 1000 lines!  :)

  * SLMR 2.1a *

--- Maximus 3.01
* Origin: The BandMaster, Vancouver, B.C., Canada (1:153/7715)
SEEN-BY: 633/267 270
@PATH: 153/7715 140/1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.