Beispiel #1
0
 protected override void Update(CanvasContext2D context)
 {
     context.ClearRect(0, 0, 800, 600);
     if (!_finished)
     {
         _textElement.InnerHTML += GetNextLetter();
     }
 }
Beispiel #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;
     }
 }