History:
back in 1999/2000 i created a 2d platformer in Qbasic, which, to those of you who dont know, is DOS only, or windows 95. In windows 98+, it had problems.
Anyway, my project (den bros 3), died with the introduction of windows 2000+ XP because they didnt allow for alot of the things in a dos window that 95/98 did.
========
The question is:
Does anyone else here like the idea of a program to wrap Qbasic code to Blitz code, effectively reviving the older projects?
I have successfully managed it with Den bros 3, and Total Sonic, and in doing so noted alot of the differences in command sets. I have also found it to be an easier task than first thought, though Den bros and total sonic only used simple qbasic commands.
the way it will work:
1) Read .bas file, and change any commands that are directly compatible with any blitz commands, and change variable types.
This section would take notes of any incompatible commands.
2) Read through all SUB routines, if it is a sub, rename it to function and leave at that. if it is a function, find a command that is similar to <nameoffunction>= and change it to "return".
3) Any incompatible commands are "Included" into the output code from a seperate BB file. (for instance, directQBs sprite commands could be written in blitz seperately and then it would get included into the output BB)
The result COULD then be:
>Compile output .bb file
>Run output .exe file
This could then mean the birth of a compatible version of "Qbasic for windows" (which was wanted years back and is too late now, but Qbasic is still quite active amongst win95/98 users surprisingly!)
I find this sort of thing very interesting, and just wondered if anyone would find it useful? and/or if anyone would be willing to help write any "wrapper" libraries (like directqb). Obviously not everything would be re-written but the main used commands will be.
back in 1999/2000 i created a 2d platformer in Qbasic, which, to those of you who dont know, is DOS only, or windows 95. In windows 98+, it had problems.
Anyway, my project (den bros 3), died with the introduction of windows 2000+ XP because they didnt allow for alot of the things in a dos window that 95/98 did.
========
The question is:
Does anyone else here like the idea of a program to wrap Qbasic code to Blitz code, effectively reviving the older projects?
I have successfully managed it with Den bros 3, and Total Sonic, and in doing so noted alot of the differences in command sets. I have also found it to be an easier task than first thought, though Den bros and total sonic only used simple qbasic commands.
the way it will work:
1) Read .bas file, and change any commands that are directly compatible with any blitz commands, and change variable types.
This section would take notes of any incompatible commands.
2) Read through all SUB routines, if it is a sub, rename it to function and leave at that. if it is a function, find a command that is similar to <nameoffunction>= and change it to "return".
3) Any incompatible commands are "Included" into the output code from a seperate BB file. (for instance, directQBs sprite commands could be written in blitz seperately and then it would get included into the output BB)
The result COULD then be:
>Compile output .bb file
>Run output .exe file
This could then mean the birth of a compatible version of "Qbasic for windows" (which was wanted years back and is too late now, but Qbasic is still quite active amongst win95/98 users surprisingly!)
I find this sort of thing very interesting, and just wondered if anyone would find it useful? and/or if anyone would be willing to help write any "wrapper" libraries (like directqb). Obviously not everything would be re-written but the main used commands will be.