Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,269 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,208 people online right now. Registration is fast and FREE... Join Now!




Which Language?

2 Pages V  1 2 >  
Reply to this topicStart new topic

Which Language?, New to programming, and don't know which language to learn?

Rating  5
Best Game Development Language
In your opinion, what is the best language for game programming?
C/C++ [ 43 ] ** [71.67%]
C# [ 6 ] ** [10.00%]
Java [ 10 ] ** [16.67%]
Lua [ 0 ] ** [0.00%]
Visual Basic [ 0 ] ** [0.00%]
Other (please specify and I'll add it to the poll) [ 1 ] ** [1.67%]
Total Votes: 60
Guests cannot vote 
gabehabe
3 Sep, 2008 - 01:10 PM
Post #1

Donkey DIC
Group Icon

Joined: 6 Feb, 2008
Posts: 5,522



Thanked: 96 times
Dream Kudos: 2650
Expert In: ruling the world.

My Contributions
This is a pretty common topic, so I figured it's time for a sticky.

Many people often come to this forum to try to get some advice on which language is best for them. So let's discuss the pros and cons of each language for games development.

I'll start with a generic overview of the most common languages used for games development, then I'll leave the rest to the experts. cool.gif

So...

The most common language used within the games industry is C++ which is even used for console game programming. (Coupled together with a graphics library called OpenGL) Also, I have played a few games on the PS3 which were written in Lua.

Another less-common-but-coming-up-fast language is Java, which is mostly used for mobile phone games and applets. An applet is basically a program which can be embedded into a web page. A great example of what can be achieved with Java is RuneScape.

Now it's time to throw in this little wildcard. C# is an object oriented language, which is kind of a hybrid of C++ and Java. The original intention of C# was for software development. It's a very high level language, which means all of those tools that you're going to need will already be made. It's just your job to learn how to use them properly. XNA is a framework, developed for C# which is used for making games. However, I have no experience with XNA to be able to recommend it.

And lastly, I'd like to quote Bench from the C/C++ forum, for this excellent analogy:
QUOTE(Bench)
If you're a fan of analogies (I truly despise analogies personally, since they're always flawed) - Imagine programming like assembling furniture.
In the Java world, you go down to Ikea and pick up some ready cut, ready drilled flatpack furniture, and all you need to do is screw it all together without needing to worry about the dimensions or the design of the individual pieces (Because someone else has already done all this hard work for you). You might find that the manufacturing process has some very slight anomalies, and doesn't fit together 100% perfectly, or maybe the design doesn't suit your needs exactly, but it does the job very well otherwise.

In the Low-level world, you start out with a solid tree trunk and a workshop full of powertools, where you will handcraft the furniture. You'll need to spend alot more time recreating bits which Ikea would have made for you, though you can finetune each minor detail, you need to understand the resilience of the material, and the way in which stresses and strains work at the joints (Though with handcrafted furniture you will probably have less joints), but you need a detailed understanding of precisely what you're doing so that the furniture you build at the end doesn't collapse.

User is offlineProfile CardPM
+Quote Post

BetaWar
RE: Which Language?
3 Sep, 2008 - 05:18 PM
Post #2

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 2,020



Thanked: 81 times
Dream Kudos: 1175
My Contributions
I said C++, I may not know a ton of it, but from my experience it is very powerful, very fast, and not terribly difficult to get going (especially when you have a community like this to help out).
User is offlineProfile CardPM
+Quote Post

gabehabe
RE: Which Language?
4 Sep, 2008 - 01:55 AM
Post #3

Donkey DIC
Group Icon

Joined: 6 Feb, 2008
Posts: 5,522



Thanked: 96 times
Dream Kudos: 2650
Expert In: ruling the world.

My Contributions
Hey, I forgot to mention Flash & ActionScript.
I just remembered because I've seen a bunch of your tutorials icon_up.gif

I don't know a lot about it, but as far as I know, it's pretty simple to use. The graphics are often comic-style, and they're embedded into web pages. Big games aren't particularly made using Flash & ActionScript, it's often stuff like that on MiniClip. You can still make money from making them though~

smile.gif
User is offlineProfile CardPM
+Quote Post

World
RE: Which Language?
4 Sep, 2008 - 07:46 AM
Post #4

New D.I.C Head
*

Joined: 30 Mar, 2008
Posts: 16

Actually There Are Lot Of Big Games Made In Flash And Action Script. Most Are Mixed With Another Language Though The Main Parts Are Flash And Action Script. Take Nitto Legends It's C++ and Flash.

