moveLeft method

  1. @override
void moveLeft({
  1. double? speed,
})
override

Move player to Left

Implementation

@override
void moveLeft({double? speed}) {
  if (_perCellEnabled) {
    if (_perCellMoving) return;
    _perCellMoving = true;
    add(
      MoveEffect.by(
        Vector2(-cellSize.x, 0),
        EffectController(
          duration: _pushPerCellDuration,
          curve: _pushPerCellCurve,
        ),
        onComplete: _perCeelMovecomplete,
      ),
    );
  } else {
    super.moveLeft(speed: speed);
  }
}