C++ It's what most game engines are done in. You get more control over performance. You can go all the way down to the metal if you want/need to.
It's a bit of a cliche for newbie game developers to get instantly sucked into engine-development/performance-concerns and then never actually birth their _game_ idea. Use anything. Finish a game. Worry about the best technology next time.
For creating a game, is Java or C++ better?
11–17 of 17 posts
Re: For creating a game, is Java or C++ better?
#12If you can develop a game in a garbage collected strongly typed language with a [mostly] cross platform run time that sometimes allows you to forgo porting when moving between platforms and minimizes the amount of porting when it is required, then that seems like a good way to go.
Selecting a "faster" language only matters if there is a performance bottleneck and the "faster" language happens to be faster in exactly a way that removes the bottleneck. Most performance bottlenecks are IO or algorithmically based.
Even deeper, I'd consider prototyping in a scripting language because scripting languages make it easier to iterate quickly than enterprise class compiled languages. For a game, gameplay rules and a fast game with gameplay that sucks still sucks. And the scripting language game may be good enough.
Carmac used C++ for Doom. It was the first game I stayed up all night playing. My rig had a 160 megabyte Hard drive, 5 megabytes of RAM, and a 25 megahertz AMD CPU. These days I download 160 megabyte files without a pause and there are webpages with 5 megabytes of JavaScript...and Quake [not Doom] can run in a Browser.
Focus on shipping. Choose tools for that purpose.
Good luck.
Re: For creating a game, is Java or C++ better?
#13If you want something more efficient/performance, C++. If you really want to get into game programming: C++. If you're still learning basics about programming: Java. If you want something that's memory managed, and easier to write: Java.
Re: For creating a game, is Java or C++ better?
#14So boil it down to what you need to do and what you are both more capable of doing. Likely Java will happen faster and get it launched, which is usually more important initially than raw performance. So maybe that is the way to go at least initially.
I generally focus mostly in C/C++, Javascript (some Go now) and the like, no Java anymore. Just putting my bias out there so you know.
Re: For creating a game, is Java or C++ better?
#15Java pros: memory safety, documentation, it just f'ing works.
C++ pros: not relevant to your situation.
Particularly read frau_dh's comment.