LOL!

Same here; couldn't resist tightening it up a bit myself but will happily use 
your version.

Also a lot of opportunity to combine commands on one line to also save space 
and a little time.

But it's a pretty neat piece of work all the same, and actually not as slow as 
one might expect.

m
  ----- Original Message ----- 
  From: Ken Pettit 
  To: Model 100 Discussion 
  Sent: Sunday, April 23, 2017 7:08 PM
  Subject: Re: [M100] Custom characters


  Hi George,

  One thing I did when I was adding AsciiPixels was a tiny bit of code 
optimization (perhaps I shouldn't have?):

  1.  I noticed you had duplicated code for printing "You Lose" and "You Win".  
I combined these into a single routine with "Win" or "Lose" passed as a string. 
 Also I noticed you use % variables quite a bit.  

  2.  I changed all of these to DEFINT so they are integer by default and 
removed all of the '%' characters.  This both saves space and a tiny bit of 
time as the BASIC parser has fewer characters to intrepret.

  3.  There were a few places where you check for "Y" and on the next line 
check for "y" (same with "N" and "n").  I combined these like:

       14140 IF A$="Y" OR A$="y" THEN 14200

  4.  I removed all occurances of "THEN GOTO line_no"  to simply "THEN 
line_no".  The GOTO is assumed in this case.

  Ken


  On 4/23/17 2:34 PM, George Rimakis wrote:

    Hi Ken,


    I'm not making any more change. Feel free to reach out to me directly. I'd 
like to integrate this fully with my own graphics if I can.

    ~George

    On Apr 23, 2017, at 3:49 PM, Ken Pettit <[email protected]> wrote:


      George,

      Are you still making major changes to Test Sweeper?  I had a few minutes 
on my hands this morning and integrated my AsciiPix routines into the latest 
copy of TSWEEP.DO that I had.  See attached photos of it running in VirtualT.  
I haven't tried this on a real M100 yet, but I think it should work.

      If you are interested, I could give you a quick explanation of how I did 
this.  Oh, and the BASIC code detects if ASCPIX is present and defaults back to 
the original if not.

      Ken


      On 4/22/17 8:33 PM, George Rimakis wrote:

        Hi John,


        You knew exactly what I was getting at.


        I guess it's possible to use PSET and PRESET to draw mines. Although an 
รณ might be just as well.


        My girlfriend was rather unimpressed with Text Sweeper due to "not real 
flags and mines".

        ~George

        On Apr 22, 2017, at 10:31 PM, John R. Hogerhuis <[email protected]> 
wrote:




          On Sat, Apr 22, 2017 at 6:58 PM George Rimakis <[email protected]> 
wrote:

            Hey guys,


            Is there any way to do custom characters in a BASIC program?

            ~George


          Not that I know of. I've seen special display software like View80 
but that's in machine language.


          I did notice there's an o with a tick over it. Might make a good bomb 
for text sweeper. 


          -- John.  


      <tsweep1.png>
      <tsweep2.png>

Reply via email to