Exemple #1
0
    void LandShape()
    {
        m_board.StoreShape(m_activeShape);

        int rowsClears = 0;

        rowsClears = m_board.CheckRow();
        if (rowsClears > 0)
        {
            m_soundManager.PlayRowClearVocal();
        }

        m_scoreManager.UpdateScore(rowsClears);

        if (m_board.IsAboveTop(m_activeShape))
        {
            m_soundManager.PlayGameOverSound();
            m_endGame = true;
        }
        m_activeShape = m_spawner.SpawnShape();
        m_ghostController.Reset();
        m_ghostController.Create(m_activeShape);
        m_soundManager.PlayLandShapeSound();
    }