Hi, I am wondering where you would put the setShowSettings(), when you have the main class’ simpleInitApp() method pass the control to another class to initialize the map. Heres the code I have, and I’ve tried pretty much everywhere that’s reasonable:
Main class:
[java]public class Game extends SimpleApplication {
private static Game game;
public static void main(String[] args) {
game = new Game();
game.start();
}
public void simpleInitApp() {
Init_Map i_map = new Init_Map(this);
}
}[/java]
Init_Map class:
[java]public class Init_Map {
public Init_Map(Game game) {
Spatial bunny = game.getAssetManager().loadModel("Models/bunny/bunny.j3o");
game.getRootNode().attachChild(bunny);
DirectionalLight direclight = new DirectionalLight();
direclight.setDirection(new Vector3f(-0.1f, -0.7f, -1.0f));
direclight.setColor(ColorRGBA.Orange);
game.getRootNode().addLight(direclight);
game.getViewPort().setBackgroundColor(new ColorRGBA(0.7f, 0.8f, 1f, 1f));
game.getFlyByCamera().setMoveSpeed(10);
}
}[/java]