示例#1
0
 private void correctChoice(Vector2 pos)
 {
     particleEffect.Trigger(pos); //To-do:Kenny particleEffect.Trigger position to be at where the object is instead of collision
     generateGameSet();           //To-do:Kenny give a second or two of pause before the next set comes in
     correct_snd.MultiPlay();
     this.score++;                //updating the score
 }
示例#2
0
 private void correctChoice(Vector2 pos)
 {
     generateGameSet();
     particleEffect.Trigger(pos);
     correct_snd.MultiPlay();
     this.score++;
 }
示例#3
0
 private void correctChoice(Vector2 pos)
 {
     particleEffect.Trigger(pos);
     questionIsCorrect = true;
     destroyGameSet();
     correct_snd.MultiPlay();
     score++;
     textAnimator.Start();
 }
示例#4
0
 private void correctChoice(Vector2 pos)
 {
     particleEffect.Trigger(pos); //To-do:Kenny particleEffect.Trigger position to be at where the object is instead of collision
     questionIsCorrect = true;
     destroyGameSet();
     //generateGameSet(); //remove this line once destroyGameSet() is implemented.
     correct_snd.MultiPlay();
     this.score++;
     textAnimator.Start();
 }
示例#5
0
        /// <summary>
        /// This function triggers whenever a correct choice has been made by the user
        /// </summary>
        /// <param name="pos">Position of correct solution</param>

        private void correctChoice(Vector2 pos)
        {
            questionIsCorrect = true;
            //Particle Effect
            particleEffect.Trigger(pos);
            //Change GameSet
            destroyGameSet();
            //Play sound
            correct_snd.MultiPlay();
            // Add Score
            GameScoringSystem.Instance.addScore(gameTimeManager.GameTime.ElapsedGameTime.Milliseconds);
            GameScoringSystem.Instance.checkWinningCondition(ref this.gameLevelManager, ref content);

            // Display Encouragements
            textAnim_GoodJob.Start();
        }