AppStates

Hey

I got class: MainGame with all game code (with simpleInitApp), Game and Menu.

Now i wanna make Game.java game main class. There’s a main method. Now question: how simple in Game.java add MainGame and Menu.java as states? So when i run game it will firt run Menu.java with Nifty GUI. In that menu i press button which start MainGame.java.

Before i was using TWL and it was much easier i think.

This might help:

http://hub.jmonkeyengine.org/2013/04/the-herodex-gui-working-in-jme3/

There are also a whole bunch of tutorials on UI, app states, nifty, etc…just look in the tutorials section of the wiki.