How to make a game menu?

Hi,



I am trying to make a menu for a game. I tried looking into FengGUI but it refused to work. Using Swing is, at this point, not an option. I was hoping that someone here could point me in the right direction, and perhaps give me some piece of code to start with.



A friend of mine wrote a game menu two years back, but the code I got doesn't work for me (see [1] and [2]). Any help is appreciated :slight_smile:



[1]: http://home.samfundet.no/~runa/MainMenuGameState.java.txt

[2]: http://home.samfundet.no/~runa/MenuGameState.java.txt

Why is Swing not an option?

I understand the swing thing, but more importantly, why FengGUI doesn't work? :slight_smile:

darkfrog said:

Why is Swing not an option?


It's a school project and a few of the other group members doesn't want to use Swing if there is another option :)

This is for an in-game menu in jME or before jME starts?

darkfrog said:

This is for an in-game menu in jME or before jME starts?


in-game menu, yes.

And I've managed to get FengGUI to work now, but FengGUI.jme produces an ugly bug under X (linux).

Then I would suggest either creating your own, giving BUI a shot, or considering Swing again.  For a menu I think Swing is perfectly fine.  I don't use it for anything displayed and being used while playing the game because of performance issues, but Swing can look very nice if you use a nice L&F like Substance.

runa said:

And I've managed to get FengGUI to work now, but FengGUI.jme produces an ugly bug under X (linux).


Go over on the Feng forums http://www.fenggui.org/forum/index.php and Schabby will probably fix that for you fairly quickly.

Hi Runa!



I am sorry to read that FengGUI didnt work out so well for you. Do you mind telling me what kind of problem you get when using FengGUI on X? This would help us improve FengGUI.



Johannes