Example #1
0
 public void Reset()
 {
     difficulty           = DIFFICULTY_LEVELS.BEGINNER;
     gameTimer            = 0;
     currentLevel         = 1;
     reachedMaxDifficulty = false;
 }
Example #2
0
    void SetDifficulty(int level)
    {
        int multiple = MAX_DIFFICULTY / 10;

        if (level >= 1 && level <= MAX_DIFFICULTY / multiple)
        {
            difficulty = DIFFICULTY_LEVELS.BEGINNER;
        }
        else if (level > MAX_DIFFICULTY / 3 && level <= MAX_DIFFICULTY - (MAX_DIFFICULTY / multiple))
        {
            difficulty = DIFFICULTY_LEVELS.INTERMEDIATE;
        }
        else
        {
            difficulty = DIFFICULTY_LEVELS.ADVANCED;
        }
    }