Skip to main content
GameDev.net gamedev.net
🔒 Locked

What language?

Started by jepalano Dec 10, 2005 at 2:54 PM 9 replies 1.3k views
Original Post
jepalano
jepalano
Hello, If Im going to learn game programming today, what language should I then start to program in ? I've got years of experience in standard C++ and SDL, and now I wanna start to make games. Which is best C++ or C# ? And what of theese two will still be a powerful game language in like 5 years? // Jepalano
Stompy9999
Stompy9999
Well if you already have experience in C++ and SDL, than I think you should definetly go with C++. That's not to say that C# isn't a good language, because that is far from the truth. I'm just saying go with what you know.

I don't think C++ will be going away anytime soon, and C# is being used more and more, so how long they will be around shouldn't be a concern.
Kaze
Kaze
if your good a C++ use C++
MumbleFuzz
MumbleFuzz
Keep an eye on this thread. It may be interesting.
MumbleFuzz
Roboguy
Roboguy
Quote:
Original post by MumbleFuzz
Keep an eye on this thread. It may be interesting.


Definitely.

As for the question in the OP, I'm afraid I can't recommend C# since I haven't used it yet (although it sounds good from what I've heard). However, here are some of my recommendations (in no particular order): Haskell, Python, Ocaml, Scheme. This isn't exacly what the question asked, but it might be of help. Also, some of the languages I listed (particularly Python and Scheme) work pretty well as scripting languages, so even if you decide not to use them to write the engine, you still might want to look at them for scripting.
clayasaurus
clayasaurus
If you are adventurous you can check out the D programming language

It compiles to native code unlike C#, and is more refined unlike C++. It has bindings for SDL and other libraries as well.

Be warned however, the compiler is still in beta. It is quite stable for medium sized projects, but it is not ready for professional game development quite yet simply because it would be annoying changing code of a million line program to reflect bug fixes and/or language changes.
jepalano
jepalano
Okey, I think I know what language I will start to make games in now. But before I start I would like to see some examples of game made in C++ and C#, so I ask here,
can anyone tell me some games that are made in C++ and some made in C# ?

Kind Regard / Jepalano
Aldacron
Aldacron
Quote:
Original post by jepalano
Okey, I think I know what language I will start to make games in now. But before I start I would like to see some examples of game made in C++ and C#, so I ask here,
can anyone tell me some games that are made in C++ and some made in C# ?


Most commercial games today are coded in C++. It's not because it's 'better' than C#, but because it's older. And that's a recent development. Up until a few years ago a majority of games were still coded in C. It takes a while for game dev shops to adopt a new language (they tend to lag behind other shops in other fields).

I'd like to add, though, that (generally) it doesn't matter which language you use to program a game as long as it's available on your target platform. The important factors are your skill with the language, your ability to apply your skill to the task of game development, and, for a business, how that language helps you to get your game done on time and under budget. In a few years time we will see games on store shelves coded in languages other than C++. In fact it's already happening - there have been several Java games to make it to retail in the last few years.

So don't focus so much on what other people are doing just yet. You've got a long way to go. Whatever language you pick up now isn't going to be the only language you use. Learning a language is just a matter of learning syntax. The hard part is learning the concepts behind game development and general software development. So whichever language you learn today will be the most difficult, since it will be the one with which you learn the theory and algorithms you need. Later down't the road you'll be able to pick up another language easily.
d000hg
d000hg
C++ will still be big in 5 years for application development. And this is even more true for games development.

If you are good at C++ stick with that. Games programming will need to to learn lots of new methodologies, algorithms and ideas - learning a new language at the same time seems foolish, since C++ is the standard for game programming anyway.

Good luck.
Zipster
Zipster
Keep in mind that not all game developers work strictly on core engine components. Many spend a lot of time writing tools or other utility applications related to asset creation and management that might not necessarily be in C/C++. And a lot of newer games are heavily data-driven using languages like Lua and Python. Someone needs to right that code too.
darookie
darookie
Quote:
Original post by jepalano
Okey, I think I know what language I will start to make games in now. But before I start I would like to see some examples of game made in C++ and C#, so I ask here,
can anyone tell me some games that are made in C++ and some made in C# ?

Kind Regard / Jepalano

In addition to what Aldacron already said, I think I have to add that you won't notice what programming language was used for a game (and to what extend - even console games tend to be a mix of a C/C++ core and Lua/Python/Ruby/Java/whatever scripts).

Eyecandy, impressive physics, bombastic sound - all that is mostly due to the heavy use of middleware and a great art department. I repeat - since that mistake is made way too often - there is NO way to see which programming language was used by just looking at the game itself and it doesn't really matter. At all. PERIOD.

Cheers and best of luck!
Pat.

EDIT: Overlooked the "years of experience"-part - sorry [smile]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.