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