Skip to main content
gamedev.net
🔒 Locked

QBASIC Programming

Started by Curtis123 Dec 12, 2002 at 11:37 AM 17 replies 550+ views
Original Post
Curtis123
Curtis123
Is it possible to write a game using QBASIC? The reason is I''m kinda cheap and don''t feel like spending alot of money on a compliler for other languages like C++ and so on.
Kingstone426
Kingstone426
yes you can make games with QBASIC but they won't look very professional. Also I think you cannot compile your code with the free version of qbasic but im not sure as it was a long time since i used it.

i started my game programming in qbasic, i thought my moving pixels were awesome and i learnt a lot.

Good luck!

[edited by - kingstone426 on December 12, 2002 12:51:18 PM]
YoshiN
YoshiN
Get Dev-C++ with Mingw. Mingw is a free commandline compiler, and Dev-C++ is a free IDE for Mingw. It''s pretty similar to Visual Studio, but lacks some of the nicer features (unfortunate, but you can''t beat the price). You can get it all here.
-YoshiXGXCX ''99
AnonymousPosterChild
AnonymousPosterChild
I hear VC++ 6 is down to around 60 bucks now. And trust me, it will be well worth it. As much as I hate to endorse an MS program, it really is taht good.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Join the flamebait of the week club! This weeks flamebait:

YOUR BIBLE IS FULL OF LIES!
With love, AnonymousPosterChild
alnite
alnite
Yes, it is possible to make game with QBasic, but you won''t have as much freedom as in C++. Take Yoshin''s suggestion, get DevC++, it''s a FREE C++ IDE with mingw compiler (which is also free). If you don''t want to spend any money in learning, DevC++ is the way to go. Seriously, better not learn QBasic.


My compiler generates one error message: "does not compile."
Raduprv
Raduprv
I think that [Q]basic should be the first language to learn.
It''s very easy, and it can make the learning curve nicer.
I started with Specutrum basic when I was 13, then moved to Z80 ASM when I was 14, moved to X86 ASM when I was 15, then PHP when I was 21, and, eventually, C, this year (23).
And I am glad I did things in this order

Height Map Editor
Hyatus
Hyatus
Wow...it's hard to believe how long ago it's been since I was
coding in QB.

Seriously, you'd be better off getting a book that has a copy
of VC++ in it and learning from that.

