Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best Language to Write Video games in? 4

Status
Not open for further replies.

Swi

Programmer
Feb 4, 2002
1,963
US
Please advise on what programming language is best to write video games in and why? Thanks.

Swi
 
personnaly i would say c/c+ based solely on the fact it is the most commonly used game language (in my opinion)

the following link may be of interest

as may be

good luck!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
A General Guide To Excel in VB FAQ222-3383
 
Second that...

All high end video games run in an out of windows format. Meaning they take over your display options etc, to use direct X or Open GL. That is probably why they are all written in C++

Craig, mailto:sander@cogeco.ca

In the computer industry, there are three kinds of lies:
lies, damn lies, and benchmarks.
 
I didn't think VB would support OpenGL...

Craig, mailto:sander@cogeco.ca

In the computer industry, there are three kinds of lies:
lies, damn lies, and benchmarks.
 
C/C++

My school is teaching us to write them. And I can't see any other way you would want to.
 
I can suggest a decent VB book on games with Direct X

Visual Basic Game Programming with DirectX
Jonathan Harbour
ISBN: 1-931841-25-X © 2002
Publish date: January 2, 2002
1152 pages
 
given the fact this is a vb forum, i imagine the support for games in VB will be slightly biased, ive read about a cult following for VB developed games, however i have never heard/seen a released game developed in VB (cue the VB enthusiasts to prove me wrong)

i guess the question is what type of game is it?? (i imagine the free games with windows would be quite easy to code in VB but a game like mafia or half life or whatever would be pretty impossible)

on a side note, i started writing a game engine (conveniantly titled "MyReality") 4 years ago in c++ and im still writing it today so my point is if you want to write a quicky game try it in VB!

well thats my 2 bob anyway!!

good luck!

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
A General Guide To Excel in VB FAQ222-3383
 
Depends on what your game is going to be.
These days with graphics and sound being decoupled and available via libraries you could program your AI logic in VB. Depending on how complex that is would determine if I use VB or not. Why? You just have better optimisation in C/C++ code as you don't have to have a lot of fluff if you really don't need it. Even in todays games you'll find that AI logic isn't compiled but rather interpreted anyway.

There are lots of factors its no better than asking "What is the best languages to write a program in." It all depends on what that program has to do, how fast it has to do it in, what that program is targeted at, what your availble resources are etc.

Another benifit of C/C++ is there are a few free C/C++ compilers out there. But at the end of the day most commercial games are written in C/C++ with libraries. On consoles you find a mix of C/C++ and assembler because it is needed to get some real power out of those boxes at time.
 
Please note that the site (and the code) that ADoozer mentions refers back to the site and the type library I mentioned.
 
apologies strongm, just bumped into the code, while browsing the net.

If somethings hard to do, its not worth doing - Homer Simpson
------------------------------------------------------------------------
A General Guide To Excel in VB FAQ222-3383
 
Would advise as footnote to fantastic comments here to go to and into the VB Games Section. There you will find a fantastic example of a down-scrolling space ship type game entirely written in VB with Source Code for your pleasure. Note: I did NOT write this code, i simply stumbled upon it while looking for some good mail merge code. Any Copyrights will probly be in the Source.

¥oshi.

Do, or do not, there is no try - Master Yoda.

-------------------------
"There is No Spoon.."
-------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top