User is offlineProfile CardPM
+Quote Post

perfectly.insane
RE: Which Language?
5 Sep, 2008 - 02:12 AM
Post #5

D.I.C Addict
Group Icon

Joined: 22 Mar, 2008
Posts: 558



Thanked: 46 times
Dream Kudos: 25
Expert In: C/C++

My Contributions
What about COBOL?
User is offlineProfile CardPM
+Quote Post

stayscrisp
RE: Which Language?
5 Sep, 2008 - 07:44 AM
Post #6

D.I.C Regular
***

Joined: 14 Feb, 2008
Posts: 266



Thanked: 8 times
My Contributions
QUOTE(World @ 4 Sep, 2008 - 08:46 AM) *

Actually There Are Lot Of Big Games Made In Flash And Action Script. Most Are Mixed With Another Language Though The Main Parts Are Flash And Action Script. Take Nitto Legends It's C++ and Flash.


Actually I think its the other way round, A lot of big games use Flash for things such as Menu's as it is easy to make professional looking things such as this, but the main part of the game that matters will usually be made in C++. I dont know about Nitto Legends but whatever gets the job done I guess.

P.s

mad.gif Caps
User is online!Profile CardPM
+Quote Post

WolfCoder
RE: Which Language?
18 Sep, 2008 - 06:54 AM
Post #7

ギュウ~
Group Icon

Joined: 5 May, 2005
Posts: 3,610



Thanked: 7 times
Dream Kudos: 1450
My Contributions
C and C++ for me, it's easy to do the whole object oriented thing and get close to the metal in the same language. Plus on some compilers it lets you write assembly inserts. JAVA is good for webgames.
User is offlineProfile CardPM
+Quote Post

homemade-jam
RE: Which Language?
18 Sep, 2008 - 10:28 AM
Post #8

eeeAddict
Group Icon

Joined: 17 Mar, 2008
Posts: 1,066



Thanked: 1 times
Dream Kudos: 25
My Contributions
mmmm Assembly
User is offlineProfile CardPM
+Quote Post

kwanshi
RE: Which Language?
19 Sep, 2008 - 08:05 AM
Post #9

New D.I.C Head
*

Joined: 28 Apr, 2008
Posts: 2

I am currently at college studying games development I learned C ++ and Python last year of course still practising this year I am learning JAVA and darkBasic.

me and a few friends are planning a game.

Which would be the best language to use.

Thanks smile.gif biggrin.gif
User is offlineProfile CardPM
+Quote Post

gabehabe
RE: Which Language?
19 Sep, 2008 - 10:11 AM
Post #10

Donkey DIC
Group Icon

Joined: 6 Feb, 2008
Posts: 5,522



Thanked: 96 times
Dream Kudos: 2650
Expert In: ruling the world.

My Contributions
It depends on the type of game you want to write.

As far as I know, DarkBASIC is just a simple interface for DirectX (I could be wrong, I only learned it for an hour and it got on my nerves)

Java is good for web games, as WolfCoder stated.

For a proper game, C/C++ is a pretty good choice. Just look at the poll!

QUOTE
C and C++ for me, it's easy to do the whole object oriented thing and get close to the metal in the same language. Plus on some compilers it lets you write assembly inserts
Very true. It's just nice to use. Though beginners may struggle, since it's a low level language, but then again, I started with C++ and high level languages (C#, etc) are really easy to pick up.

User is offlineProfile CardPM
+Quote Post

Shukumei
RE: Which Language?
23 Sep, 2008 - 01:28 AM
Post #11

New D.I.C Head
*

Joined: 22 Sep, 2008
Posts: 24


My Contributions
Personally I would say QuickBasic is the best for game programming, it is easy to use - sure the graphical capabilities of it are not that great, but since when was gamming about shinny graphics and not about the content of the actual game. Damn I am sounding like my father and what he has to say about Christianity 'Since when is being a Christian about the music and not saving souls...' - sorry had a childhood flashback - Well back to making my game in C++ now that QuickBasic has gone on holiday - for those of you with no sence of sarcasic humour this was ment in jest, I voted for C++ biggrin.gif
User is offlineProfile CardPM
+Quote Post

xCraftyx
RE: Which Language?
27 Sep, 2008 - 05:51 PM
Post #12

New D.I.C Head
Group Icon

Joined: 13 Sep, 2008
Posts: 34



Thanked: 1 times
My Contributions
C/C++ are still, i think, the best because of their flexibility/speed but C# is getting more popular isn't it?
User is offlineProfile CardPM
+Quote Post

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 04:52AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month