However, that might not work for you if you decide you don't
like coding. Then, you've got this useless book and compiler
laying around(which I'd recommend giving to your local library).

I'd say give QBasic a try for about a month. If you still want
to code after that, get a good C++ book and cheap compiler(there
are a few good free ones, from what I hear, but I took to VC++
and never looked back).

Remember, tho...there aren't as many QB sites as there used to
be, so it might be hard to get a good hang of the language.
Anywho, good luck! ^_^

-Hyatus
"da da da"

[edited by - hyatus on December 12, 2002 7:33:23 PM]
Dwiel
Dwiel
I''d also say that QBasic would be a good choise to start with. You don''t know if you''re going to even like it. Second of all, the learning curve involved with even plotting a couple points in C++ is stepe, in QBasic, it is fairly english like and is much easier to learn. You will have more fun sooner....

It''s what I did, but then again, I didn''t know about C then either... *sigh*

Tazzel3d ~ Dwiel
MOVSW
MOVSW
quote:
Original post by Curtis123
Is it possible to write a game using QBASIC? The reason is I''m kinda cheap and don''t feel like spending alot of money on a compliler for other languages like C++ and so on.


Absolutely! Of course there are limits but it''s a great place to start. If you''re shaky on your C programming skills then DirectX and windows programming will be to much overhead. Qbasic is simple and there are various libraries written by QB community that allow you easy access to graphics, sound, controls. Check out these sites for inspiration and guidance.

http://vplanet.cjb.net
http://www.qb45.com
http://www.neozones.com
CGameProgrammer
CGameProgrammer
I started programming with QBasic and I did write games with it. But it does make complex graphics nearly impossible to do due to its limited instruction set and speed.

~CGameProgrammer( );
~CGameProgrammer( ); Developer Image Exchange -- New Features: Upload screenshots of your games (size is unlimited) and upload the game itself (up to 10MB). Free. No registration needed.
prh99
prh99
quote:
Original post by Curtis123
Is it possible to write a game using QBASIC? The reason is I'm kinda cheap and don't feel like spending alot of money on a compliler for other languages like C++ and so on.


Yes, alot of people have written games in qbasic. The majority of them are arcade style games or SNES style RPG's. I have nothing against Qbasic but their are free C\C++ compilers. For example, Borland's C++ Builder 5 and JBuilder (if you interested in java) is avaliable for download at Borland's site. You just have to complete the free registration process. GCC is another free compiler for C and C++. I believe there is also a free compiler for Delphi and Pascal.



[edited by - prh99 on December 13, 2002 2:49:43 AM]
Patrick
Luctus
Luctus
I think you have to use assembler to be able to do anything graphical in qbasic, the internal graphics API is real slow..(of course, I''ve only done qb programming on a 8086..ten years ago ) But that is good knowledge too..


/* Everything IMHO */
-Luctus
-LuctusIn the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move - Douglas Adams
Anachronism
Anachronism
If your brand-spankin-new to programming it might be a good idea to start out QBasic... Spend a few months with it until you feel comfortable...

Then, I would suggest learning assembly language...

Once you have a small grip on that I would learn straight c++ for another 6 months or until your comfortable...


Finally, I would move to visual c++ / direct x / opengl ...

Not the order I followed, but I think my ride would have been smoother if I did...
MOVSW
MOVSW
quote:
Original post by Anachronism
If your brand-spankin-new to programming it might be a good idea to start out QBasic... Spend a few months with it until you feel comfortable...

Then, I would suggest learning assembly language...

Once you have a small grip on that I would learn straight c++ for another 6 months or until your comfortable...


Finally, I would move to visual c++ / direct x / opengl ...

Not the order I followed, but I think my ride would have been smoother if I did...


Are you kidding? Assembly language would be to hard after QB. C or C++ is a requirement before touching ASM. You need to grasp concepts of pointers and computer memory organization before going anywhere near ASM. My suggestion is, do some Qbasic, then C. After you know and understand C enough, then you may try inline ASM with C or C++. After you get basic concepts of that down, then I would recommend ASM.
Raduprv
Raduprv
I jumped from Spectrum basic to ASM (z80), and it was very easy to me. In fact, in ASM, you don''t exactly have POINTERS
I mean, you do, but they are much different than in C, they are all void, etc.
So, basic -> ASM -> C seems, at least to me, the right way

Height Map Editor
MOVSW
MOVSW
quote:
Original post by Raduprv
I jumped from Spectrum basic to ASM (z80), and it was very easy to me. In fact, in ASM, you don''t exactly have POINTERS
I mean, you do, but they are much different than in C, they are all void, etc.
So, basic -> ASM -> C seems, at least to me, the right way

Height Map Editor


One way or the other you''re gonna have to reference a memory location at one point. I think ASM requires a different mindset. It''s very differend from other programming languages and I don''t think that *all* people are capable of jumping from Basic to ASM, in fact quite a few.
Silent Error
Silent Error
I'd recommend Euphoria over QBasic.

Here's its good points:
1. It's got a faster interpreter
2. You can do some pretty cool stuff with it that QB can't do(Windows scripting for example)
3. It's syntax is somewhat C like but much easier for a new comer to learn. It makes a good teaching language and makes it easy to step up to C when you're ready.
4. Interpreter is free.
5. Plenty of tutorials on game programming using Euphoria.
6. It has a utility you can use to translate your Euphoria programs to C.

However, if you find Euphoria too hard to learn, I'd give Python a shot. Hell, have a look at Python anyway, it's fun to play with. I'd recommend learning those over QBasic anyday. Why? Simply because QB is antiquated. I don't have anything against QB. I started out programming my PC with it years ago, but I think it's a BIG waste of time for new comers. You have better options nowadays.

My 2 cents.

LINKS:
Euphoria Homepage
Python Homepage


[edited by - Silent Error on December 13, 2002 7:07:13 PM]
If only debugging were as easy as killing cockroaches... sigh

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.