C++ or Java for a Game Engine?http://forum.devmaster.net/t/c-or-java-for-a-game-engine/18751
I am an enthusiastic person when it comes to game engines, and so I am trying to create my own game engine and I'm trying to choose between some languages.
I'm sort of looking at Java and C++ to create an engine with, but I don't know what language I should use because I'm a newbie with programming languages.
I was thinking if I was going to use C++ I would use AngelScript or Lua to script the game, and if I was going to use Java I would use Java to script because I don't think AngelScript of Lua have been ported to Java or if I can use them at all in Java.
If you know the differences between these Languages (C++ and Java) for programming games, could you please give some helpful info, Like speed difference, ease of use etc.
And I know Java is more basic and C++ is for the more experienced person.
P.S. No need to tell me not to make an engine but a game instead, because I know the structure of a game engine already.
Wed, 05 Jan 2011 20:40:55 +0000languagesC++ or Java for a Game Engine?@oisyn wrote:

Thank you for that very insightful post filled with compelling arguments that proves your statement.

]]>http://forum.devmaster.net/t/c-or-java-for-a-game-engine/18751/22
Wed, 05 Jan 2011 16:45:44 +0000post-18751-22C++ or Java for a Game Engine?C++ or Java for a Game Engine?@Lalaporo wrote:

well chosing a language is more than just what would be smoother and look better, you also have to know how to write in that language :\ java and c++ are a whole lot different to me, right now im learning BASIC, witch once experienced in BASIC can easily be transformed into c++ or java. It is bassicly both of them combined, it is really simple to. If you are interested i would sugest the to use a compiler called BASIC4gl, really nice 3d work space. But just because it is called BASIC doesnt mean it is going to be easy, im just saying it would be easier to learn BASIC and transform into c++ or java, then to learn c++ and find out that it isnt what you where looking for.

]]>http://forum.devmaster.net/t/c-or-java-for-a-game-engine/18751/21
Mon, 03 Jan 2011 21:08:45 +0000post-18751-21C++ or Java for a Game Engine?C++ or Java for a Game Engine?@alphadog wrote:

@Mattias Gustavsson

Wow, that's a massive improvement - it's actually starting to become interesting then I'll probably stick with C++ myself, for performance and out of habit, but it's still good to see C# becoming more of a viable option - I know a lot of people like it.

Actually, there is a Client Profile for Net3.5 SP1, which weighs in at 28MB. And, yes, there was a massive improvement in the Client Profile, both in content and "visibility" of it. MS realized shoving the whole framework wasn't going to work too well.

]]>http://forum.devmaster.net/t/c-or-java-for-a-game-engine/18751/18
Wed, 10 Nov 2010 07:50:54 +0000post-18751-18C++ or Java for a Game Engine?C++ or Java for a Game Engine?@Mattias_Gustavsson wrote:

@.oisyn

35 MB for .Net 4.0.

Wow, that's a massive improvement - it's actually starting to become interesting then I'll probably stick with C++ myself, for performance and out of habit, but it's still good to see C# becoming more of a viable option - I know a lot of people like it.

Well alot of people have heard of Minecraft and its not going to be destined to be a failure!

I guess your sarcasm-o-meter is broken.

But you haven't answered my question. Why not .Net (specifically, C#)? That way, if it just so happens no need extra performance somewhere, you can implement that in C++ and create the bindings between native C++ and managed C# using C++/CLI.

]]>http://forum.devmaster.net/t/c-or-java-for-a-game-engine/18751/9
Mon, 08 Nov 2010 23:08:42 +0000post-18751-9C++ or Java for a Game Engine?C++ or Java for a Game Engine?@fireside wrote:

Java games on the desktop are practically unheard of.

The games that do use java on the desktop tend to be web related such as Runescape and Bang Howdy. Runescape is the second most played MMO. I think it's a great language, but I'm a hobbyist. Language really isn't very important on the desktop. What you say about code, though, is a good idea. Not so much for an engine in my circumstances, but things like a pathfinding class, fsm, etc. I'll let someone else write the engine, I don't have that kind of patience. Using an extensible language is important to me, so c++ with scripting just gets in the way as far as I'm concerned, at least in most cases. If it's highly specialized, it's all right.

]]>http://forum.devmaster.net/t/c-or-java-for-a-game-engine/18751/6
Mon, 08 Nov 2010 19:41:31 +0000post-18751-6C++ or Java for a Game Engine?C++ or Java for a Game Engine?@TheNut wrote:

Java games on the desktop are practically unheard of. If you practice your Java skills, you will likely end up as a server or web developer somewhere. C++ as a language is as good as any other and will make you more marketable in the gaming industry. .NET also has a strong pressence with tools developers. LUA is a good scripting language and is my prefered choice, but also consider Python as it's quite popular and will earn you brownie points in the game industry.

Something else to consider...

Java -> port to the 'droid or to the crackberry .NET -> port to M\\$ phone C++ -> port to symbian

If you're good, you'll code your Java or C++ classes such that it would be minimal effort to migrate between the two languages if that should ever happen to you. The core of my C++ engine was ported to C# with minimal adjustments. As a result, I work with the same code base accross multiple platforms including Silverlight, Symbian, Linux, Mac, and iOs. Code is your asset, so write it once and use everywhere.

]]>http://forum.devmaster.net/t/c-or-java-for-a-game-engine/18751/3
Mon, 08 Nov 2010 13:21:35 +0000post-18751-3C++ or Java for a Game Engine?C++ or Java for a Game Engine?@fireside wrote:

Java is a little slower, so that's you're first consideration. Take a look at some demos of the Jmonkey engine and see if it will be adequate. Java works pretty well with the web, depending on your engine, you can use applets or web apps, so it's a convenient way to distribute games. Java doesn't really need any scripting so it's easy to extend engine classes to modify the engine for a certain type of game. That's difficult, or nearly impossible with a scripted engine, without reverting back to c++ and then possibly adding new scripting. Java is less secure in the sense that it's easy to decompile. Java uses opengl for good or for bad, but it may mean more learning for someone who knows directx. If you are going to do a smaller, web centric engine, Java is probably a little better choice. There aren't as many mid level libraries as c++ for it. There really aren't a lot of java engines around, which should give you some idea of the demand of each, but then, specializing might be the better way to get noticed anymore.

]]>http://forum.devmaster.net/t/c-or-java-for-a-game-engine/18751/2
Sat, 06 Nov 2010 13:37:43 +0000post-18751-2C++ or Java for a Game Engine?C++ or Java for a Game Engine?@LizardGamer wrote:

I am an enthusiastic person when it comes to game engines, and so I am trying to create my own game engine and I'm trying to choose between some languages.

I'm sort of looking at Java and C++ to create an engine with, but I don't know what language I should use because I'm a newbie with programming languages.

I was thinking if I was going to use C++ I would use AngelScript or Lua to script the game, and if I was going to use Java I would use Java to script because I don't think AngelScript of Lua have been ported to Java or if I can use them at all in Java.

If you know the differences between these Languages (C++ and Java) for programming games, could you please give some helpful info, Like speed difference, ease of use etc.

And I know Java is more basic and C++ is for the more experienced person.

P.S. No need to tell me not to make an engine but a game instead, because I know the structure of a game engine already.