954,545 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Now to the big guns...

Alright, I've written in javascript and dabbled in torque, but I'm sick of the noob stuff. What are good languages and progs up to date? (haven't been developing for a while now).

No rush... just thought I'd ask before dissapointing myself with

C++_+_---+_==--[;)]/


etc.

A Day Old Bagel
Newbie Poster
9 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
 

If you are speaking in terms of game programming, C++ is still the king. C#, Java, and Python are also valid choices.

Ezzaral
Posting Genius
Moderator
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
 

Thanks Ezzaral. Didn't know if anything knew had cropped up. Guess not.

A Day Old Bagel
Newbie Poster
9 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
 

C++ has been the language for games for like 15+ years, i dont think its going to change that soon

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 

:( Well I can dream, cant I?

A Day Old Bagel
Newbie Poster
9 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
 

C++ with OpenGL is joyful. My dreams are powered by that combination.

But, it depends what you mean by 'game' really. One could write tic-tac-toe in PHP; one ( or more ) could write Quake 3 in C++ with OpenGL.

You can get OpenGL for Python, and other languages probably.. To be honest with OGL, the redraw time when presented with all necessay information can be way longer per cycle than the time taken to mess about multiplying matrices, calculating and reacting to collisions, or running basic AI algorithms... the point being, using a language that traditionally executes slower than C++ for the main part of the game ( the part that isn't implemented in the, often 3rd party, complete, and likely written in C or C++ graphics or physics libraries ) isn't necessarily a limiting factor.

What language would you like to write in, and what would you like to create?

MattEvans
Veteran Poster
Moderator
1,386 posts since Jul 2006
Reputation Points: 522
Solved Threads: 64
 

yes i mean, a large number of modern games still use assembley code for speed critical parts (the rendering engine in quake, for example)

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 

C# with XNA is gaining some popularity as well, but production games for the most part still rely on C++. As said above - it depends on what you want to program. As a new game programmer, the language is going to be the least limiting thing you'll face.

Ezzaral
Posting Genius
Moderator
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
 

i agree. C# is just a bit too slow at the monent for real games though but maybe in the future

Why dont they make a new C - C+2 anyone ? (lol)

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 

C^2 :)

Ezzaral
Posting Genius
Moderator
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
 

I would've thought Python would be painfully slow for any real games...

I mean, here's an earlier speed test I ran in Java, C, and Python using equivalent calculations for each language:

Python Pi Calculator: 10000000 (10m) iterations

11 seconds using floating point math;
8 seconds using integer math;

Java Pi Calculator: 10000000 (10m) iterations

less than 1 second using integer math;
less than 1 second using floating point math;

~3 seconds @ 100000000 (100m) iterations using integer math
~9 seconds @ 100000000 (100m) iterations using long math

26 seconds @ 1000000000 (1b) iterations using floating point math

C Pi Calculator: 10000000 (10m) iterations

less than 1 second using integer math;
less than 1 second using floating point math;

19 seconds @ 1000000000 (1b) iterations using floating point math

How could performance like that ever be used for 3d games like in C, C++, and Java?

TheGathering
Junior Poster
102 posts since Jul 2007
Reputation Points: 22
Solved Threads: 10
 

They use Python a fair bit in turn based strategy games actually (The newer installments in the Civ familty, for example)

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 

Python is used for scripting unit reactions, where speed isn't that essential, rather than for game loops.

AFAIK there are no complete (commercial class) games written in it.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

CIV series uses it for AI

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 

which is likely scripted so they can have a generic AI engine which the script adapts for the expected reactions of each AI controlled entity in the game.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

Try delphi with opengl

wvgoethe
Newbie Poster
5 posts since Aug 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You