@Override public void create() { Bdx.init(); Scene.instantiators = new HashMap<String, Instantiator>(); Scene.instantiators.put("name", null); Bdx.scenes.add(new Scene("name")); }
public static void restart() { dispose(); for (Scene scene : new ArrayList<Scene>(scenes)) { scenes.remove(scene); scene.end(); } if (profiler.scene != null) profiler.scene.end(); init(); scenes.add(firstScene); }