Example #1
0
        public TutorialGameState(MixedLettersGame game)
        {
            this.game    = game;
            audioManager = game.Context.GetAudioManager();

            isSpelling = MixedLettersConfiguration.Instance.Variation == MixedLettersVariation.BuildWord;
        }
Example #2
0
        protected override void OnInitialize(IGameContext context)
        {
            instance = this;

            IntroductionState = new IntroductionGameState(this);
            PlayState         = new PlayGameState(this);
            ResultState       = new ResultGameState(this);
            TutorialState     = new TutorialGameState(this);

            entireAlphabet = new List <ILivingLetterData>();

            isSpelling = MixedLettersConfiguration.Instance.Variation == MixedLettersVariation.BuildWord;

            if (!isSpelling)
            {
                entireAlphabet = MixedLettersConfiguration.Instance.Questions.GetNextQuestion().GetCorrectAnswers().ToList();
                VictimLLController.instance.SetBigScale();
            }

            Physics.IgnoreLayerCollision(0, 5);
            Physics.IgnoreLayerCollision(12, 11);
            Physics.IgnoreLayerCollision(10, 12);

            ResetScene();

            MixedLettersConfiguration.Instance.Context.GetAudioManager().PlayMusic(Music.Theme9);

            DisableRepeatPromptButton();

            SetDifficulty();
        }
Example #3
0
        public IntroductionGameState(MixedLettersGame game)
        {
            this.game = game;

            float difficulty = MixedLettersConfiguration.Instance.Difficulty;

            if (difficulty <= 0.25f)
            {
                timePerRound = 60f;
            }
            else if (difficulty <= 0.5f)
            {
                timePerRound = 45f;
            }
            else if (difficulty <= 0.75f)
            {
                timePerRound = 30f;
            }
            else
            {
                timePerRound = 15f;
            }
        }
Example #4
0
 public TutorialGameState(MixedLettersGame game)
 {
     this.game    = game;
     audioManager = game.Context.GetAudioManager();
 }
Example #5
0
 public ResultGameState(MixedLettersGame game)
 {
     this.game = game;
 }
Example #6
0
 public PlayGameState(MixedLettersGame game)
 {
     this.game = game;
 }
Example #7
0
 public IntroductionGameState(MixedLettersGame game)
 {
     this.game = game;
 }