Advertisement

C++ vs. Java

Started by January 27, 2005 11:31 PM
2 comments, last by skow 19 years, 10 months ago
As stated in previous posts, my knowledge of game environment/openGL programming is very limited. Java is my perferred language in everything else I use, but everything I see done in examples and what most everyone on the forums use is C++. Is Java even used in this type of programming? I assume it would be. So the obvious questions, which is better/more preferred for this type of programming? C++ or Java? Advantages or Disadvantages?
Just to show the power of what Java can do with 3D Games... http://www.wurmonline.com/

Wurm online uses Java and OpenGL to make a pretty cool 3D MMOG. One of the benefits of java is that it also allows them to easily distribute the game since they use java web start.

-Limb

[Edited by - ibelimb on January 28, 2005 12:53:23 AM]
-Limb
Advertisement
Java can use OpenGL but it will probably be slower. I am guessing(I DO NOT KNOW) the functions are similar to the OpenGL methods used in Java though. You might want to find an open source program to verify that. If it is, just port the C++ to the Java.

C/C++ is the normal language for doing OpenGL but it can be used for Java (theres a few 3D games i have seen programmed with OpenGL) as well. It doesn't really matter what you use because if you know Java you can easily go into C++ (assuming you understand pointers and such).
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
                                                          
Looking for video game music? Check out some of my samples at http://www.youtube.c...ser/cminortunes            
                                                          
I'm currently looking to create music for a project, if you are interested e-mail me at cminortunes@gmail.com    
                                                          
Please only message me for hobby projects, I am not looking to create music for anything serious.
Yes you can use java but it will not be as fast. The JVM slows it down a fair amount.

But if you are making a fairly simple game go for java, just you won't see it much in the industry.

This topic is closed to new replies.

Advertisement