moveDownLeft method

void moveDownLeft({
  1. double? speed,
})

Move player to Down and Left

Implementation

void moveDownLeft({double? speed}) {
  _lastSpeed = (speed ?? this.speed) * diaginalReduction;
  velocity = Vector2(-_lastSpeed, _lastSpeed);
}