what neccesary when developing a game with Java ?

howdy~

im experienced on programming games with J2ME, but it is not such independant and i wonder are there any other ways to developing games with Java, i know awt and swing may help, but it seems those two are not enough and making games are not really their goals, any one could tell me about what tools and packages used for games ?

regards~

Hi,

There other ‘ways’ to make games with java,
try looking into some basic swing, http://java.sun.com/docs/books/tutorial/uiswing/

You might use some of the following:
“fullscreen mode” , Java3D or something like OpenGLTM for JavaTM - for doing 3D stuff.

tks, after all it is swing, ha, did it the one choosen by most people ?

LWJGL is what you need for professional stuff. Check out the projects page for a few click-n-run examples.

Cas :slight_smile:

Or if you don’t want to use weird third-party stuff, you can use jogl. :wink:

JOGL is weird 3rd party stuff!

Cas :slight_smile:

I took the same route as you and found lwjgl does what I need, but it depends on what you want to do. If you want to go 3D you could try Jme which pretty much wraps everything for you.

Going lwjgl you need to learn OpenGL if you haven’t already, but that’s no big deal, there’re plenty of tutorials available.

[quote]JOGL is weird 3rd party stuff!
[/quote]
Fight without any restrictions.

[quote] what neccesary when developing a game with Java ?
[/quote]
Brain could be helpfull.
Don’t take it as an offense, but it’s the most important thing.
My libraries for data transformation and compression would be helpfull too, but you don’t need them if you didn’t start to code. They need a few months to iron out, and I would need to create account on Java.net to let them be somewhat accessible.

As I feel obligated to warn so-to-speak, new members about princec. Brilliant guy, has contributed a lot here, but you should know that he is the, or at least one of the founders of LWJGL, and is quite the evangelist about it.

What I will say, however, is that LWJGL is a more mature API as compared to JOGL. Furthermore, I’m not aware of a finished game, published and selling, that uses JOGL right now.

Princec is also taken to large mood swings of favor toward and away from Java and other languages - which is not at all a detriment to him - it’s just fun to watch. :smiley:

I’m the entertainment round here :slight_smile:

Cas :slight_smile:

I’m feeling the urge to sway to and from java… I thought I was done working with java a few months ago… when out of the blue I got hit with a little inspiration and cranked out a new java game… I’m startin to think I’m gettin pretty good at that (cranking out java games)… but, back to the topic…

Currently for a game I’m considering writing, I’m doing a lot of reading up on nio (because the old socket stuff just didn’t cut it), since I’m out to get large scale warfare going on (I want at least 50vs50 person warefare and I think I can get much more than that). Another key ingrediant I expect to have to do some studying up on, is java sound, because AudioClip offers next to no control, and I need to have some control (if only volume control) of the audio. Then, I’m thinking about how to handle the graphics… I’m gettin pretty fancy lately with what I can accomplish using Graphics (not even graphics2d mind you… just graphics), to the point I’m tempted to create an isometric overhead view, using tiled graphics… I know it sounds almost crazy, when I could have a full 3d game without much more work, actually, I consider 3d easier in a lot of regards, a few nice textures and my art-incompetancy isn’t nearly so obvious… I’d previously used JOGL and while I like it for being simple (you have nothing but opengl, you don’t have to learn a bunch of fancy API stuff like a scenegraph will require you to learn), it’s entirely too frustrating, I don’t trust it to work reliably… so I expect to be investigating LWJGL in the next few days too… man I hope princec has crammed some kind of object loader into it… I don’t want to finish the one I started, and if I’m going to do anything 3d, I’m going to have to have some kind of a loader and most likely some kind of skeletal animation… I suspect I’m on my own there, but I’m hoping not. Of course, I am between projects right now… I’m all shifty wantin to get to work on the next project… but I haven’t even created a workspace on my computer for the new project… there is a good chance next week I’ll be opening up gamestudio, whippin out a few models… and beginning the struggle with ‘cscript’ and thinking damn… as much as I hated OOP when I first started with java… I now hate this lack of OOP more (I hate the lack of scope… in cscript, at least with game studio, you have local variables, only visible to that function… and global variables… visible to EVERYTHING… and about a bazillion weird rules that I don’t know and can’t learn cause the documention sucks too hehe).

What do you need to write a game in java… good understanding of the core java langauge, ability to understand API docs to use features you aren’t currently familiar with, the persistance to learn whatever it is you don’t know that you need (and there is lots of that), and the will power to not only begin a project, but to finish it, that’s probably the hardest part, everyone has a great game idea, I’ve got piles of them, but what I lack is the time to make them all happen, it takes a long time to build those great ideas, now and then you might come up with a simple unique idea and whip it out in a month, but the typical game project, even for an independant developer is pretty ambitious, and almost never gets finished. I’ve crushed this thread with my weight reply… now I’m going to go back to hunting down information so that I can begin my new project this next week (because as much as I’d like to a gamestudio game… the game I envision there would be aimed at single player… and I think financially I should be aiming for grand scale strategical combat!!!).

No object loaders or anything like that yet in LWJGL. What you want is jME or Xith3D.

Cas :slight_smile:

xith3d is a layer over jogl or lwjgl isn’t it? I remember it being announced here about a year ago but I’ve never checked it out much (I was content with jogl as crazy as that might sound).

[quote]xith3d is a layer over jogl or lwjgl isn’t it? I remember it being announced here about a year ago but I’ve never checked it out much (I was content with jogl as crazy as that might sound).
[/quote]
Both ;D

LWJGL is my Xith3D renderer of choice. LWJGL’s input handling great – saves having to use yet another API for input.

Will.