moveUp method
Move player to Up
Implementation
void moveUp({double? speed}) {
_lastSpeed = speed ?? this.speed;
setVelocityAxis(y: -_lastSpeed);
}
Move player to Up
void moveUp({double? speed}) {
_lastSpeed = speed ?? this.speed;
setVelocityAxis(y: -_lastSpeed);
}