Пример #1
0
 @Override
 public boolean onKeyDown(int keyCode, KeyEvent event) {
   if (keyCode == KeyEvent.KEYCODE_BACK) {
     SceneManager.getInstance();
     SceneManager.getCurrentScene().onBackKeyPressed();
   }
   return true;
 }
Пример #2
0
 public void onCreateScene(OnCreateSceneCallback pOnCreateSceneCallback) throws IOException {
   SceneManager.getInstance().createSplashScene(pOnCreateSceneCallback);
   GameActivity.myMusic.play();
   myMusic.setLooping(true);
 }