Skip to content

Instantly share code, notes, and snippets.

@Justin42
Created January 22, 2012 00:21
Show Gist options
  • Save Justin42/1654697 to your computer and use it in GitHub Desktop.
Save Justin42/1654697 to your computer and use it in GitHub Desktop.
Main Menu State
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package client.state;
import com.jme3.renderer.RenderManager;
import de.lessvoid.nifty.Nifty;
import de.lessvoid.nifty.screen.Screen;
import de.lessvoid.nifty.screen.ScreenController;
/**
*
* @author Owner
*/
public class MainMenuState extends GameState implements ScreenController {
private Nifty nifty;
private Screen screen;
public void bind(Nifty nifty, Screen screen) {
this.nifty = nifty;
this.screen = screen;
}
public void onStartScreen() {
}
public void onEndScreen() {
}
public void selectSinglePlayer() {
}
public void selectMultiplayer() {
nifty.gotoScreen("MultiplayerLogin");
}
public void selectOptions() {
}
public void selectExit() {
app.stop();
}
@Override
public void update(float tpf) {
}
@Override
public void render(RenderManager rm) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment