07-31-2022, 10:38 PM
TYPE...END TYPE UDT arrays can be a bit daunting at first, I know I found them so when I first got into QBasic. I was quite a while figuring out the whole "procedural" programming thing, having come from Applesoft Basic with it's line numbers, GOTOs, GOSUBs and two character variable names. It had arrays, but only very simple ones. Moving to Qbasic I had to learn SUBs, FUNCTIONS and UDTs, nearly giving up several times, but the effort paid off.
When ever you are doing some sort of data object multiple times (such as 12 helix balls), that contain multiple different data points ( x,y positions, radii, y offsets, start positions, etc), they are a great way to handle it. Particularly when you're doing the same things to those objects over and over.
They really made that sorting SUB easy, since I only needed to sort by the radius element and all the rest of the data just moves with it.
If you figured out that helical trig stuff, it shouldn't be too hard. Play with it some when you can and it'll come.
When ever you are doing some sort of data object multiple times (such as 12 helix balls), that contain multiple different data points ( x,y positions, radii, y offsets, start positions, etc), they are a great way to handle it. Particularly when you're doing the same things to those objects over and over.
They really made that sorting SUB easy, since I only needed to sort by the radius element and all the rest of the data just moves with it.
If you figured out that helical trig stuff, it shouldn't be too hard. Play with it some when you can and it'll come.
DO: LOOP: DO: LOOP
sha_na_na_na_na_na_na_na_na_na:
sha_na_na_na_na_na_na_na_na_na: