Ejemplo n.º 1
0
 protected override void Update(CanvasContext2D context)
 {
     context.ClearRect(0, 0, 800, 600);
     if (!_finished)
     {
         _textElement.InnerHTML += GetNextLetter();
     }
 }
Ejemplo n.º 2
0
 protected override void Update(CanvasContext2D context)
 {
     context.ClearRect(0, 0, 800, 600);
     if (!_finished && (_nextLetter < Ticks || _keyPressed))
     {
         _textElement.InnerHTML += GetNextLetter();
         if (_nextLetter == 0 || _keyPressed) _nextLetter = Ticks + 100;
         else _nextLetter += 100;
     }
 }