Page 2 of 2

Re: Doodle - the firefly

Posted: Thu Nov 05, 2020 11:02 pm
by stevepoole
Hi again EmmBee,

Try adding line : 825 if k=0: pause

It could be that your code objects to line 820 T(0,1) being a valid value for an array index ?

Best Wishes,

Steve.

Re: Doodle - the firefly

Posted: Fri Nov 06, 2020 10:30 pm
by EmmBee
Hi again Steve,

The problem was with #0 - I was using a 3 line #0 window, so it was AT#0,3,1 causing the out of range.
I often use this setup as it gives me a few more lines on the other bigger windows.

I notice in your firefly - at lines 550,560: x and y are assigned to, but are not used again - might suggest a REMark to clarify the meaning.
Derek_Stewart wrote: You just have be carefull with exiting variablesnames
Yes, I agree. This can be seen at line 300, with an EXIT back to the main program. Turbo reports this as an error.
My tracker's stack will also become out of synch, as it will be unable to detect it has returned from get_dots.
The tracker's stack is used to decide the action after a "RETurn". It's either a RETurn from SUB or a PROC return.
Of course, if you are not using any GO SUBS, the problems are reduced.
While it won't currently compile with Turbo, without change, it does successfully compile with QLiberator.

The Doodle is quite a nice program.

Best regards,
EmmBee

Re: Doodle - the firefly

Posted: Mon Nov 09, 2020 11:44 pm
by stevepoole
Hi All,

Thanks for your helpful suggestions. As a result, I have modified the previous versions.
Now it has been tested on : QPC2, SGC_qdos, SGC_smsq/e, Qemulator, JS and Minerva 1.97 roms, 128ko QL, both interpreted and compiled in mode 8.

The original 'popit' version had 4 Ko of code, but needed 25ko of dataspace in all.
By using a rotating array, I have reduced the dataspace to 5 KO, some 20 times less, for more animation !

The code is also renamed for clarity, with remarks added. Let SB=0 to turn sound off....

This will be my final version, which should replace both firefly_bas and popit_bas.
If you are looking for a new screen saver, try this : It is a firefly flitting around an animated screen popping bubbles.

Steve.
popit6_bas.zip
(1.84 KiB) Downloaded 166 times

Re: Doodle - TriGons

Posted: Wed Dec 11, 2024 9:02 am
by stevepoole
Hi Folks,

Just a little animated Doodle before Xmas looms up....
Triangular_Spirals.zip
(502 Bytes) Downloaded 70 times
Capture d’écran (667).png

Re: Doodle - the firefly

Posted: Wed Dec 11, 2024 9:00 pm
by stevepoole
Hi ,
New slightly improved version...
Capture d’écran (669).png

Re: Doodle - the firefly

Posted: Wed Dec 11, 2024 9:07 pm
by stevepoole
Yer Tiz... Tested Ok on QPC2, and SGC under QDOS - Quite fast.
Triangular_Spirals2.zip
(542 Bytes) Downloaded 71 times
_____________