stepEngine method

void stepEngine({
  1. double stepTime = 1 / 60,
})
inherited

Steps the engine game loop by one frame. Works only if the engine is in paused state. By default step time is assumed to be 1/60th of a second.

Implementation

void stepEngine({double stepTime = 1 / 60}) {
  if (_paused) {
    _paused = false;
    _gameRenderBox?.gameLoop?.step(stepTime);
    _paused = true;
  }
}