Beispiel #1
0
 private void showAmuletScene(boolean showText) {
   try {
     Dungeon.saveAll();
     AmuletScene.noText = !showText;
     Game.switchScene(AmuletScene.class);
   } catch (IOException e) {
   }
 }
 @Override
 public void onPause() {
   super.onPause();
   try {
     if (Dungeon.hero != null) {
       Dungeon.saveAll();
     }
   } catch (IOException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }