update method

  1. @override
void update(
  1. double dt
)
override

This should update the state of the game.

Implementation

@override
void update(double dt) {
  _stopwatch.reset();
  _stopwatch.start();
  super.update(dt);
  _stopwatch.stop();
  _updateTime = _stopwatch.elapsedMilliseconds;
}