Java and Gamestudio

Posted By: Joozey

Java and Gamestudio - 08/18/09 20:10

How well does this combi work? I haven't seen much projects bringing both together. The 3dgs-in-browser is the only one that comes to mind currently. But in what way could Java be of use with gamestudio over C++, not taking in account the knowledge and skills of the programmer? I read JCL was pondering whether to use a Java server for their new multiplayer game, or 3dgs/cpp functionality, so I guess Java has some advantage here...

I have been programming Java in the past, but it was all very basic. Just wondering if it could be worthy picking up this language again...

JMonkey engine seems to be going quite well with development as well, at least there are some worthy game titles to watch (some still tend to look like runescape though). I'm not sure if Java is currently the language to use for developping a game, but it does force you to program object oriented in full extend, unlike C and C++.

Although I know nothing about C#, I heard there's some option to attach C# to 3dgs. Is C# more like C++, or Java in regard to 3dgs? I guess in Java you can not just simply call the SDK functionality of 3dgs, and in C# you can, so that gives a big advantage to C#.

Anyway, I'd like to hear some opinions on this.

Regards,
Joozey
Posted By: TheThinker

Re: Java and Gamestudio - 08/18/09 20:22

C# is very very similar to Java. If I remember correctly there was J# in the past, before c# came up.

If you want to use dlls or create dlls with Java you have to use some Native functions (I think theire are called this way) it is very complicated. And so far as I know you have to use dlls, if you want to use the engine extern.

Aaand, I can imageine, that there can be a problem with Java and Directx.
Posted By: Damocles_

Re: Java and Gamestudio - 08/18/09 20:27

Java itself (for programming the gamelogic) is much superior to
the old C (Lite-C) language.
The problem is just the missing connectivity to gamestudio.

I would love to be able to directly access the gamestudio
rendering engine, and totally skip the gamelogic part in gamestudio and let the non-rending part run by the java machine.

Right now the only choice would be to write some C++ conncetor
as intermediator for that purpose.

Also running the gameserver in Java would have a lot
of advantages.
If one of the multiplayer pluginprogrammers could
open the TCP protocol, we could write the gameserver part
in Java.
Then the server could even run on a cheap Linux net-server.

I currently develop a game in JavaME. And the language is great
for that purpose. Its object oriented (as C++) but much more stable and easier to debug.
Posted By: DJBMASTER

Re: Java and Gamestudio - 08/18/09 20:32

Stromousfall wrote a C# wrapper that allows you to access the engine within a C# application. I'm currently using it in my project and it works very well.

I would say the main advantages of Java and C# is that they are both 'Garbage Collection' and so you dont have to worry about your pointers or memory allocation, although you still have the power to with 'unsafe' code. Of course this does inpact a little on the performance and thats why C++ is still the top choice for games.

I love C#. Its a mixture of both java and C++ and is really easy to start learning. I taught myself by just practising little bits and you soon get the hang of it. I'd say C++ is a little intimidating and its not recommended as a first language. Also C# has the XNA gamestudio which from the looks of it looks pretty impressive and can also run on the xbox 360.

If the acknex engine can be wrapped for C# then i see no problem in wrapping it for java as the two languages are very similar, although i may be totally off here.
Posted By: Tempelbauer

Re: Java and Gamestudio - 08/18/09 20:32

thats right.
additionaly you cant use javas advantages (like platform-indipendence) cause afaik gamestudio-games can only run under windows.
so, if you want to use gamestudio in other applications, use C#. Furthermore its really easy to use it: Stromausfall´s C#-Wrapper allows you to embed the engine (A6 and A7) quite easy. Take a look here: http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=277432&gonew=1#UNREAD

edit: HELL, i type slowly shocked
© 2023 lite-C Forums