Exemplo n.º 1
0
        public override void Update(CanvasAnimatedUpdateEventArgs args)
        {
            if (BackgroundWords.Count < 40)
            {
                BackgroundWords.EnqueueRandomWords(40);
            }

            BackgroundWords.Update(args);
            if (str != null)
            {
                str.Update(args);
            }
        }
        public override void Update(CanvasAnimatedUpdateEventArgs args)
        {
            if (BackgroundWords.Count < 50)
            {
                BackgroundWords.EnqueueWinningWords(50);
            }

            BackgroundWords.Update(args);
            if (str != null)
            {
                str.Update(args);
            }
            PuzzleCollection.Update(args);
            SolveIcons.Update(args);
        }
Exemplo n.º 3
0
 public void Update(CanvasAnimatedUpdateEventArgs args)
 {
     AnimatedString.Update(args);
     if (!Solved)
     {
         _timeSinceLastHighlight += args.Timing.ElapsedTime;
         if (!_highlightAnswer)
         {
             if (_timeSinceLastHighlight > _initialHighlightThreshold)
             {
                 //Debug.AddTimedString("Initial highlight.");
                 _highlightAnswer = true;
                 HighlightObscurer();
                 _timeSinceLastHighlight = TimeSpan.Zero;
             }
         }
         else if (_timeSinceLastHighlight > _highlightThreshold)
         {
             //Debug.AddTimedString("Subsequent highlight.");
             HighlightObscurer();
             _timeSinceLastHighlight = TimeSpan.Zero;
         }
     }
 }