moveDownRight method
Move player to Down and Right
Implementation
void moveDownRight({double? speed}) {
_lastSpeed = (speed ?? this.speed) * diaginalReduction;
velocity = Vector2(_lastSpeed, _lastSpeed);
}
Move player to Down and Right
void moveDownRight({double? speed}) {
_lastSpeed = (speed ?? this.speed) * diaginalReduction;
velocity = Vector2(_lastSpeed, _lastSpeed);
}