Example #1
0
  @Override
  public void create() {
    Bdx.init();

    Scene.instantiators = new HashMap<String, Instantiator>();
    Scene.instantiators.put("name", null);

    Bdx.scenes.add(new Scene("name"));
  }
Example #2
0
 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);
 }