Esempio n. 1
0
  public void onTouchMovable(NumSprite sprite) {
    NumSprite.istouchable = false;
    Point p0 = m_game_state.getZeroPxPy();
    Point p1 = new Point();
    p1.set(sprite.getPx(), sprite.getPy());

    // toogle 2 sprite
    toogle(p0, p1);
    // update game_state
    updateGameState(sprite);
    //	m_game_state.showMatrix2D();
    // Check if archive target
    if (isArchive()) {
      if (sound_on) m_resource_manager.sound.playArchive();
      m_progress_bar.pause();
      processArchivement();

    } else {
      NumSprite.istouchable = true;
    }
    return;
  }
Esempio n. 2
0
 public void pauseGame() {
   m_progress_bar.pause();
   NumSprite.istouchable = false;
 }