start method

void start()

Starts the game loop at ~60fps.

Implementation

void start() {
  if (_running) return;
  _running = true;
  _lastTime = DateTime.now();
  _timer = Timer.periodic(const Duration(milliseconds: 16), (_) => _tick());
}