moveUpLeft method
Move player to Up and Left
Implementation
void moveUpLeft({double? speed}) {
_lastSpeed = (speed ?? this.speed) * diaginalReduction;
velocity = Vector2(-_lastSpeed, -_lastSpeed);
}
Move player to Up and Left
void moveUpLeft({double? speed}) {
_lastSpeed = (speed ?? this.speed) * diaginalReduction;
velocity = Vector2(-_lastSpeed, -_lastSpeed);
}