Sign in to follow this  
Hispanic91

Java Games?

Recommended Posts

Hispanic91    110
I have heard bits and pieces of jave game programming. But is java suitable for game programming? What are the advantages and dissavantages? Because I want to make a MMORPG(I think I got it right lol) combination RPG and I want to know which language is the best.

Share this post


Link to post
Share on other sites
stecal849    144
Hi

Languages are tools. You could make a MMORPG/RPG/Beat-em-up in javascript if you really wanted but like using your fists to hammer nails into walls - its not the best of ideas.

Several games have been ported to Java from C++ and run quite efficiently. I see no reason - if you possess the abilities - to write whatever you want in Java.

Check out http://www.bytonic.de/html/jake2.html as one example


Regards,

Ste

Share this post


Link to post
Share on other sites
Vegettex    124
Hmm interesting to see if you want to make (i.m.h.o) one of the toughest games around and you want to use java because you've heard that you could use it for game programming. Well is java suitable for making a mmorpg, like stecal849 said, ahwell, you could use java for it indeed (not what I would take but that is my opinion). The advantages of java...well...eum? it is quite easy to learn (you will be spending a hell of a lot of time in the java api pages, but after some months, perhaps years (when you do it by yourself). Disadvantages, well java is definitely slower then languages like c++ or c# and I think that the support for making a MMORPG with java is less then when you are going to use c++ (or something familiar).

I would really like to see the result :)

Good luck!

ps. This is NOT a post to bash your idea about making a mmorpg but you really need to be aware of the fact that it is really much work.

Share this post


Link to post
Share on other sites
Hispanic91    110
Quote:
Original post by Vegettex

Good luck!

ps. This is NOT a post to bash your idea about making a mmorpg but you really need to be aware of the fact that it is really much work.


I know LOL I appreciate the feedback. What inspired me is one game, maybye you have heard of it, Runescape (www.runescape.com) Runescape is done in JAVA

Share this post


Link to post
Share on other sites
gsmaster    120
Alas, I have heard that a lot too.

Keep in mind, the original Runescape itself(2d, you know) had around 15 guys on it, if not more.
The current has a lot of people(I'd say around 40+) and takes a lot of money to run. 100 servers * A couple thousand dollars a year? =)

Share this post


Link to post
Share on other sites
programwizard    100
Quote:
Original post by Hispanic91
What inspired me is one game, maybye you have heard of it, Runescape (www.runescape.com) Runescape is done in JAVA


No offense, but everyone is inspired to make a MMORPG by RuneScape. These are the kids who have wanted to program games their whole lives, see RuneScape, think they can do better, find out how hard it really is, and give up and move on. If you do get past the initial hump and stick it out, you will not be able to jump in and make a MMORPG right away; you have to start by making smaller projects, like Pong, Tetris, etc. Once you have that down, you can move on to more complex games, like a platformer or RPG. After a few years of experience, you will then be ready to dive in and make a half-decent MMORPG.

That being said, Java would be an excellent language to start with, especially if you are hooked on the idea of having your game playable in the browser (in edition to Java Applets, you might want to look in to Java Web Start). Remember, if you find that Java is not your cup of tea, you can always fall back on C# or C++, or any other language that can draw to the screen, get input from a keyboard, and network with other PC's, because in the end, that's all you need to make a MMORPG.

Hope that helps... and good luck!

Share this post


Link to post
Share on other sites
Sazaar    100
alas i have played runescape alot and it took them years to get where they are today, so dont get your hopes up, java was my first "real" programming language and it made learning c++ a breaze, but get ready for hours of fustration with the DOS commands and the java api they are a pain really, i would suggest making a MUD based rpg so you can learn if statments loops etc. i also suggest getting java books from barnes and noble for about 20-39 bucks pretty cheap! gl, have fun, and dont quit imaging one day you may be able to make your own runescape, just go throught the long nights and headaches like the rest of us :D

Share this post


Link to post
Share on other sites
Hispanic91    110
Quote:
Original post by gsmaster
Alas, I have heard that a lot too.

Keep in mind, the original Runescape itself(2d, you know) had around 15 guys on it, if not more.
The current has a lot of people(I'd say around 40+) and takes a lot of money to run. 100 servers * A couple thousand dollars a year? =)


That is true, but if eventually I do get this game up and running I will run it off a cheap PC and use it as a web server. Im not talking have hundreds in different cities and have members and non member servers LOL.

Share this post


Link to post
Share on other sites
Vegettex    124
Quote:
Original post by Hispanic91That is true, but if eventually I do get this game up and running I will run it off a cheap PC and use it as a web server. Im not talking have hundreds in different cities and have members and non member servers LOL.


I hope your cheap pc can handle the load :)

Share this post


Link to post
Share on other sites
rohde    432
Well I will not go into the whole MMORPG issue of the post. But yes Java is suitable for game programming, even a MMORPG (the game logic of Star Wars Galaxies is written in Java for instance). If later on you need to (for performance reasons) you can implement the graphic subsytem in C or C++, but start with Java and see how it fits you. If you need pointers on the litterature let me recommend "Killer Game Programming in Java".

Good luck - and keep us updated on your MMORPG [smile]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Quote:
Original post by Vegettex
Disadvantages, well java is definitely slower then languages like c++ or c# and I think that the support for making a MMORPG with java is less then when you are going to use c++ (or something familiar).


What makes you think Java is slower than C#? The 'C' in the name?

Nowadays with the enhancements in the VM Java is close to C in performance. Don't even come with a "benchmark" that runs for 10s, that's not sufficient for the VM to start doing its work. In long running applications, such as a game, the performance will be better than C#.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Quote:
Original post by Anonymous Poster
Quote:
Original post by Vegettex
Disadvantages, well java is definitely slower then languages like c++ or c# and I think that the support for making a MMORPG with java is less then when you are going to use c++ (or something familiar).


What makes you think Java is slower than C#? The 'C' in the name?

Nowadays with the enhancements in the VM Java is close to C in performance. Don't even come with a "benchmark" that runs for 10s, that's not sufficient for the VM to start doing its work. In long running applications, such as a game, the performance will be better than C#.


java and C# are pretty equal, with JIT thrown in both will be fast enough for games. most AAA games today are limited by the GPU anyway.

C++ will probably always be a bit faster since it isn't compiled at runtime.
(thus the compiler can spend more time optimizing without annoying the user).

using a simple ./configure, make, make install approach you would get a program optimized for the users hardware just as you would with JIT compilation. (could be tricky to do on windows though, but its theoretically possible).

the speed difference isn't really big so even if you choose a "slower" language
(note, its not really the language that is slow, but a modern C++ compiler beats the current java server VMs JIT compiler) you'd probably won't notice any difference unless you benchmark it.

if you don't want to release the source and are using C++ you would have to choose a platform to optimize for, or release multiple binaries. (AMD64, IA32 etc). (ofcourse if the game isn't extremely demanding its better to simply optimize it for an older architecture so that it doesn't rely on new processor features).

as for java,C++ or C# i would definitly recomend java. (its been around longer than C# and is pretty mature these days). you get the nice extra advantage that your game will run perfectly on macOSX and linux aswell as windows without any extra work. for an independant MMO its always good to be avaliable to those audiences aswell. (They don't get that many games so the competition isn't as fierce).

the server and client doesn't necessarily have to be made using the same language. making the server in C++ can be a good idea to be able to squeeze every last drop out of your hardware, (and since you are in control of your server upgrades keeping the server binaries optimized for your current hardware isn't a problem).

most importantly however is to use a language you are familiar with. using an mmorpg to learn a new language isn't a good idea.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this