PDA

View Full Version : What's the "best" langage for games ?


Stochastics
June 13th, 2008, 05:58 PM
Hi everyone,

Like it's said in the title : What's the "best", if this thing exist, programming langage for game programming ? Or, what's the standard langage use today in the market ?

Stochastics

-grubby
June 13th, 2008, 05:59 PM
I can't really say, but it seems as if most games I see are written in C. I could be wrong

moephan
June 13th, 2008, 06:00 PM
FWIW, I found it super easy to build an asteroids clone using Python and PyGtk.

Cheers, Rick

Phenax
June 13th, 2008, 06:02 PM
Depends what type of game you want to develop.

For a commercial-grade video game that requires heavy graphics/physics/etc. - C/C++
For a hobbyist game you could use C/C++, Python, Ruby, Lua, or pretty much any language out there.

bruce89
June 13th, 2008, 06:05 PM
I can't really say, but it seems as if most games I see are written in C. I could be wrong

C++ I'd say, which is a shame.

LaRoza
June 13th, 2008, 06:28 PM
Like it's said in the title : What's the "best", if this thing exist, programming langage for game programming ? Or, what's the standard langage use today in the market ?

Stochastics

It depends. The game engines are often written in C or C++, but most game programming is on game engines.

Python, Perl, and Java for example are used in games. Many languages use more than one language, often using a "scripting" language.

descendency
June 13th, 2008, 10:23 PM
As previously stated, most software companies rely on C\C++ for game building.

It's not necessarily because it's the best, but it's the most common that large portions of their infrastructure is setup for. Changing that would be highly expensive.

pmasiar
June 13th, 2008, 10:24 PM
First, I would recommend **not** considering career in game programming: google for scary stories, game industry is brutal, and burnout rate is huge - but that model is supported by steady inflow of starry-eyed fresh programmers, who think that programming games has to be fun.

If you want to program games as a hobby, consider either contributing to an existing game (and then your language is fixed), or the most productive tool to write game code - which today is Python, and probably with pygame library. With Python, you can always optimize code later, converting it to C library - but only when and if it is needed, and with fixed API.

Yet another option is to join our project, GameBaker, or the original GameMaker - that's even easier than pygame.

bapoumba
June 14th, 2008, 04:24 AM
Moved to "Recurring Discussions".

raul_
June 14th, 2008, 04:29 AM
Probably anything Object Oriented. Since java needs to have a virtual machine running, I guess that leaves C++ and python. It's just my guess, and I'm not saying that other languages suck, just that OO programming makes more sense to me, for games.

neoAnderson
June 14th, 2008, 05:00 AM
In my AI class we used C++ to build a game with artificially intelligent agents... one of the prime reasons was that we were using vision (Webcam), and Microsoft offers huge libraries for vision and webcam management - the Windows Platform SDK and a whole lot of stuff... and all that integrated well with C++. Additionally the facts that C++ is object oriented (which facilitates state-driven game programming - one of the most widely followed paradigms in game development), and that it is faster than Java in mathematical calculations... lead me to set my choice as C++.