Sign in to follow this  

Best language to code my game

This topic is 1909 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

Hi friends..! Need little help here to choose a language to code my 2nd year project assignment. We are given to develop a 'Tank game' which will ultimately play over a network. maximum four players can join the game, there is a server application runnig on a server machine and each player need to connect to that server. Our assignment is to develop the player application. So each of our batch mates have to develop a player applicatioin which is intelligent and should be able to take decisions(e.g- turn, shoot , move) in order to win over other players. So my requirements for the language are
should support AI algorithms
GUI creation
network communication
I have quite a knowladge of Java and C. But I thought it could be easier if I can use a language which design to work with AI programming, but I don't know whether they will meet my other requirements. I'm kind of a quick learner so I can manage to learn a new language and work with it. So if you can suggest me some ideas it will be very helpful. And any ideas on this assignment, or how I should start it etc. are welcome. thank you very much...!!!
P.S - If my description doesn't make sense. please ask me I'll explain ot again, because I really want to win this game. :D

Share this post


Link to post
Share on other sites
Yeah It's helpful. I haven't create any games with Java. google says I should use jmonkey engine but yet I have no idea what is it or how to do it. So currently gathering information about them if you could help or suggect good tutorials it'll be a great help.

Java is ok. But I thought it is not speciffically designed for AI programming, one of my friend said if I could use a language which provide better facilities for AI that would be a great help. what do you think?

They are asking for AI tank not a playable game. GUI is only for display what is happening

Share this post


Link to post
Share on other sites
I think you don't need a language that's specifically designed for AI programming. The overwhelming majority of games get by just fine without using a language that's specially suited to AI, and it's likely you won't even need any particularly complex AI.

Again, unless you particularly want to use this exercise to learn a new language you're probably best off with whatever language you're most comfortable with.


Do you want 2d or 3d? jMonkeyEngine is good, but it's a 3d engine that isn't particularly beginner-friendly. They do provide [url="http://jmonkeyengine.org/wiki/doku.php"]some documentation[/url] and have a helpful community though. If 2d will be sufficient you might try [url="http://slick.cokeandcode.com/"]Slick[/url] instead. See the sidebar on the right hand side for links to documentation, downloads, etc.

Share this post


Link to post
Share on other sites
yeah it's 2D. you're being really helpful here. thanks. So then I'm gonna proceed with this Slick and Java.. Is there any other things I should be worried about?

Share this post


Link to post
Share on other sites
Well, there are no hidden "got ya"s to know about with Java and Slick or obvious problems you might run into. I'd say your next step is to probably go about learning the basics of using Slick -- get the library downloaded and set up properly, and learn how to create a window and display an image -- and then ask any additional questions you have.

You'll might run into trouble with [i]something[/i], but until you get to that point and have specific questions random advice about things you might get stuck with probably aren't going to be a huge help.

Share this post


Link to post
Share on other sites
Standard answer: the best language is the one you know best and are most comfortable using.

Your objective is to be productive and get something finished; the best language is therefore the one that's going to stand you the best chance of achieving that. If you need to learn a new language, or learn all the funny little edge cases where things can go bad in one you already have semi-knowledge of, then time spent doing that is time not available for your project's main goal.

Share this post


Link to post
Share on other sites
Whenever I see a title like this I know I'm stepping into a minefield. But here it goes.

If you know Java and C then C++ will be pretty trivial to learn. Add a library like SDL and you're good to go. SDL does sound, input, graphics, networking and much more.

Share this post


Link to post
Share on other sites
[quote name='ic0de' timestamp='1351285817' post='4994262']
If you know Java and C then C++ will be pretty trivial to learn.
[/quote]

I disagree but I'm not going to -1 you. ;)

If you come from a C background then C++ is going to completely wreck your head. In particular modern C++ will look like something an alien coughed up by comparison.

If you come from a Java background then you WILL be bitten (and bitten badly) by memory management. Even if you use STL/etc containers, the underlying nastiness does have a tendency to bubble up in the most unexpected of places.

Share this post


Link to post
Share on other sites
As always, ATC is here to recommend C# lol... Implementing the type of project you're talking about in C# would be a breeze. C#, imho, is a much more well-designed and fluid language than Java, and it's more efficient/fast at turning the thoughts and plans in your head into working software than C or C++. However, C++ is also a viable option.

Share this post


Link to post
Share on other sites
if you know Java and C, then my suggestion would be Java. It has the libraries for everything you are looking for. And it will be easier in the long run.

Share this post


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