run method

void run(
  1. RunnerCallback dtCallback
)

Creates a gameloop that provides callback to help continously tick the Engine.

Implementation

void run(RunnerCallback dtCallback) {
  _dtCallback = dtCallback;
  _ticker?.dispose();
  _ticker = Ticker(_tick);
  _ticker!.start();
}