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