12-07-2022, 01:24 AM
Would this be a good place to ask questions about Bob's programs? (if not, please advise)
I just checked out StarBusters and I was very surprised to find .DWG files used. I've only ever seen this type of file when using CAD or CAM software related to my job of cnc machining. I opened one of the files and it's just a list of numbers, with quite a range of values. In the program it uses this in a way I don't really understand.
I realize this may be an older method of achieving something that happens easily in QB64, making it more or less obsolete. But having used .DWG files that contain engineering drawings I'm still curious how this works with Qbasic or QB64.
The file was read into the program into a variable ship1(n) which was defined as ship1(1400) :
This program uses a bunch of .DWG files but this was the first example. After reading this file it then only seems to use it in this way:
I'm assuming this is a more manual method of doing what _Putimage does. Is that correct? Also I don't think I've seen empty () parentheses used...so that was a surprise as well. I assume that means "all the contents" of the array.
I just checked out StarBusters and I was very surprised to find .DWG files used. I've only ever seen this type of file when using CAD or CAM software related to my job of cnc machining. I opened one of the files and it's just a list of numbers, with quite a range of values. In the program it uses this in a way I don't really understand.
I realize this may be an older method of achieving something that happens easily in QB64, making it more or less obsolete. But having used .DWG files that contain engineering drawings I'm still curious how this works with Qbasic or QB64.
The file was read into the program into a variable ship1(n) which was defined as ship1(1400) :
Code: (Select All)
Open "BusterS1.DWG" For Input As #1
Do While Not EOF(1)
Input #1, Ship1(n)
n = n + 1
Loop
Close #1
n = 0
This program uses a bunch of .DWG files but this was the first example. After reading this file it then only seems to use it in this way:
Code: (Select All)
Put (258, 100), Ship1()
I'm assuming this is a more manual method of doing what _Putimage does. Is that correct? Also I don't think I've seen empty () parentheses used...so that was a surprise as well. I assume that means "all the contents" of the array.