Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

HuMaN

VB programming - your opinion

This topic is 6185 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well, subject says it all Just say what you think of VB as game dev. tool. And maybe compare it to other game dev. tools (C++, Delphi...) HuMaN

Share this post


Link to post
Share on other sites
Advertisement
i''ve never personally used VB myself, I''ve used VC++ since day one. I''ve used the old style basic for dos and stuff years ago. I realize that it''s come a long way, but it seems very simplistic.

Also as a side note- Most people that I talk with about programming (at school and work) relay the imperession that VB is primarily for people who just want to program easily. In other words "C++ is for hardcore programmers and VB isn''t"

But Like I said that''s not necessarily my opinion, but the opinion of people that I talk to. So don''t flame me....

Share this post


Link to post
Share on other sites
Hi,
It is very possible to use VB for games. In some cases, it''s easier than C++. I have experience in both, and really there''s nothing wrong with making games in VB. DirectX makes it relatively fast.
It is true, however, that C++ produces faster games - by a difference of quite a few frames per second. This has the potential to kill very processor-unfriendly games, but generally you should be fine.
I heard somewhere that Jagged Alliance 2 was created in VB...
Well, that''s my opinion anyhow...

--Nairb

Share this post


Link to post
Share on other sites
quote:
Original post by HuMaN
Well, subject says it all

Just say what you think of VB as game dev. tool.
And maybe compare it to other game dev. tools (C++, Delphi...)

HuMaN



Here''s my opinion, I do use VB for tool programming. My game is in C++ but all the tools( ie: Map Editor, Sprite Editor, Font Editor and such ), are all created in VB. Now, I know, most game programmer will tell you to use VC++ for tools but I wanted to be able to write the tools in a couple of hours and I did. All my tools were done at a combined time of about 3 or 4 hours. That includes customization according to my team members feedback. So I do think that VB is a good tool. Heck, I''ve even seen on one web site which for some odd reason, I lost the URL but it was a completely FREE RTS, made using VB, with graphics that could compete with most commercial games out there at the moment. Anyhow, needless to say, the game is great and it''s all in VB w/DX...

those are my thoughts.



"And that''s the bottom line cause I said so!"

Cyberdrek
Headhunter Soft
A division of DLC Multimedia

Resist Windows XP''s Invasive Production Activation Technology!

"gitty up" -- Kramer

Share this post


Link to post
Share on other sites
Well, let me put it this way... Remember when you were a little kid playing with legos? There were two kinds, (now there are tons more, but when I used them there were two) the huge duplo blocks, and then the regular smaller blocks from which you could make basically anything. You could make a robot out of the big blocks pretty quickly, and it did what you wanted it to and served its purpose just fine. It was huge and kind of putzy, but it was a robot. Now lets say you made the same robot from the smaller blocks. It was harder to build with the smaller ones, but it was all in all a better robot because you were able to make real joints and more defined features etc. That''s an OK comparison of VB and C++. Obviously the huge, easy to work with blocks represent VB, and the smaller, more difficult to use but more versatile legos are C++. That was a dumb comparison, but I hope it gets the point across. Also, VB is slower than C++. I don''t care what anyone says, but C++ will always be faster than VB. Flame on.

"You are too useless. And now I must beat you." - English subtitle in a Honk Kong Movie.

Share this post


Link to post
Share on other sites
I''ve done my fair share of VB programming and I can tell you it''s not worth the trouble. Sure VB makes programming easy... but right there you have to stop and think. If there is any one idea that holds constant in the realm of progamming it''s that everything is a trade off. You don''t get that ease of use for nothing. You sacrafice performance, platform independance, and low level control (not great for gaming if you ask me). Oh and let''s not forget about those horrible runtime libraries you have to bundle with your executable. Not to mention VB is so weakly typed it''s scary. Seriously VB let''s you get away with murder, my two biggest gripes are automatic type casting and variant declarations. Sure they have their uses, but they abstract you from the variables and make the code difficult to follow. And where are the pointers? I love the fact you have to go above and beyond just to even attempt to declare one. Okay I think I better bring my rant to a close here... I''m starting to hyper ventilate...

{My advice stick with C, or if you need a RAD tool use Delphi.}

Share this post


Link to post
Share on other sites
I use VB just about every day. That said, most of my projects are desktop front ends and report generators for various databases. VB is a RAD tool, and it does that well. It is slower than C++ , and it does use a virtual machine (1.9 MB I think), *BUT* it is COM aware, and you can Access The WinAPI. Which means that you almost have access to all the low-level API calls that C++ has, but you have to jump through some hoops sometimes.
The key is VB is COM aware - partition your project between the ease of VB for user interfaces, and non-speed critical portions, and C++ were the bare-metal raw power is needed.

Admittedly, I''m not talking game programming here, but here''s an example. We have an application that integrates VB, C++, and SQLServer 7.0. The program basically transmits the data formats of various other systems that need to talk to each other, but don''t understand each others message (TCP/IP) formats. Right now it translates and rearranges data in a delimited, FIXED or HL-7 format. So the point of all this is: The translation portion of the application is a COM dll originally written in VB. That version maxed out at about 400 records (messages) per second. Rewriting the dll in C++ has us up over 2000 records per second right now. There is still some optimizations that can be made, but we''re leaving it alone for now - at least until we hook in more systems.

Share this post


Link to post
Share on other sites
imnsho,

ooo yuk yuk yuk.
i am a delphi & vc++ programmer recently brought back from the dark side of VB back when they were only at version 4. i found it terrible for anything except writing clones of that neat SkiFree game, done in VB1, that came with CSE.

i agree with the legos analogy in its entirety.

if they actually made a real programming language (ie one with some rules) out of VB, maybe i''d say look twice, but until they grow up out of the dark ages and make you typecast and declare your variables, and uses parentheses consistently...forget it.

but then that''s just my opinion.

theropod

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!