Tuesday, July 14, 2009

Java vs C++ which one is better in game programming?

Hi all! this is my first time to posting a question, i hope all of you will help me. Thx a lot all..





well, now i'm very confuse about which programming language (java or c++) is better in game programming? i would like to learn on making a game, but still i'm confused on choosing the programming language, please give me some suggestion. Thank you.

Java vs C++ which one is better in game programming?
C++ is still #1 when it comes to professional game development. However, you can make games in any programming language. The main concepts are still the same.





If you are a beginner, and want to develop games as a hobby, you may want to look into C# and XNA Game Studio. C# is way easier to grasp (for beginners) than C++. Eventually, if you can develop games in C#, then transition to C++ not very hard. Plus, with XNA, you get to develop and play your own games to on xbox 360. I know I didn't mention Java, and that's because it's very similar to C#, and I just love XNA [which you can only use with C#].
Reply:C++ is the industry standard in complex commercial desktop and console games. Java seems to be leading on simpler (but a large market) cell phone games.





But as a beginner, neither is an optimal language to start with. C++ can make experienced programmers cry. Java manages to do that at least with beginners to programming.





Look at other choices. Python is a much simpler language than either. Python + PyGame combination is a very easy and popular way to start with 2D games and programming.





Visual Studio Express + XNA offers a more polished solution specifically geared to learners like you. Although the code you create in .NET/XNA won't run anywhere except in Windows and Xbox 360, .NET based languages (C#/VB.NET) are much easier to pick up for beginners than Java.





Contrary to what another poster said, .NET (C#) does not consume 10 gigs of disk space (it takes about the same as Java). Neither is a Java game instantly portable from a desktop stack to a mobile stack even if they are somehow comparable games at these extreme ends. Portability also should not be a beginner concern. You are learning, not creating products where you need to be concerned about lost markets.
Reply:If you are going to put any effort in this, why not WORA -- Write Once Run Anywhere. Learn Java.





C/C++ takes a bus-load of tinkering to make the same game run on different CPUs. C# takes a 10-gig plug-in at both the coder's end and the end-user's end. Not good.





Java can be easily modified to run on a cell-phone, an Intel-based computer, AMD, Solaris or a Mac. Linux or that other OS.





Java will cut your learning curve time down by 50%.
Reply:well it depends both languages are tough


you can make games on both


but c++ is the most common used specially if you want to do 3d gaming but you also have to learn more


but Java is also used to make cell phone games and games on the internet


but there is also c# which you can use with xna to make xbox360 arcade games


but if your a beginner you can also try downloading gameMaker7 from the internet from the yoyo games website


another easy one is flash
Reply:while the answer recommending java is true, it can run anywhere, you have to consider overriding factors. The fact is that java gobbles memory and has a huge overhead for even the smallest programs, for a game of any size and complexity you'll be quickly running into problems involving memory.





C++ it's the standard for a reason.


No comments:

Post a Comment