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