I could not find a tutorial, but I found the source for a raycasting game. It is sorta a wolfenstein 3d clone. Go to qb4all.com. Go to downloads and then to game arcade. Download mud 1/3, mud 2/3, and mud 3/3 and unzip them in the same folder. I think the code is commented too.
Now one thing... I'm starting up assembly for optimizing my qbasic programs. but that call absolute has got me stumped. how do you get it to work properly with the program?
You have to use it to be able to use call absolute! if your qbasic exe file is qb.exe, then you would type this to start the program so that you could use the above command:
qb.exe /L
Notice that the slash runs "/" this way not "\" this way like how I wrote it in my first post.
Call Absolute is not a qbasic built in command. It is in a library that automatically comes with qbasic. As you probably know, you have to start your qbasic program with a parameter with the path of a library that you are using. If you are using future lib, for example, and the path for the file is, "C:\future\lib.exe," then you would start qbasic like this: qbasic.exe /C:\future\lib.exe. Then in your program, you would have to call the library with something like:
' $future lib
Since Microsoft made the library that has Call Absolute, you do not have to call the labrary in qbasic, but you must still use a parameter. Make a shortcut to qbasic.exe, or what ever qbasic is called on your system. Right click on the shortcut and go to properties. Go to the cmd line or maybe it is command line. There will be the path to your qbasic. Put the cursor at the end of that path and type a space and then "/L". Now, whenever you need to run a program that uses Call Absolute, use this shortcut to start qbasic. The program should now work. I hope this was clear. I am not very good at writing clear instructions.
Here is a tutorial on how to implement asm into qbasic:
It is not a Quick Basic (QB45) built in command...
If you are using the free Translater (Qbasic.exe) that comes with *most* Dos and Windows versions... it is built in and there is no library, nor library suport (/l option)
If you are using the comercial version (qb.exe) that allows you to actually compile your software into .EXEs... You have to use the /L option (which defaults to /Lqb.qlb), because the CALL ABSOLUTE, CALL INTERUPT, etc... are considered advanced commands and not everyone knows how to use them, so they were removed from the core library (brun45.lib) to (qb.lib) so that they are still available if you need them but will not be included in the EXE if you don't need them.
if you are using these commands in QB.EX (comercial version) QB /L
is the same as... QB /LQB.QLB
QB.QLB is the "run-time" QuickLibrary... for use in the QB IDE QB.LIB is the "link" library used with Link.exe to create your executable file QB.BI is the Basic Include file that you include in your program to define the functions in the QuickLibrary
But if you use LIB.EXE to create your own QuickLibrary...
such as "MYLIB.QLB"
you have to start QB with... QB /LMYLIB.QLB
Hope this clears up any unanswered questions...
Good Luck, and Happy Coding ;-)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.