• Advertisement
Sign in to follow this  

Good Game Programming Language

This topic is 3323 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am planning on making a 2d top down adventure type game and I have a couple options for currently known programming languages. When I say I already know these languages I'm no expert but I have made games and coded probably 1000+ lines of code. (not sure just an estimate) Python + pyGame: Most familiar with. Java: Taken two courses in college so far, only one game in this but have a good understanding of it. C#: Little amount, mostly just used with the XNA framework. C++: Very little, did a tutorial where I made a text based adventure game. Actually I also followed a tutorial where I got acquainted with openGL. In your opinion what language do you think would prove to be the best choice for me to make a 2d adventure game. Thanks

Share this post


Link to post
Share on other sites
Advertisement
If you're going to learn one language very well, I recommend C++. C++ is the empire and languages like Python and C# are the rebel alliance. I know that the rebels win, but in my mind the Sith are cooler and they win. Haven't you ever played dark side on Knights of the Old Republic? C++ IS POWER! That and machine code is about a billion times faster than managed or interpreted code. I think that Python is really, really cool, but my head almost exploded trying to figure out how to define objects (classes? __init__?). I write Blender export scripts in Python.

Also, ApochPiQ's Finaly Fantasy 6 Lobo avatar is the shiznit.

Share this post


Link to post
Share on other sites
Python + SDL, wxWidgets, and other C/C++ libraries with Python wrappers.

Share this post


Link to post
Share on other sites
Python is just fine for this type of thing, and you list it as the language you know best - get to work writing that game! [smile]

Share this post


Link to post
Share on other sites
Use what you know best. Trust me it helps and you can save yourself alot of trouble. When you have more time, learn the language that you think would work best. If you're perfect with Python, keep it, you want to move to C++, learn it :)

Share this post


Link to post
Share on other sites
Quote:
Original post by ApochPiQ
Use what you know best. There's really no need to know a half dozen languages until you are highly proficient in one or two of them.


Learning many languages is valuable, but your next project shouldn't be your motivation for learning a new language. :)

Share this post


Link to post
Share on other sites
Just for the record though, managing a python project with a large number of classes can be somewhat difficult. The lack of type safety can make debugging slightly annoying if your class interfaces are at all vague. e.g. "Hmm, now was that third parameter supposed to be a This object or a That object? Guess I'll just have to run it and see if it crashes."

Granted, you can easily flip back between source files to see what goes where, but my point is that not having a compiler to catch the obvious errors can be a major drawback.

Share this post


Link to post
Share on other sites
Quote:
Original post by WhatsUnderThere
Just for the record though, managing a python project with a large number of classes can be somewhat difficult. The lack of type safety can make debugging slightly annoying if your class interfaces are at all vague. e.g. "Hmm, now was that third parameter supposed to be a This object or a That object? Guess I'll just have to run it and see if it crashes."

Granted, you can easily flip back between source files to see what goes where, but my point is that not having a compiler to catch the obvious errors can be a major drawback.


It's true, Python leaves a lot to be desired in large projects. I find the module system and no definitions (recursion issues) to be a more pressing than type-safety.

Bonus is the compiler also significantly increases development time.

Share this post


Link to post
Share on other sites
I highly recommend C++. It is the most widely used in professional game development, and thus will definitely fit all your needs. With C++, you never have to worry about the language not being sophisticated or fast enough for something, and you will never have to worry about finding 3rd party libraries to use it with. Additionally, once you are very good with C++ you will be ready to quickly pick up most any other type of language, as there are very few concepts that C++ doesn't support.

Share this post


Link to post
Share on other sites
Well, although I'm a c++ almost monolingual person, I wouldn't recommend c++ for hobby game development. It took me years to figure out the language and how to use it with DirectX for example.
It's difficult enough to understand the maths, the logic and all other aspects of an API like DirectX, and using it through a COM-Interface just makes it more complicated for someone trying to learn all that stuff.

C# combined with XNA or that DirectX wrapper for C# seems fine to me (though I've never used it, just taken some looks).
About the performance part, I do not want to start a fight over this (again), but I highly doubt that using c++ over c# in a hobby project that isn't the next Farcry won't be much of a difference in terms of speed. Do it right in C# and it'll run fast :)

Another point:
Because there are dozens of libraries out there to use with c++, it's really difficult to find a specific library to do a task X.
There are dozens of xml, image, and sound libraries out there and finding the right one was difficult as well (and took alot of time).

Share this post


Link to post
Share on other sites
Yah im learning c++ and BASIC with my software oh and by the way ayone who is a young kid 12,13,14 should join good idea we r at a begining stage of making a fantasy mmorpg if interested email me at bennyxviper@gmail.com thanks.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement