Ejemplo n.º 1
0
 @Override
 public void onCreateResources() {
   SoundFactory.setAssetBasePath("ohanashi/mfx/"); // Sound Resources
   MusicFactory.setAssetBasePath("ohanashi/mfx/");
   BitmapTextureAtlasTextureRegionFactory.setAssetBasePath("ohanashi/gfx/"); // Image
   mTexturePackLoaderFromSource =
       new TexturePackLoaderFromSource(getTextureManager(), pAssetManager, "ohanashi/gfx/");
   super.onCreateResources();
 }
Ejemplo n.º 2
0
 @Override
 public void onPauseGame() {
   babyDontCry();
   this.mEngine.clearUpdateHandlers();
   this.mScene.clearUpdateHandlers();
   handDefault();
   mHandActionAniSprite.clearEntityModifiers();
   mTvAnimatedSprite.setCurrentTileIndex(0);
   mKaigaAnimatedSprite.setCurrentTileIndex(0);
   mDoorAnimatedSprite.setCurrentTileIndex(0);
   isTv = true;
   isClock = true;
   isDoor = true;
   isHand = true;
   isBabyCry = true;
   setTouchGimmic3(true);
   super.onPauseGame();
 }
Ejemplo n.º 3
0
  @Override
  public void onResumeGame() {
    Log.d(TAG, "onResumeGame");
    babyTimerHandler =
        new TimerHandler(
            12.0f,
            true,
            new ITimerCallback() {

              @Override
              public void onTimePassed(TimerHandler pTimerHandler) {
                if (isBabyCry) {
                  babyCry();
                }
              }
            });
    isUongSua = false;
    this.mEngine.registerUpdateHandler(babyTimerHandler);
    super.onResumeGame();
  }
Ejemplo n.º 4
0
 @Override
 public void loadKaraokeComplete() {
   super.loadKaraokeComplete();
 }