About a decade ago, Arthur O'Dwyer published a BASIC program to TiCalc called Castle Adventure. I picked this program up, and decided I really liked it. This was when I had my Ti84+SE, which you know has a monochrome screen. I want to be able to port the program to the CE, which has a color screen. As you might imagine there are many many times where the image does not line up where it is supposed to. (Later I will post some before and after photos). I've been fixing those errors up for a while now, and I'm about to start adding in some color. The problem is O'Dwyer uses Ans extremely often. He actually uses it 78 times in a program that is 5kB and a little over half made of text. I'm just going to post some code bits maybe you guys can help me understand what in the world he is doing.
Code:
Ans is a rather large string at this point.
Looking at the very first line, if the end value is 0, wouldn't this just end immediately? Like some kind of weird delay?
Code:
For(A,length(Ans),0:End
Str9+Ans+":"->Str9
length(Ans->B
DelVar CFor(A,B-A,B
1+C->C
inString(Str9,":",A
If A+23>=Ans:Then
Ans->A
Else
A+23
While " "!=sub(Str9,Ans,1:Ans-1:End
Ans->A
sub(Str9,1,Ans-1)+":"+sub(Str9,Ans+1,B-Ans->Str9
End
End
Ans is a rather large string at this point.
Looking at the very first line, if the end value is 0, wouldn't this just end immediately? Like some kind of weird delay?