What programming language is best for games?

Started by
40 comments, last by Antheus 18 years ago
Quote:Original post by Davatech
Roboguy, you have lost me...


The statement you made implied that you believed that C++ and C# are the only languages:
bballmitch said that most, but not all, games on various consoles are made using C++.
You said "So C# CAN be used to develope games for gamming consoles?"
That would only be definitely true, given that information, if C++ and C# are the only languages.
Advertisement
Quote:Original post by Roboguy
Quote:Original post by Davatech
Roboguy, you have lost me...


The statement you made implied that you believed that C++ and C# are the only languages:
bballmitch said that most, but not all, games on various consoles are made using C++.
You said "So C# CAN be used to develope games for gamming consoles?"
That would only be definitely true, given that information, if C++ and C# are the only languages.


Yes, I understood that there were other languages capable of this, but I was focusing most on C# in that post...
Quote:Original post by John Schultz
100% C# with DirectX is likely the best way to start to learn 3D game programming. Once you have the concepts for game development down, you can move on to the more complex/difficult-to-use (but faster, currently more portable) C++.

As a beginner, don't worry about making a large, commercial sized game. Start making small, simple games in C#, then gradually make larger games (the difficultly in writing larger software projects is exponential; twice the code size = ~4x the time+complexity to develop and maintain).

I've been writing code in C++ since the language was created (you used a C++ translator to pass to the C compiler: straight C++ compilers did not exist). I recently used C# + WinForms for a project, and wholeheartedly recommend using C# for everything except ultra-time-critical code (C# is becoming more portable, but is not as portable as portably-written C++ (ifdefs, etc., must be used to make C++ portable between various compilers/environments)). Once C# support packages (such as WinForms) are fully ported, C# will be quite portable (without the need for ifdefs, etc., much in the same way Java was promised to be 'write once, run anywhere').

My current game uses OpenGL; a future revision will move to DirectX, as it appears that using DX9+ will allow higher performance, and is now just about as easy to use as OpenGL. Once you understand the concepts, switching between OpenGL and DirectX is straightforward (does not really matter which one you use; though it appears DX has been better optimized in recent years for game applications (even 3DSMax appears to run faster with DX).

In summary, once you learn the concepts of game development and graphics programming, you can switch between languages and API's without too much trouble.


John Schultz, What do you think about Managed C++ vs. Managed C#?
Quote:Original post by vrok137
Considering that you are a new member and are asking on which programming language is suitable for 3D development, I would reccomend you take a look at this.




That's probably too complicated for initial 3D development.
Can C# be used to add graphics to movies and whatnot?
Quote:Original post by Davatech
John Schultz, What do you think about Managed C++ vs. Managed C#?


Managed C++ simply (or not so simply) exposes C# elements to C++. Stick with 100% C# until you written a few simple games, then if you need to optimize certain sections, use Managed C++ to bridge pure C++ to C#. You'll probably want to learn C++ by itself after you are comfortable with C# (don't jump in and start using Managed C++ before you are comfortable with both C# and C++ by themselves).

Quote:Original post by Davatech
Can C# be used to add graphics to movies and whatnot?


It *could* I guess, but you would probably want to use something more high-level and specific to that.
Quote:Original post by Davatech
Can C# be used to add graphics to movies and whatnot?


Yes. You can do just about anything in C# (except, for example, inline assembly). You can grab a copy of Visual Studio C# Express (free download) and start learning right away (also download the DX SDK: lots of C# examples you can compile and play with).
Quote:Original post by Roboguy
Quote:Original post by Davatech
Can C# be used to add graphics to movies and whatnot?


It *could* I guess, but you would probably want to use something more high-level and specific to that.


Like what?
Quote:Original post by Davatech
Quote:Original post by Roboguy
Quote:Original post by Davatech
Can C# be used to add graphics to movies and whatnot?


It *could* I guess, but you would probably want to use something more high-level and specific to that.


Like what?


Like I said in my post, something specifically for that.

This topic is closed to new replies.

Advertisement