moveDownRight method

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

Move player to Down and Right

Implementation

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